public static enum NotebookService.ValueScaling extends Enum<NotebookService.ValueScaling>
Enum Constant and Description |
---|
AUTO
Scales the display according to a "best effort": "narrow" types with few
sample values (e.g.,
bit , uint2 , uint4 and
uint8 ) are scaled according to the FULL strategy, whereas
"wide" types with many possible values (e.g., uint16 ,
float32 and float64 ) are scaled according to the
DATA strategy. |
DATA
Scales the display to match the actual min and max values of the data.
|
FULL
Scales the display to match the bounds of the data type.
|
Modifier and Type | Method and Description |
---|---|
static NotebookService.ValueScaling |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static NotebookService.ValueScaling[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final NotebookService.ValueScaling AUTO
bit
, uint2
, uint4
and
uint8
) are scaled according to the FULL
strategy, whereas
"wide" types with many possible values (e.g., uint16
,
float32
and float64
) are scaled according to the
DATA
strategy.
That rationale is that people are accustomed to seeing narrow image types rendered across the full range, whereas wide image types typically do not empass the entire range of the type and rendering them as such results in image which appear all or mostly black or gray.
public static final NotebookService.ValueScaling FULL
uint8
will be scaled to 0-255, regardless of the actual data
values.public static final NotebookService.ValueScaling DATA
uint16
dataset with sample values ranging between
139 and 3156 will map 139 to minimum intensity and 3156 to maximum
intensity.public static NotebookService.ValueScaling[] values()
for (NotebookService.ValueScaling c : NotebookService.ValueScaling.values()) System.out.println(c);
public static NotebookService.ValueScaling valueOf(String name)
name
- the name of the enum constant to be returned.IllegalArgumentException
- if this enum type has no constant with the specified nameNullPointerException
- if the argument is nullCopyright © 2014–2022 ImageJ. All rights reserved.