Class CountVoxelsIntersectingObjects
Object
org.anchoranalysis.image.voxel.iterator.intersecting.CountVoxelsIntersectingObjects
public class CountVoxelsIntersectingObjects extends Object
Like
CountVoxelsIntersectingBounded but specifically counts areas of intersection between
two ObjectMasks.- Author:
- Owen Feehan
-
Method Summary
Modifier and Type Method Description static intcountIntersectingVoxels(ObjectMask object1, ObjectMask object2)Counts the number of intersecting-voxels between two object-masks.static booleanhasIntersectingVoxels(ObjectMask object1, ObjectMask object2)Determines whether there are any intersecting voxels on two object-masks.
-
Method Details
-
hasIntersectingVoxels
Determines whether there are any intersecting voxels on two object-masks.This is an immutable operation.
The algorithm exits as soon as an intersecting voxel is encountered i.e. as early as possible.
- Parameters:
object1- first-objectobject2- second-object- Returns:
- true if at least one voxel exists that is on in both object-masks.
-
countIntersectingVoxels
Counts the number of intersecting-voxels between two object-masks.This is an immutable operation.
- Parameters:
object1- first-objectobject2- second-object- Returns:
- number of on-voxels the two object-masks have in common.
-