public static interface ComponentIntensityRange.Builder
ComponentIntensityRange.
Obtain an instance via ComponentIntensityRange.builder() or
ComponentIntensityRange.copyBuilder().
| Modifier and Type | Method and Description |
|---|---|
ComponentIntensityRange |
build()
Builds and returns the
ComponentIntensityRange. |
default ComponentIntensityRange.Builder |
floatMaximum(double max)
Sets the maximum as an actual pixel value, for floating point images.
|
default ComponentIntensityRange.Builder |
floatMinimum(double min)
Sets the minimum as an actual pixel value, for floating point images.
|
default ComponentIntensityRange.Builder |
floatRange(double min,
double max)
Sets both float bounds as actual pixel values.
|
ComponentIntensityRange.Builder |
maximum(long max)
Sets the maximum intensity (white point) for this component.
|
ComponentIntensityRange.Builder |
minimum(long min)
Sets the minimum intensity (black point) for this component.
|
ComponentIntensityRange.Builder |
range(long min,
long max)
Convenience method to set both minimum and maximum in one call.
|
ComponentIntensityRange.Builder minimum(long min)
min - intensity value at or below which pixels display as blackComponentIntensityRange.Builder maximum(long max)
Use Long.MAX_VALUE to indicate "use the full camera bit-depth range."
max - intensity value at or above which pixels display at full brightnessComponentIntensityRange.Builder range(long min, long max)
min - intensity value at or below which pixels display as blackmax - intensity value at or above which pixels display at full brightnessdefault ComponentIntensityRange.Builder floatMinimum(double min)
For float images the long-valued minimum(long) is not usable, since
the interesting range is rarely integral. Pass Double.NaN to clear the
float range and fall back to the long-valued setting.
The default implementation ignores the value, so that builders written before the float range existed keep compiling; they simply carry no float range.
min - pixel value, or NaN to unsetdefault ComponentIntensityRange.Builder floatMaximum(double max)
max - pixel value, or NaN to unsetfloatMinimum(double)default ComponentIntensityRange.Builder floatRange(double min, double max)
min - pixel value, or NaN to unsetmax - pixel value, or NaN to unsetfloatMinimum(double)ComponentIntensityRange build()
ComponentIntensityRange.ComponentIntensityRange