Class GrayscaleReconstructionByErosion

Object
AnchorBean<GrayscaleReconstructionByErosion>
GrayscaleReconstructionByErosion
Direct Known Subclasses:
GrayscaleReconstructionRobinson

public abstract class GrayscaleReconstructionByErosion extends AnchorBean<GrayscaleReconstructionByErosion>
Abstract base class for performing grayscale reconstruction by erosion.
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    abstract VoxelsUntyped
    reconstruction(VoxelsUntyped mask, VoxelsUntyped marker, Optional<ObjectMask> containingMask)
    Performs grayscale reconstruction of a mask image from a marker image.

    Methods inherited from class org.anchoranalysis.bean.AnchorBean

    checkMisconfigured, describeBean, describeChildren, duplicateBean, fields, findFieldsOfClass, getBeanName, getLocalPath, localise, toString

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
  • Constructor Details

    • GrayscaleReconstructionByErosion

      public GrayscaleReconstructionByErosion()
  • Method Details

    • reconstruction

      public abstract VoxelsUntyped reconstruction(VoxelsUntyped mask, VoxelsUntyped marker, Optional<ObjectMask> containingMask) throws OperationFailedException
      Performs grayscale reconstruction of a mask image from a marker image.

      The reconstruction is performed such that mask <= markerImg, but only inside the containingMask (if provided).

      Parameters:
      mask - the VoxelsUntyped representing the mask image
      marker - the VoxelsUntyped representing the marker image
      containingMask - an optional ObjectMask that limits the reconstruction to a specific region
      Returns:
      the reconstructed VoxelsUntyped
      Throws:
      OperationFailedException - if the reconstruction operation fails