Class 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
Methods inherited from class org.anchoranalysis.plugin.image.bean.mask.provider.FromChannelBase
get, getChannel, setChannel
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
-
FromChannel
public FromChannel()
-
-
Method Details
-
createFromSource
Description copied from class:FromChannelBase
- Specified by:
createFromSource
in classFromChannelBase
- Parameters:
source
- the source channel- Returns:
- the created mask
- Throws:
CreateException
- if the mask creation fails
-