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 newCalculateDeriveObjectInput
instance. -
Method Summary
Modifier and TypeMethodDescriptionprotected boolean
boolean
protected FeatureInputSingleObject
execute
(FeatureInputStack input) This performs the actual calculation when needed.int
hashCode()
Methods inherited from class org.anchoranalysis.feature.calculate.part.CalculationPart
getOrCalculate, hasCachedResult, invalidate
-
Constructor Details
-
CalculateDeriveObjectInput
public CalculateDeriveObjectInput(int energyIndex) Creates a newCalculateDeriveObjectInput
instance.- 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:CalculationPart
This performs the actual calculation when needed. It should only be called once, untilCalculationPart.invalidate()
is called.- Specified by:
execute
in 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:
equals
in classCalculationPart<FeatureInputSingleObject,
FeatureInputStack>
-
canEqual
-
hashCode
public int hashCode()- Specified by:
hashCode
in classCalculationPart<FeatureInputSingleObject,
FeatureInputStack>
-