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 boolean canEqual​(Object other)  
    boolean equals​(Object o)  
    protected org.anchoranalysis.image.voxel.object.ObjectMask execute​(org.anchoranalysis.image.feature.input.FeatureInputSingleObject input)  
    int hashCode()  
    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 new CalculateShellObjectMask instance.
    String 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
  • 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 new CalculateShellObjectMask instance.
      Parameters:
      resolver - the CalculationPartResolver for FeatureInputSingleObject
      iterations - the MorphologicalIterations to use
      iterationsErosionSecond - number of iterations for the second erosion operation
      inverse - whether to invert the shell object
      Returns:
      a new CalculationPart for 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:
      execute in class org.anchoranalysis.feature.calculate.part.CalculationPart<org.anchoranalysis.image.voxel.object.ObjectMask,​org.anchoranalysis.image.feature.input.FeatureInputSingleObject>
      Throws:
      org.anchoranalysis.feature.calculate.FeatureCalculationException
    • toString

      public String toString()
      Overrides:
      toString in class Object
    • equals

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

      protected boolean canEqual​(Object other)
    • hashCode

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