All Implemented Interfaces:
Provider<Channel>, ProviderAsStack

public final class AddConstant extends ArithmeticWithConstantBase
Adds a constant value to each voxel in a channel.

This class extends ArithmeticWithConstantBase to perform addition of a constant value to each voxel in the input channel.

  • Constructor Details

    • AddConstant

      public AddConstant()
  • 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