public class ObjectVoxelIntersection extends Object implements Assignment<ObjectMask>
Voxels are considered to be assigned, if the exact same voxel exists in both ObjectMask
s, and otherwise a voxel is considered unassigned.
Calculates statistics based upon corresponding two object-masks:
The object-masks are arbitrarily termed left and right.
Constructor and Description |
---|
ObjectVoxelIntersection(ObjectMask left,
ObjectMask right)
Determines a voxel-assignment between two objects.
|
Modifier and Type | Method and Description |
---|---|
int |
numberPaired()
The number of items that are paired.
|
int |
numberUnassigned(boolean left)
The number of items in a particular set that are not paired.
|
List<ObjectMask> |
paired(boolean left)
The items that are paired for a particular set.
|
StatisticsToExport |
statistics()
The statistics associated with the assignment.
|
List<ObjectMask> |
unassigned(boolean left)
The items that are not paired for a particular set.
|
public ObjectVoxelIntersection(ObjectMask left, ObjectMask right)
left
- the left-object.right
- the right-object.public int numberPaired()
Assignment
This is necessarily the same number for either set.
numberPaired
in interface Assignment<ObjectMask>
public int numberUnassigned(boolean left)
Assignment
numberUnassigned
in interface Assignment<ObjectMask>
left
- if true, the left-set is considered, otherwise the right-set.public List<ObjectMask> paired(boolean left)
Assignment
paired
in interface Assignment<ObjectMask>
left
- if true, the left-set is considered, otherwise the right-set.public List<ObjectMask> unassigned(boolean left)
Assignment
unassigned
in interface Assignment<ObjectMask>
left
- if true, the left-set is considered, otherwise the right-set.public StatisticsToExport statistics()
Assignment
statistics
in interface Assignment<ObjectMask>
Copyright © 2010–2023 Owen Feehan, ETH Zurich, University of Zurich, Hoffmann-La Roche. All rights reserved.