Object
MaskAnd

public class MaskAnd extends Object
Performs a logical and operation on corresponding voxels in two Masks.
Author:
Owen Feehan
  • Method Details

    • apply

      public static void apply(Mask first, Mask second)
      Performs a logical and operation on each voxel in two masks, writing the result onto the second 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(Voxels<UnsignedByteBuffer> voxelsFirst, Voxels<UnsignedByteBuffer> voxelsSecond, BinaryValuesByte binaryValuesFirst, BinaryValuesByte binaryValuesSecond)
      Performs a logical and operation on each voxel in two Voxels (considered to be masks), writing the result onto the second mask.
      Parameters:
      voxelsFirst - the first voxels for the operation (and in which the result is written).
      voxelsSecond - the second voxels for the operation.
      binaryValuesFirst - binary-values to mask first voxels.
      binaryValuesSecond - binary-values to mask second voxels.