Class FromChannelBase
- All Implemented Interfaces:
Provider<Mask>
,ProviderAsStack
- Direct Known Subclasses:
AutoLocalThreshold
,FromChannel
,SegmentChannel
,Threshold
Base-class for
MaskProvider
s that accept a Channel
as input.- Author:
- Owen Feehan
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected abstract Mask
createFromSource
(Channel source) get()
Gets or creates an object of typeT
.The provider for the channel from which to create the mask.void
setChannel
(ChannelProvider channel) The provider for the channel from which to create the mask.Methods inherited from class org.anchoranalysis.image.bean.provider.MaskProvider
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
-
FromChannelBase
public FromChannelBase()
-
-
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.
-
createFromSource
- Parameters:
source
- the source channel- Returns:
- the created mask
- Throws:
CreateException
- if the mask creation fails
-
getChannel
The provider for the channel from which to create the mask. -
setChannel
The provider for the channel from which to create the mask.
-