Class FromChannelBase
- All Implemented Interfaces:
Provider<Mask>,ProviderAsStack
- Direct Known Subclasses:
AutoLocalThreshold,FromChannel,SegmentChannel,Threshold
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) get()Gets or creates an object of typeT.The 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
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.
-
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.
-