Class InterfaceSurfaceArea

java.lang.Object
inra.ijpb.measure.region3d.InterfaceSurfaceArea

public class InterfaceSurfaceArea
extends java.lang.Object
Computes the surface area of the interface between two labels.
Author:
dlegland
  • Constructor Summary

    Constructors
    Constructor Description
    InterfaceSurfaceArea()
    Default empty constructor.
    InterfaceSurfaceArea​(int nDirs)
    Constructor that specifies the number of directions to use.
  • Method Summary

    Modifier and Type Method Description
    double process​(ij.ImageStack stack, int label1, int label2, ij.measure.Calibration calib)
    Computes the interface surface area between two regions.
    void setDirectionNumber​(int nDirs)
    Specifies the number of directions to use.

    Methods inherited from class java.lang.Object

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

    • InterfaceSurfaceArea

      public InterfaceSurfaceArea()
      Default empty constructor.
    • InterfaceSurfaceArea

      public InterfaceSurfaceArea​(int nDirs)
      Constructor that specifies the number of directions to use.
      Parameters:
      nDirs - the number of directions to use (either 3 or 13).
  • Method Details

    • setDirectionNumber

      public void setDirectionNumber​(int nDirs)
      Specifies the number of directions to use.
      Parameters:
      nDirs - the number of directions to use (either 3 or 13).
    • process

      public double process​(ij.ImageStack stack, int label1, int label2, ij.measure.Calibration calib)
      Computes the interface surface area between two regions.
      Parameters:
      stack - the 3D input image
      label1 - the label of the first region
      label2 - the label of the second region
      calib - the spatial calibration of image
      Returns:
      the surface area of the interface between the two regions