Class CalculateIncrementalOperationMap
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
- All Implemented Interfaces:
org.anchoranalysis.feature.calculate.cache.ResettableCalculation
- Direct Known Subclasses:
CalculateDilationMap,CalculateErosionMap
public abstract class CalculateIncrementalOperationMap extends org.anchoranalysis.feature.calculate.part.CalculationPartMap<org.anchoranalysis.image.voxel.object.ObjectMask,org.anchoranalysis.image.feature.input.FeatureInputSingleObject,Integer,org.anchoranalysis.feature.calculate.FeatureCalculationException>
Calculates incremental operations on
ObjectMasks and stores the results in a map.-
Constructor Summary
Constructors Modifier Constructor Description protectedCalculateIncrementalOperationMap(boolean do3D)Creates a new instance with the specified 3D flag.protectedCalculateIncrementalOperationMap(CalculateIncrementalOperationMap other)Copy constructor. -
Method Summary
Modifier and Type Method Description protected abstract 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)protected org.anchoranalysis.image.voxel.object.ObjectMaskexecute(org.anchoranalysis.image.feature.input.FeatureInputSingleObject input, Integer key)inthashCode()
-
Constructor Details
-
CalculateIncrementalOperationMap
protected CalculateIncrementalOperationMap(boolean do3D)Creates a new instance with the specified 3D flag.- Parameters:
do3D- whether to perform 3D operations
-
CalculateIncrementalOperationMap
Copy constructor.- Parameters:
other- theCalculateIncrementalOperationMapto copy from
-
-
Method Details
-
execute
protected org.anchoranalysis.image.voxel.object.ObjectMask execute(org.anchoranalysis.image.feature.input.FeatureInputSingleObject input, Integer key) throws org.anchoranalysis.feature.calculate.FeatureCalculationException- Specified by:
executein classorg.anchoranalysis.feature.calculate.part.CalculationPartMap<org.anchoranalysis.image.voxel.object.ObjectMask,org.anchoranalysis.image.feature.input.FeatureInputSingleObject,Integer,org.anchoranalysis.feature.calculate.FeatureCalculationException>- Throws:
org.anchoranalysis.feature.calculate.FeatureCalculationException
-
applyOperation
protected abstract 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.OperationFailedExceptionApplies the incremental operation to the input object.- 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
- Specified by:
equalsin classorg.anchoranalysis.feature.calculate.part.CalculationPartMap<org.anchoranalysis.image.voxel.object.ObjectMask,org.anchoranalysis.image.feature.input.FeatureInputSingleObject,Integer,org.anchoranalysis.feature.calculate.FeatureCalculationException>
-
canEqual
-
hashCode
public int hashCode()- Specified by:
hashCodein classorg.anchoranalysis.feature.calculate.part.CalculationPartMap<org.anchoranalysis.image.voxel.object.ObjectMask,org.anchoranalysis.image.feature.input.FeatureInputSingleObject,Integer,org.anchoranalysis.feature.calculate.FeatureCalculationException>
-