Class FromMaskBase
- All Implemented Interfaces:
Provider<Channel>,ProviderAsStack
- Direct Known Subclasses:
DistanceTransform3D,FromMask
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) get()Gets or creates an object of typeT.getMask()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
Description copied from interface:ProviderGets or creates an object of typeT.- Returns:
- the object returned by the provider.
- Throws:
ProvisionFailedException- if the object cannot be returned.
-
createFromMask
- Parameters:
mask- theMaskto create the channel from- Returns:
- the created
Channel - Throws:
ProvisionFailedException- if the channel creation fails
-
getMask
TheMaskProviderused to create the binary mask. -
setMask
TheMaskProviderused to create the binary mask.
-