Class FromChannel
Object
AnchorBean<MaskProvider>
InitializableBean<MaskProvider, ImageInitialization>
ImageBean<MaskProvider>
BeanProviderAsStackBase<MaskProvider, Mask>
MaskProvider
FromChannelBase
FromChannel
- All Implemented Interfaces:
Provider<Mask>,ProviderAsStack
Creates a mask from an existing channel, reusing the channel's buffer and considering all 0
values as off, and 255 values as on.
No check occurs to see if the channel contains voxels that are neither 0 nor 255 but the user should not pass such a channel, as behaviour is undefined.
- Author:
- Owen Feehan
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected MaskcreateFromSource(Channel source) Creates aMaskfrom the sourceChannel.Methods 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
-
FromChannel
public FromChannel()
-
-
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
-