public class CountVoxelsIntersectingBounded extends Object
IterateVoxelsBoundingBox
but counts voxels matching a predicate rather than
iterating.Modifier and Type | Method and Description |
---|---|
static int |
countByte(BoundedVoxels<UnsignedByteBuffer> voxels1,
BoundedVoxels<UnsignedByteBuffer> voxels2,
PredicateTwoBytes predicate)
Counts all voxels in the intersection of two bounded-voxels of type
BoundedVoxels
that match a predicate. |
static int |
countByteMasked(Voxels<UnsignedByteBuffer> maskGlobal,
byte onMaskGlobal,
BoundedVoxels<UnsignedByteBuffer> voxels1,
BoundedVoxels<UnsignedByteBuffer> voxels2,
PredicateTwoBytes predicate)
Counts all voxels intersection of two bounded-voxels of type
BoundedVoxels but only
voxels that lie on an object-mask and match a predicate. |
public static int countByte(BoundedVoxels<UnsignedByteBuffer> voxels1, BoundedVoxels<UnsignedByteBuffer> voxels2, PredicateTwoBytes predicate)
BoundedVoxels
that match a predicate.voxels1
- the first bounded-voxelsvoxels2
- the second bounded-voxelspredicate
- determines if a particular voxel should be counted or not?public static int countByteMasked(Voxels<UnsignedByteBuffer> maskGlobal, byte onMaskGlobal, BoundedVoxels<UnsignedByteBuffer> voxels1, BoundedVoxels<UnsignedByteBuffer> voxels2, PredicateTwoBytes predicate)
BoundedVoxels
but only
voxels that lie on an object-mask and match a predicate.maskGlobal
- a mask defined on the entire global space, and all matching voxels must
have an on value in this mask, in addition to being part of the intersection of
voxels1
and voxels2
.onMaskGlobal
- the on value in maskGlobal
.voxels1
- the first bounded-voxelsvoxels2
- the second bounded-voxelspredicate
- determines if a particular voxel should be counted or not?Copyright © 2010–2023 Owen Feehan, ETH Zurich, University of Zurich, Hoffmann-La Roche. All rights reserved.