Class FromStackChannel
Object
AnchorBean<MaskProvider>
InitializableBean<MaskProvider, ImageInitialization>
ImageBean<MaskProvider>
BeanProviderAsStackBase<MaskProvider, Mask>
MaskProvider
FromStackChannel
- All Implemented Interfaces:
Provider<Mask>,ProviderAsStack
public class FromStackChannel
extends MaskProvider
Creates a
Mask from a specific channel in a stack.-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionMaskget()intThe index of the channel to use from the stack.The identifier of the stack provider to retrieve the stack from.voidonInitialization(ImageInitialization 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
public void onInitialization(ImageInitialization initialization) throws InitializeException - Overrides:
onInitializationin classInitializableBean<MaskProvider, ImageInitialization>- Throws:
InitializeException
-
get
public Mask get() -
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.
-