Class LargestInscribedCircle

java.lang.Object
inra.ijpb.algo.AlgoStub
inra.ijpb.measure.region2d.RegionAnalyzer2D<Circle2D>
inra.ijpb.measure.region2d.LargestInscribedCircle
All Implemented Interfaces:
Algo, RegionAnalyzer<Circle2D>

public class LargestInscribedCircle
extends RegionAnalyzer2D<Circle2D>
Computes the largest inscribed circle for each region of a label or binary image.
Author:
dlegland
See Also:
LargestInscribedBall
  • Constructor Summary

    Constructors
    Constructor Description
    LargestInscribedCircle()
    Default empty constructor.
  • Method Summary

    Modifier and Type Method Description
    Circle2D[] analyzeRegions​(ij.process.ImageProcessor labelImage, int[] labels, ij.measure.Calibration calib)
    Computes largest inscribed disk of each region within a label image.
    ij.measure.ResultsTable createTable​(java.util.Map<java.lang.Integer,​Circle2D> map)
    Utility method that transforms the mapping between labels and inscribed circle instances into a ResultsTable that can be displayed with ImageJ.
    static Circle2D[] largestInscribedCircles​(ij.process.ImageProcessor labelImage, int[] labels, ij.measure.Calibration calib)
    Computes largest inscribed disk of each region within a label image.

    Methods inherited from class inra.ijpb.measure.region2d.RegionAnalyzer2D

    analyzeRegions, analyzeRegions, computeTable

    Methods inherited from class inra.ijpb.algo.AlgoStub

    addAlgoListener, removeAlgoListener

    Methods inherited from class java.lang.Object

    equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • LargestInscribedCircle

      public LargestInscribedCircle()
      Default empty constructor.
  • Method Details

    • largestInscribedCircles

      public static final Circle2D[] largestInscribedCircles​(ij.process.ImageProcessor labelImage, int[] labels, ij.measure.Calibration calib)
      Computes largest inscribed disk of each region within a label image. Regions must be disjoint.
      Parameters:
      labelImage - the input image containing region labels
      labels - the set of labels within the image
      calib - the spatial calibration of the image
      Returns:
      an array of Circle2D representing the inscribed circles of each region, in calibrated coordinates
    • createTable

      public ij.measure.ResultsTable createTable​(java.util.Map<java.lang.Integer,​Circle2D> map)
      Utility method that transforms the mapping between labels and inscribed circle instances into a ResultsTable that can be displayed with ImageJ.
      Parameters:
      map - the mapping between labels and Circle2D instances
      Returns:
      a ResultsTable that can be displayed with ImageJ.
    • analyzeRegions

      public Circle2D[] analyzeRegions​(ij.process.ImageProcessor labelImage, int[] labels, ij.measure.Calibration calib)
      Computes largest inscribed disk of each region within a label image. Regions must be disjoint.
      Specified by:
      analyzeRegions in class RegionAnalyzer2D<Circle2D>
      Parameters:
      labelImage - the input image containing region labels
      labels - the set of labels within the image
      calib - the spatial calibration of the image
      Returns:
      an array of Circle2D representing the inscribed circles of each region, in calibrated coordinates