Class BoundingBoxIntersection
- All Implemented Interfaces:
AddCriteria<MarkPair<Mark>>
,OrderedFeatureList<FeatureInputPairMemo>
An
AddCriteriaPair
that includes marks if their bounding boxes intersect.-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionboolean
includeMarks
(VoxelizedMarkMemo mark1, VoxelizedMarkMemo mark2, Dimensions dimensions, Optional<FeatureCalculatorMulti<FeatureInputPairMemo>> session, boolean do3D) Determines whether to include a pair of marks based on specific criteria.boolean
If true, the Z dimension is ignored when checking for intersection.Retrieves an ordered list of features used to determine theAddCriteria
.void
setSuppressZ
(boolean suppressZ) If true, the Z dimension is ignored when checking for intersection.Methods inherited from class org.anchoranalysis.mpp.feature.addcriteria.AddCriteriaPair
describeBean, generateEdge
Methods inherited from class org.anchoranalysis.bean.AnchorBean
checkMisconfigured, describeChildren, duplicateBean, fields, findFieldsOfClass, getBeanName, getLocalPath, localise, toString
-
Constructor Details
-
BoundingBoxIntersection
public BoundingBoxIntersection()
-
-
Method Details
-
includeMarks
public boolean includeMarks(VoxelizedMarkMemo mark1, VoxelizedMarkMemo mark2, Dimensions dimensions, Optional<FeatureCalculatorMulti<FeatureInputPairMemo>> session, boolean do3D) throws IncludeMarksFailureException Description copied from class:AddCriteriaPair
Determines whether to include a pair of marks based on specific criteria.- Specified by:
includeMarks
in classAddCriteriaPair
- Parameters:
mark1
- the firstVoxelizedMarkMemo
mark2
- the secondVoxelizedMarkMemo
dimensions
- theDimensions
of the imagesession
- an optionalFeatureCalculatorMulti
for feature calculationsdo3D
- whether to perform 3D calculations- Returns:
- true if the marks should be included, false otherwise
- Throws:
IncludeMarksFailureException
- if there's an error during the inclusion decision process
-
orderedListOfFeatures
Description copied from interface:OrderedFeatureList
Retrieves an ordered list of features used to determine theAddCriteria
.- Returns:
- an
Optional
containing aFeatureList
of type T if relevant, orOptional.empty()
if irrelevant
-
isSuppressZ
public boolean isSuppressZ()If true, the Z dimension is ignored when checking for intersection. -
setSuppressZ
public void setSuppressZ(boolean suppressZ) If true, the Z dimension is ignored when checking for intersection.
-