Package qupath.lib.display.settings
Class ChannelSettings
java.lang.Object
qupath.lib.display.settings.ChannelSettings
A simple class to store the main information needed by QuPath to display an image channel
with a requested color and brightness/contrast setting.
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic ChannelSettings
create
(String name, float minDisplay, float maxDisplay, ChannelColor color, boolean isShowing) Create a new channel settings object.getColor()
Get the color used to display the channel, or null if a color is not relevant.float
Get the requested maximum display value for the channel, This should be used with the last entry in any lookup table.float
Get the requested minimum display value for the channel.getName()
Get the name of the channel.boolean
Get whether the channel should be displayed.
-
Constructor Details
-
ChannelSettings
public ChannelSettings()
-
-
Method Details
-
create
public static ChannelSettings create(String name, float minDisplay, float maxDisplay, ChannelColor color, boolean isShowing) Create a new channel settings object.- Parameters:
name
-minDisplay
-maxDisplay
-color
-isShowing
-- Returns:
-
getName
Get the name of the channel.- Returns:
-
getMinDisplay
public float getMinDisplay()Get the requested minimum display value for the channel. This should be used with the first entry in any lookup table.- Returns:
-
getMaxDisplay
public float getMaxDisplay()Get the requested maximum display value for the channel, This should be used with the last entry in any lookup table.- Returns:
-
getColor
Get the color used to display the channel, or null if a color is not relevant.- Returns:
-
isShowing
public boolean isShowing()Get whether the channel should be displayed.- Returns:
-