public class ExtractToRGB extends ChannelConvertStyle
If the expected red/blue/green names in RGBChannelNames
exist, these channels are
used. Any other channels are ignored.
Otherwise, if exactly three channels exist, without the expected-names then the underlying order is used from the set.
If more than three channel exist, the first three are arbitrarily according by the underlying set ordering (usually alphabetical).
If a single-channel exists only, it is triplicated to form an RGB.
If two channels-exists, a blank is left in the green channel, and the blue and red channel are chosen by the underlying set ordering (usually alphabetical).
Constructor and Description |
---|
ExtractToRGB() |
Modifier and Type | Method and Description |
---|---|
NamedStacks |
convert(Set<String> channelNames,
ChannelGetterForTimepoint channelGetter,
Logger logger)
Converts a particular set of channels.
|
ChannelConvertStyle |
getFallback()
If a channel doesn't match an RGB pattern, this conversion-style can be used instead.
|
void |
setFallback(ChannelConvertStyle fallback)
If a channel doesn't match an RGB pattern, this conversion-style can be used instead.
|
checkMisconfigured, describeBean, describeChildren, duplicateBean, fields, findFieldsOfClass, getBeanName, getLocalPath, localise, toString
public NamedStacks convert(Set<String> channelNames, ChannelGetterForTimepoint channelGetter, Logger logger) throws OperationFailedException
ChannelConvertStyle
convert
in class ChannelConvertStyle
channelNames
- a set of names of the channels to convert.channelGetter
- gets a particular channel at a particular time-point.logger
- the logger.OperationFailedException
- if the conversion fails to successfully complete.public ChannelConvertStyle getFallback()
If unset, an error is instead thrown in this circumstances
public void setFallback(ChannelConvertStyle fallback)
If unset, an error is instead thrown in this circumstances
Copyright © 2010–2023 Owen Feehan, ETH Zurich, University of Zurich, Hoffmann-La Roche. All rights reserved.