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 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