Package qupath.lib.display
Interface ChannelDisplayInfo.ModifiableChannelDisplayInfo
- All Superinterfaces:
- ChannelDisplayInfo
- All Known Implementing Classes:
- AdditiveChannelInfo,- DirectServerChannelInfo
- Enclosing interface:
- ChannelDisplayInfo
Helper interface to indicate that the display ranges can be modified.
- 
Nested Class SummaryNested classes/interfaces inherited from interface qupath.lib.display.ChannelDisplayInfoChannelDisplayInfo.ModifiableChannelDisplayInfo
- 
Method SummaryModifier and TypeMethodDescriptionvoidsetMaxDisplay(float maxDisplay) Set the max display value for this channel.voidsetMinDisplay(float minDisplay) Set the min display value for this channel.voidsetMinMaxAllowed(float minAllowed, float maxAllowed) Set the maximum permissible range for the image display.Methods inherited from interface qupath.lib.display.ChannelDisplayInfodoesSomething, getColor, getMaxAllowed, getMaxDisplay, getMethod, getMinAllowed, getMinDisplay, getName, getRGB, getRGB, getValueAsString, isAdditive, isBrightnessContrastRescaled, updateRGBAdditive, updateRGBAdditive
- 
Method Details- 
setMinMaxAllowedvoid 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-
 
- 
setMinDisplayvoid setMinDisplay(float minDisplay) Set the min display value for this channel. Note that it is *strongly* advised to useImageDisplay.setMinMaxDisplayinstead since this helps ensure that theImageDisplayfires appropriate events etc.- Parameters:
- minDisplay-
- See Also:
 
- 
setMaxDisplayvoid setMaxDisplay(float maxDisplay) Set the max display value for this channel. Note that it is *strongly* advised to useImageDisplay.setMinMaxDisplayinstead since this helps ensure that theImageDisplayfires appropriate events etc.- Parameters:
- maxDisplay-
- See Also:
 
 
-