Class CalculateErosionMap
- All Implemented Interfaces:
ResettableCalculation
Calculates a map of eroded
ObjectMasks for different iteration counts.
This class extends CalculateIncrementalOperationMap to perform erosion operations on
object masks and cache the results for different iteration counts.
-
Constructor Summary
ConstructorsModifierConstructorDescriptionCalculateErosionMap(boolean do3D) Creates a newCalculateErosionMap.protectedCopy constructor forCalculateErosionMap. -
Method Summary
Modifier and TypeMethodDescriptionprotected ObjectMaskapplyOperation(ObjectMask object, Extent extent, boolean do3D) Applies the incremental operation to the input object.protected booleanbooleaninthashCode()Methods inherited from class org.anchoranalysis.plugin.image.feature.object.calculation.single.CalculateIncrementalOperationMap
executeMethods inherited from class org.anchoranalysis.feature.calculate.part.CalculationPartMap
getOrCalculate, getOrNull, hasKey, invalidate, numberItemsCurrentlyStored, put
-
Constructor Details
-
CalculateErosionMap
public CalculateErosionMap(boolean do3D) Creates a newCalculateErosionMap.- Parameters:
do3D- whether to perform 3D erosion (true) or 2D erosion (false)
-
CalculateErosionMap
Copy constructor forCalculateErosionMap.- Parameters:
other- theCalculateIncrementalOperationMapto copy from
-
-
Method Details
-
applyOperation
protected ObjectMask applyOperation(ObjectMask object, Extent extent, boolean do3D) throws OperationFailedException Description copied from class:CalculateIncrementalOperationMapApplies the incremental operation to the input object.- Specified by:
applyOperationin classCalculateIncrementalOperationMap- 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
- Overrides:
equalsin classCalculateIncrementalOperationMap
-
canEqual
- Overrides:
canEqualin classCalculateIncrementalOperationMap
-
hashCode
public int hashCode()- Overrides:
hashCodein classCalculateIncrementalOperationMap
-