Class AddCriteriaOr
Object
org.anchoranalysis.bean.AnchorBean<AddCriteriaPair>
org.anchoranalysis.mpp.feature.addcriteria.AddCriteriaPair
org.anchoranalysis.mpp.feature.addcriteria.AddCriteriaOr
- All Implemented Interfaces:
AddCriteria<MarkPair<Mark>>,OrderedFeatureList<FeatureInputPairMemo>
public class AddCriteriaOr extends AddCriteriaPair
An
AddCriteriaPair that combines multiple criteria using a logical OR operation.
This class will include marks if any of the criteria in the list are satisfied.
-
Constructor Summary
Constructors Constructor Description AddCriteriaOr() -
Method Summary
Modifier and Type Method Description List<AddCriteriaPair>getList()List ofAddCriteriaPairto be combined with OR operation.booleanincludeMarks(VoxelizedMarkMemo mark1, VoxelizedMarkMemo mark2, Dimensions dimensions, Optional<FeatureCalculatorMulti<FeatureInputPairMemo>> session, boolean do3D)Determines whether to include a pair of marks based on specific criteria.Optional<FeatureList<FeatureInputPairMemo>>orderedListOfFeatures()Retrieves an ordered list of features used to determine theAddCriteria.voidsetList(List<AddCriteriaPair> list)List ofAddCriteriaPairto be combined with OR operation.Methods inherited from class org.anchoranalysis.mpp.feature.addcriteria.AddCriteriaPair
describeBean, generateEdgeMethods inherited from class org.anchoranalysis.bean.AnchorBean
checkMisconfigured, describeChildren, duplicateBean, fields, findFieldsOfClass, getBeanName, getLocalPath, localise, toString
-
Constructor Details
-
AddCriteriaOr
public AddCriteriaOr()
-
-
Method Details
-
includeMarks
public boolean includeMarks(VoxelizedMarkMemo mark1, VoxelizedMarkMemo mark2, Dimensions dimensions, Optional<FeatureCalculatorMulti<FeatureInputPairMemo>> session, boolean do3D) throws IncludeMarksFailureExceptionDescription copied from class:AddCriteriaPairDetermines whether to include a pair of marks based on specific criteria.- Specified by:
includeMarksin classAddCriteriaPair- Parameters:
mark1- the firstVoxelizedMarkMemomark2- the secondVoxelizedMarkMemodimensions- theDimensionsof the imagesession- an optionalFeatureCalculatorMultifor 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:OrderedFeatureListRetrieves an ordered list of features used to determine theAddCriteria.- Returns:
- an
Optionalcontaining aFeatureListof type T if relevant, orOptional.empty()if irrelevant - Throws:
CreateException- if an error occurs while creating the feature list
-
getList
List ofAddCriteriaPairto be combined with OR operation. -
setList
List ofAddCriteriaPairto be combined with OR operation.
-