Package org.anchoranalysis.mpp.overlap
Class OverlapUtilities
Object
org.anchoranalysis.mpp.overlap.OverlapUtilities
public class OverlapUtilities extends Object
Utility class for calculating overlap between voxelized marks.
-
Method Summary
Modifier and Type Method Description static doubleoverlapWith(VoxelizedMarkMemo memo1, VoxelizedMarkMemo memo2, int regionID)Calculates the overlap between two voxelized marks for a specific region.static doubleoverlapWithMaskGlobal(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 twoVoxelizedMarkMemoobjects, considering a global mask.
-
Method Details
-
overlapWith
Calculates the overlap between two voxelized marks for a specific region.- Parameters:
memo1- the first voxelized mark memomemo2- the second voxelized mark memoregionID- 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 twoVoxelizedMarkMemoobjects, considering a global mask.- Parameters:
memo1- the first voxelized mark memomemo2- the second voxelized mark memoregionID- the ID of the region to consider for overlapglobalMask- the global mask to apply during overlap calculationonGlobalMask- the value in the global mask that indicates a voxel should be considered- Returns:
- the total number of overlapping voxels
-