Class ObjectVoxelIntersection
Object
ObjectVoxelIntersection
- All Implemented Interfaces:
Assignment<ObjectMask>
Creates an assignment between intersecting voxels in two objects.
Voxels are considered to be assigned, if the exact same voxel exists in both ObjectMasks, and otherwise a voxel is considered unassigned.
Calculates statistics based upon corresponding two object-masks:
The object-masks are arbitrarily termed left and right.
- Author:
- Owen Feehan
-
Constructor Summary
ConstructorsConstructorDescriptionObjectVoxelIntersection(ObjectMask left, ObjectMask right) Determines a voxel-assignment between two objects. -
Method Summary
Modifier and TypeMethodDescriptionintThe number of items that are paired.intnumberUnassigned(boolean left) The number of items in a particular set that are not paired.paired(boolean left) The items that are paired for a particular set.The statistics associated with the assignment.unassigned(boolean left) The items that are not paired for a particular set.
-
Constructor Details
-
ObjectVoxelIntersection
Determines a voxel-assignment between two objects.- Parameters:
left- the left-object.right- the right-object.
-
-
Method Details
-
numberPaired
public int numberPaired()Description copied from interface:AssignmentThe number of items that are paired.This is necessarily the same number for either set.
- Specified by:
numberPairedin interfaceAssignment<ObjectMask>- Returns:
- the total number of pairings.
-
numberUnassigned
public int numberUnassigned(boolean left) Description copied from interface:AssignmentThe number of items in a particular set that are not paired.- Specified by:
numberUnassignedin interfaceAssignment<ObjectMask>- Parameters:
left- if true, the left-set is considered, otherwise the right-set.- Returns:
- the number of unpaired items for the respective set.
-
paired
Description copied from interface:AssignmentThe items that are paired for a particular set.- Specified by:
pairedin interfaceAssignment<ObjectMask>- Parameters:
left- if true, the left-set is considered, otherwise the right-set.- Returns:
- a newly created list containing the paired items.
-
unassigned
Description copied from interface:AssignmentThe items that are not paired for a particular set.- Specified by:
unassignedin interfaceAssignment<ObjectMask>- Parameters:
left- if true, the left-set is considered, otherwise the right-set.- Returns:
- a newly created list containing the unpaired items for the respective set.
-
statistics
Description copied from interface:AssignmentThe statistics associated with the assignment.- Specified by:
statisticsin interfaceAssignment<ObjectMask>- Returns:
- the statistics.
-