Class MultiplyConstant

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

public class MultiplyConstant extends ArithmeticWithConstantBase
Multiplies each voxel value in a channel by a constant value.

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

  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    protected int
    performBinaryOperation(int voxel, int constant)
    The binary arithmetic operation that combines the voxel-value and the constant-value.

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

    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

    • MultiplyConstant

      public MultiplyConstant()
  • Method Details

    • performBinaryOperation

      protected int performBinaryOperation(int voxel, int constant)
      Description copied from class: ArithmeticWithConstantBase
      The binary arithmetic operation that combines the voxel-value and the constant-value.
      Specified by:
      performBinaryOperation in class ArithmeticWithConstantBase
      Parameters:
      voxel - the value of the current voxel
      constant - the constant value to be used in the operation
      Returns:
      the result of the binary operation