Class CalculateDilation

Object
CalculationPart<ObjectMask, FeatureInputSingleObject>
CalculateObjectMask
CalculateDilation
All Implemented Interfaces:
ResettableCalculation

public class CalculateDilation extends CalculateObjectMask
Calculates the dilation of an ObjectMask.

This class extends CalculateObjectMask to perform dilation operations on object masks.

  • Method Summary

    Modifier and Type
    Method
    Description
    protected boolean
     
    boolean
     
    int
     
    static ResolvedPart<ObjectMask, FeatureInputSingleObject>
    of(CalculationPartResolver<FeatureInputSingleObject> cache, int iterations, boolean do3D)
    Creates a new ResolvedPart 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

    Methods inherited from class java.lang.Object

    clone, finalize, getClass, notify, notifyAll, wait, wait, wait
  • Method Details

    • of

      public static ResolvedPart<ObjectMask, FeatureInputSingleObject> of(CalculationPartResolver<FeatureInputSingleObject> cache, int iterations, boolean do3D)
      Creates a new ResolvedPart for calculating dilation.
      Parameters:
      cache - the CalculationPartResolver to use for caching
      iterations - the number of dilation iterations to perform
      do3D - whether to perform 3D dilation (true) or 2D dilation (false)
      Returns:
      a ResolvedPart for the dilation calculation
    • equals

      public boolean equals(Object o)
      Overrides:
      equals in class CalculateObjectMask
    • canEqual

      protected boolean canEqual(Object other)
      Overrides:
      canEqual in class CalculateObjectMask
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class CalculateObjectMask