Interface ChannelIntensityRanges.Builder
- Enclosing interface:
ChannelIntensityRanges
public static interface ChannelIntensityRanges.Builder
Builder for
ChannelIntensityRanges.
Obtain an instance via ChannelIntensityRanges.builder() or
ChannelIntensityRanges.copyBuilder().
-
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds and returns theChannelIntensityRanges.componentMaximum(int component, long max) Sets only the maximum (white point) for the given component.componentMinimum(int component, long min) Sets only the minimum (black point) for the given component.componentRange(int component, long min, long max) Sets the range for the given component by explicit min and max values.componentRange(int component, ComponentIntensityRange range) Sets the range for the given component from aComponentIntensityRange.componentRanges(List<ComponentIntensityRange> ranges) Replaces all component ranges with the given list.
-
Method Details
-
componentRange
Sets the range for the given component by explicit min and max values.- Parameters:
component- zero-based component index (e.g. 0=red, 1=green, 2=blue for RGB)min- black pointmax- white point (Long.MAX_VALUE= full camera range)- Returns:
- this builder
-
componentRange
Sets the range for the given component from aComponentIntensityRange.- Parameters:
component- zero-based component indexrange- range to copy min/max from- Returns:
- this builder
-
componentMinimum
Sets only the minimum (black point) for the given component.- Parameters:
component- zero-based component indexmin- black point- Returns:
- this builder
-
componentMaximum
Sets only the maximum (white point) for the given component.- Parameters:
component- zero-based component indexmax- white point (Long.MAX_VALUE= full camera range)- Returns:
- this builder
-
componentRanges
Replaces all component ranges with the given list.- Parameters:
ranges- list of ranges, one per component; index 0 is the first component- Returns:
- this builder
-
build
ChannelIntensityRanges build()Builds and returns theChannelIntensityRanges.- Returns:
- immutable
ChannelIntensityRanges
-