Class AnalyzeRegions

java.lang.Object
inra.ijpb.plugins.AnalyzeRegions
All Implemented Interfaces:
ij.plugin.filter.PlugInFilter

public class AnalyzeRegions
extends java.lang.Object
implements ij.plugin.filter.PlugInFilter
Plugin for computing morphological feature of regions from label images. Can be used programmatically:

 // creates a new Features instance to select the features to compute.  
 AnalyzeRegions.Features features = new AnalyzeRegions.Features();
 features.setAll(false);
 features.area = true;
 features.perimeter = true;
 features.centroid = true;
 // compute the features, and returns the corresponding table
 ResultsTable table = AnalyzeRegions.process(imagePlus, features);
 table.show(imagePlus.getShortTitle() + "-Morphometry");
 
  • Nested Class Summary

    Nested Classes
    Modifier and Type Class Description
    static class  AnalyzeRegions.Features
    The list of features to compute.
  • Field Summary

    Fields inherited from interface ij.plugin.filter.PlugInFilter

    CONVERT_TO_FLOAT, DOES_16, DOES_32, DOES_8C, DOES_8G, DOES_ALL, DOES_RGB, DOES_STACKS, DONE, FINAL_PROCESSING, KEEP_THRESHOLD, NO_CHANGES, NO_IMAGE_REQUIRED, NO_UNDO, NO_UNDO_RESET, PARALLELIZE_IMAGES, PARALLELIZE_STACKS, ROI_REQUIRED, SNAPSHOT, STACK_REQUIRED, SUPPORTS_MASKING
  • Constructor Summary

    Constructors
    Constructor Description
    AnalyzeRegions()  
  • Method Summary

    Modifier and Type Method Description
    ij.measure.ResultsTable process​(ij.ImagePlus imagePlus)
    Deprecated.
    replaced by static process(ImagePlus, Features) method
    static ij.measure.ResultsTable process​(ij.ImagePlus imagePlus, AnalyzeRegions.Features features)
    Computes a set of descriptive features from a label image and concatenates the results into a ResultsTable.
    void run​(ij.process.ImageProcessor ip)  
    int setup​(java.lang.String arg, ij.ImagePlus imp)  

    Methods inherited from class java.lang.Object

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

    • AnalyzeRegions

      public AnalyzeRegions()
  • Method Details

    • process

      public static final ij.measure.ResultsTable process​(ij.ImagePlus imagePlus, AnalyzeRegions.Features features)
      Computes a set of descriptive features from a label image and concatenates the results into a ResultsTable.
      Parameters:
      imagePlus - the image to analyze.
      features - the features to compute.
      Returns:
      the results of the analysis as a Results Table
    • setup

      public int setup​(java.lang.String arg, ij.ImagePlus imp)
      Specified by:
      setup in interface ij.plugin.filter.PlugInFilter
    • run

      public void run​(ij.process.ImageProcessor ip)
      Specified by:
      run in interface ij.plugin.filter.PlugInFilter
    • process

      @Deprecated public ij.measure.ResultsTable process​(ij.ImagePlus imagePlus)
      Deprecated.
      replaced by static process(ImagePlus, Features) method
      Process the input image.
      Parameters:
      imagePlus - the image to process
      Returns:
      a ResultsTable summarizing the features