Class FromMaskBase
Object
AnchorBean<ChannelProvider>
InitializableBean<ChannelProvider, ImageInitialization>
ImageBean<ChannelProvider>
BeanProviderAsStackBase<ChannelProvider, Channel>
ChannelProvider
FromMaskBase
- All Implemented Interfaces:
Provider<Channel>,ProviderAsStack
- Direct Known Subclasses:
FromMask
public abstract class FromMaskBase
extends ChannelProvider
A base class for a
ChannelProvider which also uses a binary-mask, but which doesn't use
any other ChannelProvider as an input.
Note for classes that use both a binary-mask AND another ChannelProvider, see UnaryWithMaskBase.
- Author:
- Owen Feehan
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected abstract ChannelcreateFromMask(Mask mask) Creates aChannelfrom the providedMask.Channelget()MaskProvidergetMask()TheMaskProviderused to create the binary mask.voidsetMask(MaskProvider mask) TheMaskProviderused to create the binary mask.Methods 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
-
FromMaskBase
public FromMaskBase()
-
-
Method Details
-
get
public Channel get() throws ProvisionFailedException- Throws:
ProvisionFailedException
-
createFromMask
protected abstract Channel createFromMask(Mask mask) throws ProvisionFailedException Creates aChannelfrom the providedMask.- Parameters:
mask- theMaskto create the channel from- Returns:
- the created
Channel - Throws:
ProvisionFailedException- if the channel creation fails
-
getMask
public MaskProvider getMask()TheMaskProviderused to create the binary mask. -
setMask
public void setMask(MaskProvider mask) TheMaskProviderused to create the binary mask.
-