All Implemented Interfaces:
Provider<Channel>, ProviderAsStack

public class SubtractFromConstant extends ArithmeticWithConstantBase
Subtracts each voxel value in a channel from a constant value.

This class extends ArithmeticWithConstantBase to perform a pixel-wise subtraction operation where a constant value is subtracted by each voxel value in the input channel.

  • Constructor Details

    • SubtractFromConstant

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