Class MaxWithConstant

Object
AnchorBean<ChannelProvider>
InitializableBean<ChannelProvider, ImageInitialization>
ImageBean<ChannelProvider>
BeanProviderAsStackBase<ChannelProvider, Channel>
ChannelProvider
All Implemented Interfaces:
Provider<Channel>, ProviderAsStack

public class MaxWithConstant extends ArithmeticWithConstantConditionallyWriteBase
Replaces voxel values with a constant value if the constant is greater than the original voxel value.

This class extends ArithmeticWithConstantConditionallyWriteBase to perform a pixel-wise maximum operation between the input channel and a constant value.

  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    protected boolean
    shouldOverwriteVoxelWithConstant(int voxel, int constant)
    Determines whether to overwrite the current voxel value with the constant.

    Methods inherited from class org.anchoranalysis.plugin.image.bean.channel.provider.arithmetic.ArithmeticWithConstantConditionallyWriteBase

    createFromChannelWithConstant

    Methods inherited from class org.anchoranalysis.plugin.image.bean.channel.provider.UnaryWithValueBase

    createFromChannel, getValue, setValue

    Methods inherited from class org.anchoranalysis.image.bean.provider.ChannelProviderUnary

    get, getChannel, setChannel

    Methods inherited from class org.anchoranalysis.image.bean.provider.ChannelProvider

    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

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
  • Constructor Details

    • MaxWithConstant

      public MaxWithConstant()
  • Method Details