Interface GeodesicReconstructionAlgo

All Known Implementing Classes:
GeodesicReconstructionAlgoStub, GeodesicReconstructionByDilation, GeodesicReconstructionByErosion, GeodesicReconstructionHybrid, GeodesicReconstructionScanning

public interface GeodesicReconstructionAlgo

Defines the interface for geodesic reconstructions algorithms applied to planar images.

There are currently four implementation of geodesic reconstruction for planar images:

  • GeodesicReconstructionByDilation: implements reconstruction by dilation, using scanning algorithm
  • GeodesicReconstructionByErosion: implements reconstruction by erosion, using scanning algorithm
  • GeodesicReconstructionScanning: implements reconstruction by dilation or erosion, using scanning algorithm.
  • GeodesicReconstructionHybrid: implements reconstruction by dilation or erosion, using a classical forward pass, a backward pass that initialize a processing queue, and processes each pixel in the queue until it is empty.
The most versatile one is the "Hybrid" version.
Author:
David Legland
  • Method Summary

    Modifier and Type Method Description
    ij.process.ImageProcessor applyTo​(ij.process.ImageProcessor marker, ij.process.ImageProcessor mask)
    Applies the geodesic reconstruction algorithm to the input marker and mask images.
    int getConnectivity()
    Returns the chosen connectivity of the algorithm, either 4 or 8.
    void setConnectivity​(int conn)
    Changes the connectivity of the algorithm to either 4 or 8.
  • Method Details

    • applyTo

      ij.process.ImageProcessor applyTo​(ij.process.ImageProcessor marker, ij.process.ImageProcessor mask)
      Applies the geodesic reconstruction algorithm to the input marker and mask images.
      Parameters:
      marker - image used to initialize the reconstruction
      mask - image used to constrain the reconstruction
      Returns:
      the geodesic reconstruction of marker image constrained by mask image
    • getConnectivity

      int getConnectivity()
      Returns the chosen connectivity of the algorithm, either 4 or 8.
      Returns:
      the current connectivity for this algorithm
    • setConnectivity

      void setConnectivity​(int conn)
      Changes the connectivity of the algorithm to either 4 or 8.
      Parameters:
      conn - the connectivity to use, either 4 or 8