Class CalculateIncrementalOperationMap

Object
CalculationPartMap<ObjectMask, FeatureInputSingleObject, Integer, FeatureCalculationException>
CalculateIncrementalOperationMap
All Implemented Interfaces:
ResettableCalculation
Direct Known Subclasses:
CalculateDilationMap, CalculateErosionMap

public abstract class CalculateIncrementalOperationMap extends CalculationPartMap<ObjectMask, FeatureInputSingleObject, Integer, FeatureCalculationException>
Calculates incremental operations on ObjectMasks and stores the results in a map.
  • Constructor Details

    • CalculateIncrementalOperationMap

      protected CalculateIncrementalOperationMap(boolean do3D)
      Creates a new instance with the specified 3D flag.
      Parameters:
      do3D - whether to perform 3D operations
    • CalculateIncrementalOperationMap

      protected CalculateIncrementalOperationMap(CalculateIncrementalOperationMap other)
      Copy constructor.
      Parameters:
      other - the CalculateIncrementalOperationMap to copy from
  • Method Details

    • execute

      protected ObjectMask execute(FeatureInputSingleObject input, Integer key) throws FeatureCalculationException
      Specified by:
      execute in class CalculationPartMap<ObjectMask, FeatureInputSingleObject, Integer, FeatureCalculationException>
      Throws:
      FeatureCalculationException
    • applyOperation

      protected abstract ObjectMask applyOperation(ObjectMask object, Extent extent, boolean do3D) throws OperationFailedException
      Applies the incremental operation to the input object.
      Parameters:
      object - the input ObjectMask
      extent - the Extent of the object
      do3D - whether to perform 3D operations
      Returns:
      the resulting ObjectMask after applying the operation
      Throws:
      OperationFailedException - if the operation fails
    • equals

      public boolean equals(Object o)
      Specified by:
      equals in class CalculationPartMap<ObjectMask, FeatureInputSingleObject, Integer, FeatureCalculationException>
    • canEqual

      protected boolean canEqual(Object other)
    • hashCode

      public int hashCode()
      Specified by:
      hashCode in class CalculationPartMap<ObjectMask, FeatureInputSingleObject, Integer, FeatureCalculationException>