Class CalculateShellObjectMask
Object
org.anchoranalysis.feature.calculate.part.CalculationPart<org.anchoranalysis.image.voxel.object.ObjectMask,org.anchoranalysis.image.feature.input.FeatureInputSingleObject>
org.anchoranalysis.plugin.image.feature.object.calculation.single.CalculateShellObjectMask
- All Implemented Interfaces:
org.anchoranalysis.feature.calculate.cache.ResettableCalculation
public class CalculateShellObjectMask
extends org.anchoranalysis.feature.calculate.part.CalculationPart<org.anchoranalysis.image.voxel.object.ObjectMask,org.anchoranalysis.image.feature.input.FeatureInputSingleObject>
Calculates a shell
ObjectMask by performing dilation and erosion operations.-
Constructor Summary
Constructors Constructor Description CalculateShellObjectMask(org.anchoranalysis.feature.calculate.cache.part.ResolvedPart<org.anchoranalysis.image.voxel.object.ObjectMask,org.anchoranalysis.image.feature.input.FeatureInputSingleObject> calculateDilation, org.anchoranalysis.feature.calculate.cache.part.ResolvedPart<org.anchoranalysis.image.voxel.object.ObjectMask,org.anchoranalysis.image.feature.input.FeatureInputSingleObject> calculateErosion, int iterationsErosionSecond, boolean do3D, boolean inverse) -
Method Summary
Modifier and Type Method Description protected booleancanEqual(Object other)booleanequals(Object o)protected org.anchoranalysis.image.voxel.object.ObjectMaskexecute(org.anchoranalysis.image.feature.input.FeatureInputSingleObject input)inthashCode()static org.anchoranalysis.feature.calculate.part.CalculationPart<org.anchoranalysis.image.voxel.object.ObjectMask,org.anchoranalysis.image.feature.input.FeatureInputSingleObject>of(org.anchoranalysis.feature.calculate.part.CalculationPartResolver<org.anchoranalysis.image.feature.input.FeatureInputSingleObject> resolver, MorphologicalIterations iterations, int iterationsErosionSecond, boolean inverse)Creates a newCalculateShellObjectMaskinstance.StringtoString()
-
Constructor Details
-
CalculateShellObjectMask
public CalculateShellObjectMask(org.anchoranalysis.feature.calculate.cache.part.ResolvedPart<org.anchoranalysis.image.voxel.object.ObjectMask,org.anchoranalysis.image.feature.input.FeatureInputSingleObject> calculateDilation, org.anchoranalysis.feature.calculate.cache.part.ResolvedPart<org.anchoranalysis.image.voxel.object.ObjectMask,org.anchoranalysis.image.feature.input.FeatureInputSingleObject> calculateErosion, int iterationsErosionSecond, boolean do3D, boolean inverse)
-
-
Method Details
-
of
public static org.anchoranalysis.feature.calculate.part.CalculationPart<org.anchoranalysis.image.voxel.object.ObjectMask,org.anchoranalysis.image.feature.input.FeatureInputSingleObject> of(org.anchoranalysis.feature.calculate.part.CalculationPartResolver<org.anchoranalysis.image.feature.input.FeatureInputSingleObject> resolver, MorphologicalIterations iterations, int iterationsErosionSecond, boolean inverse)Creates a newCalculateShellObjectMaskinstance.- Parameters:
resolver- theCalculationPartResolverforFeatureInputSingleObjectiterations- theMorphologicalIterationsto useiterationsErosionSecond- number of iterations for the second erosion operationinverse- whether to invert the shell object- Returns:
- a new
CalculationPartfor calculating shell object masks
-
execute
protected org.anchoranalysis.image.voxel.object.ObjectMask execute(org.anchoranalysis.image.feature.input.FeatureInputSingleObject input) throws org.anchoranalysis.feature.calculate.FeatureCalculationException- Specified by:
executein classorg.anchoranalysis.feature.calculate.part.CalculationPart<org.anchoranalysis.image.voxel.object.ObjectMask,org.anchoranalysis.image.feature.input.FeatureInputSingleObject>- Throws:
org.anchoranalysis.feature.calculate.FeatureCalculationException
-
toString
-
equals
- Specified by:
equalsin classorg.anchoranalysis.feature.calculate.part.CalculationPart<org.anchoranalysis.image.voxel.object.ObjectMask,org.anchoranalysis.image.feature.input.FeatureInputSingleObject>
-
canEqual
-
hashCode
public int hashCode()- Specified by:
hashCodein classorg.anchoranalysis.feature.calculate.part.CalculationPart<org.anchoranalysis.image.voxel.object.ObjectMask,org.anchoranalysis.image.feature.input.FeatureInputSingleObject>
-