Skip to content

Conversation

@Artur-man
Copy link
Collaborator

@Artur-man Artur-man commented Nov 25, 2024

adding utilities to manage/merge multiple channels

  • .is.rgb function allows to detect rgb images
  • check/get/select channels from .zattrs
  • normalization of image arrays depending on data type, e.g. uint8, uint16, float (min max normalization).
  • combine image channels with either default or specified colors
  • adding image channel merging examples to vignette

Issues: HelenaLC/SpatialData#85 HelenaLC/SpatialData#86

@HelenaLC
Copy link
Owner

Hurra. Looks like it's clean now. Will get to it when I can. Muchas gracias, amigo.

# normalize the image data given its data type
#' @noRd
.normalize_image_array <- \(a, dt){
if(dt %in% names(.DTYPE_MAX_VALUES)) a <- a/.DTYPE_MAX_VALUES[[dt]]
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

can u clarify - are there missing curly brackets here? looks like the else will be evaluated in any case, which will give an error?

HelenaLC added a commit that referenced this pull request Nov 25, 2024
@HelenaLC HelenaLC merged commit c8d3640 into main Nov 25, 2024
4 checks passed
@Artur-man Artur-man deleted the artur-man/multichannel branch November 25, 2024 21:56
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants