Class CalculateDeriveObjectInput
- All Implemented Interfaces:
ResettableCalculation
public class CalculateDeriveObjectInput
extends CalculationPart<FeatureInputSingleObject,FeatureInputStack>
Derives a
FeatureInputSingleObject from a FeatureInputStack by extracting an
object mask from a specific energy channel.
This class extends CalculationPart to provide functionality for deriving a single
object input from a stack input.
-
Constructor Summary
ConstructorsConstructorDescriptionCalculateDeriveObjectInput(int energyIndex) Creates a newCalculateDeriveObjectInputinstance. -
Method Summary
Modifier and TypeMethodDescriptionprotected booleanbooleanprotected FeatureInputSingleObjectexecute(FeatureInputStack input) This performs the actual calculation when needed.inthashCode()Methods inherited from class org.anchoranalysis.feature.calculate.part.CalculationPart
getOrCalculate, hasCachedResult, invalidate
-
Constructor Details
-
CalculateDeriveObjectInput
public CalculateDeriveObjectInput(int energyIndex) Creates a newCalculateDeriveObjectInputinstance.- Parameters:
energyIndex- The index of the energy channel to extract the object mask from.
-
-
Method Details
-
execute
protected FeatureInputSingleObject execute(FeatureInputStack input) throws FeatureCalculationException Description copied from class:CalculationPartThis performs the actual calculation when needed. It should only be called once, untilCalculationPart.invalidate()is called.- Specified by:
executein classCalculationPart<FeatureInputSingleObject,FeatureInputStack> - Parameters:
input- the input to the calculation.- Returns:
- the result of the calculation.
- Throws:
FeatureCalculationException- if the calculation cannot be successfully completed.
-
equals
- Specified by:
equalsin classCalculationPart<FeatureInputSingleObject,FeatureInputStack>
-
canEqual
-
hashCode
public int hashCode()- Specified by:
hashCodein classCalculationPart<FeatureInputSingleObject,FeatureInputStack>
-