Class FromChannelBase
Object
AnchorBean<MaskProvider>
InitializableBean<MaskProvider, ImageInitialization>
ImageBean<MaskProvider>
BeanProviderAsStackBase<MaskProvider, Mask>
MaskProvider
FromChannelBase
- All Implemented Interfaces:
Provider<Mask>,ProviderAsStack
- Direct Known Subclasses:
FromChannel,SegmentChannel,Threshold
public abstract class FromChannelBase
extends MaskProvider
Base-class for
MaskProviders that accept a Channel as input.- Author:
- Owen Feehan
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected abstract MaskcreateFromSource(Channel source) Creates aMaskfrom the sourceChannel.Maskget()ChannelProviderThe provider for the channel from which to create the mask.voidsetChannel(ChannelProvider channel) The provider for the channel from which to create the mask.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, isInitialized, onInitializationMethods inherited from class org.anchoranalysis.bean.AnchorBean
checkMisconfigured, describeBean, describeChildren, duplicateBean, fields, findFieldsOfClass, getBeanName, getLocalPath, localise, toString
-
Constructor Details
-
FromChannelBase
public FromChannelBase()
-
-
Method Details
-
get
public Mask get() throws ProvisionFailedException- Throws:
ProvisionFailedException
-
createFromSource
protected abstract Mask createFromSource(Channel source) throws CreateException Creates aMaskfrom the sourceChannel.- Parameters:
source- the source channel- Returns:
- the created mask
- Throws:
CreateException- if the mask creation fails
-
getChannel
public ChannelProvider getChannel()The provider for the channel from which to create the mask. -
setChannel
public void setChannel(ChannelProvider channel) The provider for the channel from which to create the mask.
-