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 Channel
createFromMask
(Mask mask) get()
Gets or creates an object of typeT
.getMask()
TheMaskProvider
used to create the binary mask.void
setMask
(MaskProvider mask) TheMaskProvider
used to create the binary mask.Methods inherited from class org.anchoranalysis.image.bean.provider.ChannelProvider
getAsStack
Methods inherited from class org.anchoranalysis.bean.initializable.InitializableBean
getInitialization, getLogger, getPropertyInitializer, initialize, initializeRecursive, initRecursiveWithInitializer, isInitialized, onInitialization
Methods 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:Provider
Gets or creates an object of typeT
.- Returns:
- the object returned by the provider.
- Throws:
ProvisionFailedException
- if the object cannot be returned.
-
createFromMask
- Parameters:
mask
- theMask
to create the channel from- Returns:
- the created
Channel
- Throws:
ProvisionFailedException
- if the channel creation fails
-
getMask
TheMaskProvider
used to create the binary mask. -
setMask
TheMaskProvider
used to create the binary mask.
-