Class ConvertBase
- All Implemented Interfaces:
Provider<Channel>
,ProviderAsStack
- Direct Known Subclasses:
Convert
,ConvertWithHistogram
Base class for channel providers that perform conversions on a single input channel.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected ConversionPolicy
Creates aConversionPolicy
based on thechangeExisting
property.boolean
If true, the existing channel can be changed.void
setChangeExisting
(boolean changeExisting) If true, the existing channel can be changed.Methods inherited from class org.anchoranalysis.image.bean.provider.ChannelProviderUnary
createFromChannel, get, getChannel, setChannel
Methods inherited from class org.anchoranalysis.image.bean.provider.ChannelProvider
getAsStack
Methods inherited from class org.anchoranalysis.bean.initializable.InitializableBean
getInitialization, getLogger, getPropertyInitializer, initialize, initializeRecursive, initRecursiveWithInitializer, isInitialized, onInitialization
Methods inherited from class org.anchoranalysis.bean.AnchorBean
checkMisconfigured, describeBean, describeChildren, duplicateBean, fields, findFieldsOfClass, getBeanName, getLocalPath, localise, toString
-
Constructor Details
-
ConvertBase
public ConvertBase()
-
-
Method Details
-
createPolicy
Creates aConversionPolicy
based on thechangeExisting
property.- Returns:
- a
ConversionPolicy
that determines whether to change the existing channel or create a new one.
-
isChangeExisting
public boolean isChangeExisting()If true, the existing channel can be changed. If false, a new channel must be created for any change. -
setChangeExisting
public void setChangeExisting(boolean changeExisting) If true, the existing channel can be changed. If false, a new channel must be created for any change.
-