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
.int
The index of the channel to use from the stack.The identifier of the stack provider to retrieve the stack from.void
onInitialization
(ImageInitialization initialization) Called after initialization.void
setChannelIndex
(int channelIndex) The index of the channel to use from the stack.void
setStackProviderID
(String stackProviderID) The identifier of the stack provider to retrieve the stack from.Methods inherited from class org.anchoranalysis.image.bean.provider.MaskProvider
getAsStack
Methods inherited from class org.anchoranalysis.bean.initializable.InitializableBean
getInitialization, getLogger, getPropertyInitializer, initialize, initializeRecursive, initRecursiveWithInitializer, isInitialized
Methods 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:InitializableBean
Called after initialization. An empty implementation is provided, to be overridden as needed in the sub-classes.- Overrides:
onInitialization
in classInitializableBean<MaskProvider,
ImageInitialization> - Parameters:
initialization
- parameters used for initialization.- Throws:
InitializeException
- if initialization does not successfully complete.
-
get
Description copied from interface:Provider
Gets 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.
-