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
    protected CalculateIncrementalOperationMap​(boolean do3D)
    Creates a new instance with the specified 3D flag.
    protected CalculateIncrementalOperationMap​(CalculateIncrementalOperationMap other)
    Copy constructor.
  • Method Summary

    Modifier and Type Method Description
    protected abstract org.anchoranalysis.image.voxel.object.ObjectMask applyOperation​(org.anchoranalysis.image.voxel.object.ObjectMask object, org.anchoranalysis.spatial.box.Extent extent, boolean do3D)
    Applies the incremental operation to the input object.
    protected boolean canEqual​(Object other)  
    boolean equals​(Object o)  
    protected org.anchoranalysis.image.voxel.object.ObjectMask execute​(org.anchoranalysis.image.feature.input.FeatureInputSingleObject input, Integer key)  
    int hashCode()  

    Methods inherited from class org.anchoranalysis.feature.calculate.part.CalculationPartMap

    getOrCalculate, getOrNull, hasKey, invalidate, numberItemsCurrentlyStored, put

    Methods inherited from class java.lang.Object

    clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

  • 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:
      execute in class org.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.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:
      org.anchoranalysis.core.exception.OperationFailedException - if the operation fails
    • equals

      public boolean equals​(Object o)
      Specified by:
      equals in class org.anchoranalysis.feature.calculate.part.CalculationPartMap<org.anchoranalysis.image.voxel.object.ObjectMask,​org.anchoranalysis.image.feature.input.FeatureInputSingleObject,​Integer,​org.anchoranalysis.feature.calculate.FeatureCalculationException>
    • canEqual

      protected boolean canEqual​(Object other)
    • hashCode

      public int hashCode()
      Specified by:
      hashCode in class org.anchoranalysis.feature.calculate.part.CalculationPartMap<org.anchoranalysis.image.voxel.object.ObjectMask,​org.anchoranalysis.image.feature.input.FeatureInputSingleObject,​Integer,​org.anchoranalysis.feature.calculate.FeatureCalculationException>