Class CalculateDilationMap
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.CalculateDilationMap
- All Implemented Interfaces:
org.anchoranalysis.feature.calculate.cache.ResettableCalculation
public class CalculateDilationMap extends CalculateIncrementalOperationMap
Calculates a map of dilated
ObjectMasks 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
Constructors Modifier Constructor Description CalculateDilationMap(boolean do3D)Creates a newCalculateDilationMap.protectedCalculateDilationMap(CalculateIncrementalOperationMap other)Copy constructor forCalculateDilationMap. -
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
-
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- 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
-