Package qupath.lib.display
Interface ChannelDisplayInfo.ModifiableChannelDisplayInfo
- All Superinterfaces:
ChannelDisplayInfo
- All Known Implementing Classes:
DirectServerChannelInfo
- Enclosing interface:
ChannelDisplayInfo
Helper interface to indicate that the display ranges can be modified.
-
Nested Class Summary
Nested classes/interfaces inherited from interface qupath.lib.display.ChannelDisplayInfo
ChannelDisplayInfo.ModifiableChannelDisplayInfo
-
Method Summary
Modifier and TypeMethodDescriptionvoid
setMaxDisplay
(float maxDisplay) Set the max display value for this channel.void
setMinDisplay
(float minDisplay) Set the min display value for this channel.void
setMinMaxAllowed
(float minAllowed, float maxAllowed) Set the maximum permissible range for the image display.Methods inherited from interface qupath.lib.display.ChannelDisplayInfo
doesSomething, getColor, getMaxAllowed, getMaxDisplay, getMethod, getMinAllowed, getMinDisplay, getName, getRGB, getRGB, getValueAsString, isAdditive, isBrightnessContrastRescaled, updateRGBAdditive, updateRGBAdditive
-
Method Details
-
setMinMaxAllowed
void setMinMaxAllowed(float minAllowed, float maxAllowed) Set the maximum permissible range for the image display.For an 8-bit image, that should be 0 and 255.
For a 16-bit image, fewer bits might actually be used... therefore the full range of 0-2^16-1 may be too much.
Also, for a 32-bit floating point image the limits are rather harder to define in a general way. This method makes it possible to restrict the permissible range to something sensible. Brightness/contrast/min/max sliders may make use of this.
- Parameters:
minAllowed
-maxAllowed
-
-
setMinDisplay
void setMinDisplay(float minDisplay) Set the min display value for this channel. Note that it is *strongly* advised to useImageDisplay.setMinMaxDisplay
instead since this helps ensure that theImageDisplay
fires appropriate events etc.- Parameters:
minDisplay
-- See Also:
-
setMaxDisplay
void setMaxDisplay(float maxDisplay) Set the max display value for this channel. Note that it is *strongly* advised to useImageDisplay.setMinMaxDisplay
instead since this helps ensure that theImageDisplay
fires appropriate events etc.- Parameters:
maxDisplay
-- See Also:
-