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 ConversionPolicyCreates aConversionPolicybased on thechangeExistingproperty.booleanIf true, the existing channel can be changed.voidsetChangeExisting(boolean changeExisting) If true, the existing channel can be changed.Methods inherited from class org.anchoranalysis.image.bean.provider.ChannelProviderUnary
createFromChannel, get, getChannel, setChannelMethods inherited from class org.anchoranalysis.image.bean.provider.ChannelProvider
getAsStackMethods inherited from class org.anchoranalysis.bean.initializable.InitializableBean
getInitialization, getLogger, getPropertyInitializer, initialize, initializeRecursive, initRecursiveWithInitializer, isInitialized, onInitializationMethods 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 aConversionPolicybased on thechangeExistingproperty.- Returns:
- a
ConversionPolicythat 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.
-