Class FromStackChannel
- All Implemented Interfaces:
Provider<Mask>,ProviderAsStack
Creates a
Mask from a specific channel in a stack.-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionget()Gets or creates an object of typeT.intThe index of the channel to use from the stack.The identifier of the stack provider to retrieve the stack from.voidonInitialization(ImageInitialization initialization) Called after initialization.voidsetChannelIndex(int channelIndex) The index of the channel to use from the stack.voidsetStackProviderID(String stackProviderID) The identifier of the stack provider to retrieve the stack from.Methods inherited from class org.anchoranalysis.image.bean.provider.MaskProvider
getAsStackMethods inherited from class org.anchoranalysis.bean.initializable.InitializableBean
getInitialization, getLogger, getPropertyInitializer, initialize, initializeRecursive, initRecursiveWithInitializer, isInitializedMethods inherited from class org.anchoranalysis.bean.AnchorBean
checkMisconfigured, describeBean, describeChildren, duplicateBean, fields, findFieldsOfClass, getBeanName, getLocalPath, localise, toString
-
Constructor Details
-
FromStackChannel
public FromStackChannel()
-
-
Method Details
-
onInitialization
Description copied from class:InitializableBeanCalled after initialization. An empty implementation is provided, to be overridden as needed in the sub-classes.- Overrides:
onInitializationin classInitializableBean<MaskProvider,ImageInitialization> - Parameters:
initialization- parameters used for initialization.- Throws:
InitializeException- if initialization does not successfully complete.
-
get
Description copied from interface:ProviderGets or creates an object of typeT.- Returns:
- the object returned by the provider.
-
getChannelIndex
public int getChannelIndex()The index of the channel to use from the stack. -
setChannelIndex
public void setChannelIndex(int channelIndex) The index of the channel to use from the stack. -
getStackProviderID
The identifier of the stack provider to retrieve the stack from. -
setStackProviderID
The identifier of the stack provider to retrieve the stack from.
-