Class CalculateErosionMap
Object
org.anchoranalysis.feature.calculate.part.CalculationPartMap<org.anchoranalysis.image.voxel.object.ObjectMask,org.anchoranalysis.image.feature.input.FeatureInputSingleObject,Integer,org.anchoranalysis.feature.calculate.FeatureCalculationException>
org.anchoranalysis.plugin.image.feature.object.calculation.single.CalculateIncrementalOperationMap
org.anchoranalysis.plugin.image.feature.object.calculation.single.morphological.CalculateErosionMap
- All Implemented Interfaces:
org.anchoranalysis.feature.calculate.cache.ResettableCalculation
public class CalculateErosionMap extends CalculateIncrementalOperationMap
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
Constructors Modifier Constructor Description CalculateErosionMap(boolean do3D)Creates a newCalculateErosionMap.protectedCalculateErosionMap(CalculateIncrementalOperationMap other)Copy constructor forCalculateErosionMap. -
Method Summary
Modifier and Type Method Description protected org.anchoranalysis.image.voxel.object.ObjectMaskapplyOperation(org.anchoranalysis.image.voxel.object.ObjectMask object, org.anchoranalysis.spatial.box.Extent extent, boolean do3D)Applies the incremental operation to the input object.protected booleancanEqual(Object other)booleanequals(Object o)inthashCode()Methods inherited from class org.anchoranalysis.plugin.image.feature.object.calculation.single.CalculateIncrementalOperationMap
execute
-
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 org.anchoranalysis.image.voxel.object.ObjectMask applyOperation(org.anchoranalysis.image.voxel.object.ObjectMask object, org.anchoranalysis.spatial.box.Extent extent, boolean do3D) throws org.anchoranalysis.core.exception.OperationFailedExceptionDescription 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:
org.anchoranalysis.core.exception.OperationFailedException- if the operation fails
-
equals
- Overrides:
equalsin classCalculateIncrementalOperationMap
-
canEqual
- Overrides:
canEqualin classCalculateIncrementalOperationMap
-
hashCode
public int hashCode()- Overrides:
hashCodein classCalculateIncrementalOperationMap
-