public interface ChannelIntensityRanges
A "component" is one scalar channel within a pixel: for a grayscale image there is one component; for an RGB image there are three (red=0, green=1, blue=2).
This interface groups per-component ComponentIntensityRange objects for a
single image channel. It is used as a convenience argument to
ChannelDisplaySettings.Builder.intensityScaling(ChannelIntensityRanges), which
applies all component ranges in one call instead of building a separate
ComponentDisplaySettings per component.
Note: this interface is write-only in the sense that
ChannelDisplaySettings does not expose a getIntensityScaling() getter;
the ranges are stored inside the per-component ComponentDisplaySettings accessible
via ChannelDisplaySettings.getComponentSettings(int).
Default values: components that have not been explicitly set return
minimum = 0 and maximum = Long.MAX_VALUE (full camera range).
getNumberOfComponents() returns 0 when no components have been explicitly set.
Instances are immutable. Use builder() or copyBuilder() to
construct one.
| Modifier and Type | Interface and Description |
|---|---|
static interface |
ChannelIntensityRanges.Builder
Builder for
ChannelIntensityRanges. |
| Modifier and Type | Method and Description |
|---|---|
static ChannelIntensityRanges.Builder |
builder()
Returns a new builder with no components set (all defaults).
|
ChannelIntensityRanges.Builder |
copyBuilder()
Returns a builder pre-populated with this instance's component ranges.
|
java.util.List<ComponentIntensityRange> |
getAllComponentRanges()
Returns all explicitly-set component ranges as a list.
|
java.util.List<java.lang.Long> |
getComponentMaxima()
Returns the maximum values for all explicitly-set components.
|
long |
getComponentMaximum(int component)
Returns the maximum intensity (white point) for the given component.
|
java.util.List<java.lang.Long> |
getComponentMinima()
Returns the minimum values for all explicitly-set components.
|
long |
getComponentMinimum(int component)
Returns the minimum intensity (black point) for the given component.
|
ComponentIntensityRange |
getComponentRange(int component)
Returns the range for the given component as a
ComponentIntensityRange. |
int |
getNumberOfComponents()
Returns the number of components for which a range has been explicitly set.
|
static ChannelIntensityRanges.Builder builder()
ChannelIntensityRanges.Builder copyBuilder()
int getNumberOfComponents()
Components beyond this index return default values (min=0, max=Long.MAX_VALUE). May return 0 if no ranges have been set.
long getComponentMinimum(int component)
component - zero-based component indexlong getComponentMaximum(int component)
component - zero-based component indexLong.MAX_VALUE if not explicitly set or
index out of range, meaning "use the full camera bit-depth range"ComponentIntensityRange getComponentRange(int component)
ComponentIntensityRange.component - zero-based component indexjava.util.List<ComponentIntensityRange> getAllComponentRanges()
getNumberOfComponents()java.util.List<java.lang.Long> getComponentMinima()
java.util.List<java.lang.Long> getComponentMaxima()