public class CountVoxelsIntersectingObjects extends Object
CountVoxelsIntersectingBounded
but specifically counts areas of intersection between
two ObjectMask
s.Modifier and Type | Method and Description |
---|---|
static int |
countIntersectingVoxels(ObjectMask object1,
ObjectMask object2)
Counts the number of intersecting-voxels between two object-masks.
|
static boolean |
hasIntersectingVoxels(ObjectMask object1,
ObjectMask object2)
Determines whether there are any intersecting voxels on two object-masks.
|
public static boolean hasIntersectingVoxels(ObjectMask object1, ObjectMask object2)
This is an immutable operation.
The algorithm exits as soon as an intersecting voxel is encountered i.e. as early as possible.
object1
- first-objectobject2
- second-objectpublic static int countIntersectingVoxels(ObjectMask object1, ObjectMask object2)
This is an immutable operation.
object1
- first-objectobject2
- second-objectCopyright © 2010–2023 Owen Feehan, ETH Zurich, University of Zurich, Hoffmann-La Roche. All rights reserved.