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 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.
- Author:
- Owen Feehan
-
Constructor Summary
ConstructorsConstructorDescriptionObjectVoxelIntersection
(ObjectMask left, ObjectMask right) Determines a voxel-assignment between two objects. -
Method Summary
Modifier and TypeMethodDescriptionint
The number of items that are paired.int
numberUnassigned
(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:Assignment
The number of items that are paired.This is necessarily the same number for either set.
- Specified by:
numberPaired
in interfaceAssignment<ObjectMask>
- Returns:
- the total number of pairings.
-
numberUnassigned
public int numberUnassigned(boolean left) Description copied from interface:Assignment
The number of items in a particular set that are not paired.- Specified by:
numberUnassigned
in 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:Assignment
The items that are paired for a particular set.- Specified by:
paired
in 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:Assignment
The items that are not paired for a particular set.- Specified by:
unassigned
in 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:Assignment
The statistics associated with the assignment.- Specified by:
statistics
in interfaceAssignment<ObjectMask>
- Returns:
- the statistics.
-