Package qupath.lib.display.settings
Class ImageDisplaySettings
java.lang.Object
qupath.lib.display.settings.ImageDisplaySettings
A simple class to store the main information needed by QuPath to display an image,
in a JSON-friendly form.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic ImageDisplaySettingscreate(String name, double gamma, boolean invertBackground, List<ChannelSettings> channels) Create a new image display settings object.Get all the available channels.doublegetGamma()Get the requested vamma value for the viewer.getName()Get the name of the settings.booleanGet whether the background should be shown 'inverted'.
-
Constructor Details
-
ImageDisplaySettings
public ImageDisplaySettings()
-
-
Method Details
-
create
public static ImageDisplaySettings create(String name, double gamma, boolean invertBackground, List<ChannelSettings> channels) Create a new image display settings object.- Parameters:
name-gamma-invertBackground-channels-- Returns:
-
getName
Get the name of the settings.- Returns:
-
getGamma
public double getGamma()Get the requested vamma value for the viewer.- Returns:
-
invertBackground
public boolean invertBackground()Get whether the background should be shown 'inverted'. This can make a fluorescence image look more like a brightfield image, and vice versa.- Returns:
-
getChannels
Get all the available channels.- Returns:
-