Class OverlapUtilities

Object
org.anchoranalysis.mpp.overlap.OverlapUtilities

public class OverlapUtilities
extends Object
Utility class for calculating overlap between voxelized marks.
  • Method Details

    • overlapWith

      public static double overlapWith​(VoxelizedMarkMemo memo1, VoxelizedMarkMemo memo2, int regionID)
      Calculates the overlap between two voxelized marks for a specific region.
      Parameters:
      memo1 - the first voxelized mark memo
      memo2 - the second voxelized mark memo
      regionID - the ID of the region to consider for overlap
      Returns:
      the number of overlapping voxels
    • overlapWithMaskGlobal

      public static double overlapWithMaskGlobal​(VoxelizedMarkMemo memo1, VoxelizedMarkMemo memo2, int regionID, org.anchoranalysis.image.voxel.Voxels<org.anchoranalysis.image.voxel.buffer.primitive.UnsignedByteBuffer> globalMask, byte onGlobalMask)
      Counts the number of overlapping voxels between two VoxelizedMarkMemo objects, considering a global mask.
      Parameters:
      memo1 - the first voxelized mark memo
      memo2 - the second voxelized mark memo
      regionID - the ID of the region to consider for overlap
      globalMask - the global mask to apply during overlap calculation
      onGlobalMask - the value in the global mask that indicates a voxel should be considered
      Returns:
      the total number of overlapping voxels