Class CalculateInputFromPair
Object
org.anchoranalysis.feature.calculate.part.CalculationPart<FeatureInputSingleObject,FeatureInputPairObjects>
org.anchoranalysis.image.feature.calculation.CalculateInputFromPair
- All Implemented Interfaces:
ResettableCalculation
public class CalculateInputFromPair extends CalculationPart<FeatureInputSingleObject,FeatureInputPairObjects>
Calculates a single-input from a pair of objects.
Three extraction modes are possible:
- First object
- Second object
- Merged objects
- Author:
- Owen Feehan
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classCalculateInputFromPair.ExtractDefines the extraction mode for the calculation. -
Constructor Summary
Constructors Constructor Description CalculateInputFromPair(CalculateInputFromPair.Extract extract) -
Method Summary
Modifier and Type Method Description protected booleancanEqual(Object other)booleanequals(Object o)protected FeatureInputSingleObjectexecute(FeatureInputPairObjects input)Executes the calculation to extract a single object from the pair.inthashCode()Methods inherited from class org.anchoranalysis.feature.calculate.part.CalculationPart
getOrCalculate, hasCachedResult, invalidate
-
Constructor Details
-
Method Details
-
execute
Executes the calculation to extract a single object from the pair.- Specified by:
executein classCalculationPart<FeatureInputSingleObject,FeatureInputPairObjects>- Parameters:
input- The input pair of objects.- Returns:
- A new FeatureInputSingleObject containing the extracted object and energy stack.
-
equals
- Specified by:
equalsin classCalculationPart<FeatureInputSingleObject,FeatureInputPairObjects>
-
canEqual
-
hashCode
public int hashCode()- Specified by:
hashCodein classCalculationPart<FeatureInputSingleObject,FeatureInputPairObjects>
-