Class CalculateDilation
- All Implemented Interfaces:
ResettableCalculation
Calculates the dilation of an
ObjectMask
.
This class extends CalculateObjectMask
to perform dilation operations on object masks.
-
Method Summary
Modifier and TypeMethodDescriptionprotected boolean
boolean
int
hashCode()
of
(CalculationPartResolver<FeatureInputSingleObject> cache, int iterations, boolean do3D) Creates a newResolvedPart
for calculating dilation.Methods inherited from class org.anchoranalysis.plugin.image.feature.object.calculation.single.CalculateObjectMask
execute, toString
Methods inherited from class org.anchoranalysis.feature.calculate.part.CalculationPart
getOrCalculate, hasCachedResult, invalidate
-
Method Details
-
of
public static ResolvedPart<ObjectMask,FeatureInputSingleObject> of(CalculationPartResolver<FeatureInputSingleObject> cache, int iterations, boolean do3D) Creates a newResolvedPart
for calculating dilation.- Parameters:
cache
- theCalculationPartResolver
to use for cachingiterations
- the number of dilation iterations to performdo3D
- whether to perform 3D dilation (true) or 2D dilation (false)- Returns:
- a
ResolvedPart
for the dilation calculation
-
equals
- Overrides:
equals
in classCalculateObjectMask
-
canEqual
- Overrides:
canEqual
in classCalculateObjectMask
-
hashCode
public int hashCode()- Overrides:
hashCode
in classCalculateObjectMask
-