Object
MaskXor

public class MaskXor extends Object
Performs a logical xor (exclusive or) operation on corresponding voxels in two Masks.
Author:
Owen Feehan
  • Method Details

    • apply

      public static void apply(Mask first, Mask second)
      Performs a logical xor (exclusive or) operation on each voxel in two masks, writing the result onto the first mask.
      Parameters:
      first - the first channel for operation (and in which the result is written)
      second - the second channel for operation
    • apply

      public static void apply(BinaryVoxels<UnsignedByteBuffer> voxelsFirst, BinaryVoxels<UnsignedByteBuffer> voxelsSecond)
      Performs a logical xor (exclusive or) operation on each voxel in two Voxels (considered to be masks), writing the result onto the second mask.
      Parameters:
      voxelsFirst - the first voxels for operation
      voxelsSecond - the second voxels for operation (and in which the result is written)