Class CalculateIncrementalOperationMap
Object
CalculationPartMap<ObjectMask, FeatureInputSingleObject, Integer, FeatureCalculationException>
CalculateIncrementalOperationMap
- All Implemented Interfaces:
ResettableCalculation
- Direct Known Subclasses:
CalculateDilationMap,CalculateErosionMap
public abstract class CalculateIncrementalOperationMap
extends CalculationPartMap<ObjectMask, FeatureInputSingleObject, Integer, FeatureCalculationException>
Calculates incremental operations on
ObjectMasks and stores the results in a map.-
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedCalculateIncrementalOperationMap(boolean do3D) Creates a new instance with the specified 3D flag.protectedCopy constructor. -
Method Summary
Modifier and TypeMethodDescriptionprotected abstract ObjectMaskapplyOperation(ObjectMask object, Extent extent, boolean do3D) Applies the incremental operation to the input object.protected booleanbooleanprotected ObjectMaskinthashCode()Methods inherited from class org.anchoranalysis.feature.calculate.part.CalculationPartMap
getOrCalculate, getOrNull, hasKey, invalidate, numberItemsCurrentlyStored, put
-
Constructor Details
-
CalculateIncrementalOperationMap
protected CalculateIncrementalOperationMap(boolean do3D) Creates a new instance with the specified 3D flag.- Parameters:
do3D- whether to perform 3D operations
-
CalculateIncrementalOperationMap
Copy constructor.- Parameters:
other- theCalculateIncrementalOperationMapto copy from
-
-
Method Details
-
execute
-
applyOperation
protected abstract ObjectMask applyOperation(ObjectMask object, Extent extent, boolean do3D) throws OperationFailedException Applies the incremental operation to the input object.- Parameters:
object- the inputObjectMaskextent- theExtentof the objectdo3D- whether to perform 3D operations- Returns:
- the resulting
ObjectMaskafter applying the operation - Throws:
OperationFailedException- if the operation fails
-
equals
-
canEqual
-
hashCode
public int hashCode()- Specified by:
hashCodein classCalculationPartMap<ObjectMask, FeatureInputSingleObject, Integer, FeatureCalculationException>
-