Class CalculateDilationMap
- All Implemented Interfaces:
ResettableCalculation
Calculates a map of dilated
ObjectMask
s for different iteration counts.
This class extends CalculateIncrementalOperationMap
to perform dilation operations on
object masks and cache the results for different iteration counts.
-
Constructor Summary
ConstructorsModifierConstructorDescriptionCalculateDilationMap
(boolean do3D) Creates a newCalculateDilationMap
.protected
Copy constructor forCalculateDilationMap
. -
Method Summary
Modifier and TypeMethodDescriptionprotected ObjectMask
applyOperation
(ObjectMask object, Extent extent, boolean do3D) Applies the incremental operation to the input object.protected boolean
boolean
int
hashCode()
Methods inherited from class org.anchoranalysis.plugin.image.feature.object.calculation.single.CalculateIncrementalOperationMap
execute
Methods inherited from class org.anchoranalysis.feature.calculate.part.CalculationPartMap
getOrCalculate, getOrNull, hasKey, invalidate, numberItemsCurrentlyStored, put
-
Constructor Details
-
CalculateDilationMap
public CalculateDilationMap(boolean do3D) Creates a newCalculateDilationMap
.- Parameters:
do3D
- whether to perform 3D dilation (true) or 2D dilation (false)
-
CalculateDilationMap
Copy constructor forCalculateDilationMap
.- Parameters:
other
- theCalculateIncrementalOperationMap
to copy from
-
-
Method Details
-
applyOperation
protected ObjectMask applyOperation(ObjectMask object, Extent extent, boolean do3D) throws OperationFailedException Description copied from class:CalculateIncrementalOperationMap
Applies the incremental operation to the input object.- Specified by:
applyOperation
in classCalculateIncrementalOperationMap
- Parameters:
object
- the inputObjectMask
extent
- theExtent
of the objectdo3D
- whether to perform 3D operations- Returns:
- the resulting
ObjectMask
after applying the operation - Throws:
OperationFailedException
- if the operation fails
-
equals
- Overrides:
equals
in classCalculateIncrementalOperationMap
-
canEqual
- Overrides:
canEqual
in classCalculateIncrementalOperationMap
-
hashCode
public int hashCode()- Overrides:
hashCode
in classCalculateIncrementalOperationMap
-