Class ZeroOutsideMask
- All Implemented Interfaces:
Provider<Channel>,ProviderAsStack
Set pixels NOT IN the mask to 0, but keep pixels IN the mask identical.
It's an immutable operation and a new channel is always produced.
- Author:
- Owen Feehan
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected ChannelcreateFromMaskedChannel(Channel channel, Mask mask) Creates a newChannelfrom the input channel and mask.Methods inherited from class org.anchoranalysis.plugin.image.bean.channel.provider.mask.UnaryWithMaskBase
createFromChannel, getMask, setMaskMethods inherited from class org.anchoranalysis.image.bean.provider.ChannelProviderUnary
get, getChannel, setChannelMethods inherited from class org.anchoranalysis.image.bean.provider.ChannelProvider
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
-
ZeroOutsideMask
public ZeroOutsideMask()
-
-
Method Details
-
createFromMaskedChannel
Description copied from class:UnaryWithMaskBaseCreates a newChannelfrom the input channel and mask.- Specified by:
createFromMaskedChannelin classUnaryWithMaskBase- Parameters:
channel- the inputChannelmask- theMaskto apply to the channel- Returns:
- a new
Channelcreated from the input channel and mask
-