Class Threshold
Object
AnchorBean<MaskProvider>
InitializableBean<MaskProvider, ImageInitialization>
ImageBean<MaskProvider>
BeanProviderAsStackBase<MaskProvider, Mask>
MaskProvider
FromChannelBase
Threshold
- All Implemented Interfaces:
Provider<Mask>,ProviderAsStack
Thresholds a channel to produce a mask, reusing (and modifying) the input-buffers of the channel
if possible.
- Author:
- Owen Feehan
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected MaskcreateFromSource(Channel source) Creates aMaskfrom the sourceChannel.ThresholderThe thresholder that will convert a channel into a binary-channelvoidsetThresholder(Thresholder thresholder) The thresholder that will convert a channel into a binary-channelMethods inherited from class org.anchoranalysis.plugin.image.bean.mask.provider.FromChannelBase
get, getChannel, setChannelMethods 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
-
Threshold
public Threshold()
-
-
Method Details
-
createFromSource
protected Mask createFromSource(Channel source) throws CreateException Description copied from class:FromChannelBaseCreates aMaskfrom the sourceChannel.- Specified by:
createFromSourcein classFromChannelBase- Parameters:
source- the source channel- Returns:
- the created mask
- Throws:
CreateException- if the mask creation fails
-
getThresholder
public Thresholder getThresholder()The thresholder that will convert a channel into a binary-channel -
setThresholder
public void setThresholder(Thresholder thresholder) The thresholder that will convert a channel into a binary-channel
-