Class MicrostructureAnalysisPlugin

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

public class MicrostructureAnalysisPlugin
extends java.lang.Object
implements ij.plugin.filter.PlugInFilter
Plugin for quantifying microstructures from binary or label images.
  • Field Summary

    Fields
    Modifier and Type Field Description
    boolean debug
    When this options is set to true, information messages are displayed on the console, and the number of counts for each direction is included in results table.
    static java.lang.String[] dirNumberLabels
    List of available numbers of directions
    static int[] dirNumbers
    Array of weights, in the same order than the array of names.

    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
    MicrostructureAnalysisPlugin()  
  • Method Summary

    Modifier and Type Method Description
    java.lang.Object[] exec​(ij.ImagePlus image, int nDirs)
    Deprecated.
    specify porosity
    java.lang.Object[] exec​(ij.ImagePlus image, int nDirs, boolean addPorosity)
    Deprecated.
    use process method instead
    ij.measure.ResultsTable process​(ij.ImagePlus image, int nDirs, boolean addPorosity)
    Main body of the plugin.
    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
  • Field Details

    • dirNumberLabels

      public static final java.lang.String[] dirNumberLabels
      List of available numbers of directions
    • dirNumbers

      public static final int[] dirNumbers
      Array of weights, in the same order than the array of names.
    • debug

      public boolean debug
      When this options is set to true, information messages are displayed on the console, and the number of counts for each direction is included in results table.
  • Constructor Details

    • MicrostructureAnalysisPlugin

      public MicrostructureAnalysisPlugin()
  • Method Details

    • 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
    • exec

      @Deprecated public java.lang.Object[] exec​(ij.ImagePlus image, int nDirs)
      Deprecated.
      specify porosity
      Old interface for calling the plugin, kept for compatibility.
      Parameters:
      image - the image to process
      nDirs - the number of directions to consider, either 2 or 4
      Returns:
      an array of objects
    • exec

      @Deprecated public java.lang.Object[] exec​(ij.ImagePlus image, int nDirs, boolean addPorosity)
      Deprecated.
      use process method instead
      Main body of the plugin. Computes geometric measures on the image contained in image, using nDirs discrete directions. If the addPorosity flag is set to true, an additional column equal to 1-area density is added.
      Parameters:
      image - the image to process
      nDirs - the number of directions to consider, either 2 or 4
      addPorosity - specifies if porosity should be computed
      Returns:
      an array of objects
    • process

      public ij.measure.ResultsTable process​(ij.ImagePlus image, int nDirs, boolean addPorosity)
      Main body of the plugin. Computes geometric measures on the image contained in image, using nDirs discrete directions. If the addPorosity flag is set to true, an additional column equal to 1-area density is added.
      Parameters:
      image - the image to process
      nDirs - the number of directions to consider, either 2 or 4
      addPorosity - specifies if porosity should be computed
      Returns:
      a new ResultsTable containing microstructure characterization of binary image