Class LabelIntensityStatisticsImageFilter

java.lang.Object
org.itk.simple.ProcessObject
org.itk.simple.ImageFilter
org.itk.simple.LabelIntensityStatisticsImageFilter

public class LabelIntensityStatisticsImageFilter extends ImageFilter
a convenient class to convert a label image to a label map and valuate the statistics attributes at once Gaetan Lehmann. Biologie du Developpement et de la Reproduction, INRA de Jouy-en-Josas, France. This implementation was taken from the Insight Journal paper: https://www.insight-journal.org/browse/publication/176 See: StatisticsLabelObject , LabelStatisticsOpeningImageFilter , LabelStatisticsOpeningImageFilter itk::LabelImageToStatisticsLabelMapFilter for the Doxygen on the original ITK class. C++ includes: sitkLabelIntensityStatisticsImageFilter.h
  • Field Summary

    Fields inherited from class org.itk.simple.ProcessObject

    swigCMemOwn
  • Constructor Summary

    Constructors
    Modifier
    Constructor
    Description
     
    itk::simple::LabelIntensityStatisticsImageFilter::LabelIntensityStatisticsImageFilter() Default Constructor that takes no arguments and initializes default parameters
    protected
    LabelIntensityStatisticsImageFilter(long cPtr, boolean cMemoryOwn)
     
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    Self& itk::simple::LabelIntensityStatisticsImageFilter::ComputeFeretDiameterOff()
    void
    Self& itk::simple::LabelIntensityStatisticsImageFilter::ComputeFeretDiameterOn() Set the value of ComputeFeretDiameter to true or false respectfully.
    void
    Self& itk::simple::LabelIntensityStatisticsImageFilter::ComputePerimeterOff()
    void
    Self& itk::simple::LabelIntensityStatisticsImageFilter::ComputePerimeterOn() Set the value of ComputePerimeter to true or false respectfully.
    void
    virtual itk::simple::LabelIntensityStatisticsImageFilter::~LabelIntensityStatisticsImageFilter() Destructor
    void
    execute(Image image, Image featureImage)
    void itk::simple::LabelIntensityStatisticsImageFilter::Execute(const Image &image, const Image &featureImage) Execute the filter on the input image
    protected void
     
    double
    double itk::simple::LabelIntensityStatisticsImageFilter::GetBackgroundValue() const Set/Get the value used as "background" in the output image.
    getBoundingBox(int label)
    std::vector<unsigned int> itk::simple::LabelIntensityStatisticsImageFilter::GetBoundingBox(int64_t label) const This is an active measurement.
    getCenterOfGravity(int label)
    std::vector<double> itk::simple::LabelIntensityStatisticsImageFilter::GetCenterOfGravity(int64_t label) const This is an active measurement.
    getCentroid(int label)
    std::vector<double> itk::simple::LabelIntensityStatisticsImageFilter::GetCentroid(int64_t label) const This is an active measurement.
    boolean
    bool itk::simple::LabelIntensityStatisticsImageFilter::GetComputeFeretDiameter() const Set/Get whether the maximum Feret diameter should be computed or not.
    boolean
    bool itk::simple::LabelIntensityStatisticsImageFilter::GetComputePerimeter() const Set/Get whether the perimeter should be computed or not.
    protected static long
     
    double
    getElongation(int label)
    double itk::simple::LabelIntensityStatisticsImageFilter::GetElongation(int64_t label) const This is an active measurement.
    std::vector<double> itk::simple::LabelIntensityStatisticsImageFilter::GetEquivalentEllipsoidDiameter(int64_t label) const This is an active measurement.
    double
    double itk::simple::LabelIntensityStatisticsImageFilter::GetEquivalentSphericalPerimeter(int64_t label) const This is an active measurement.
    double
    double itk::simple::LabelIntensityStatisticsImageFilter::GetEquivalentSphericalRadius(int64_t label) const This is an active measurement.
    double
    getFeretDiameter(int label)
    double itk::simple::LabelIntensityStatisticsImageFilter::GetFeretDiameter(int64_t label) const This is an active measurement.
    double
    getFlatness(int label)
    double itk::simple::LabelIntensityStatisticsImageFilter::GetFlatness(int64_t label) const This is an active measurement.
    double
    getKurtosis(int label)
    double itk::simple::LabelIntensityStatisticsImageFilter::GetKurtosis(int64_t label) const This is an active measurement.
    std::vector<int64_t> itk::simple::LabelIntensityStatisticsImageFilter::GetLabels() const This is a measurement.
    double
    getMaximum(int label)
    double itk::simple::LabelIntensityStatisticsImageFilter::GetMaximum(int64_t label) const This is an active measurement.
    getMaximumIndex(int label)
    std::vector<uint32_t> itk::simple::LabelIntensityStatisticsImageFilter::GetMaximumIndex(int64_t label) const This is an active measurement.
    double
    getMean(int label)
    double itk::simple::LabelIntensityStatisticsImageFilter::GetMean(int64_t label) const This is an active measurement.
    double
    getMedian(int label)
    double itk::simple::LabelIntensityStatisticsImageFilter::GetMedian(int64_t label) const This is an active measurement.
    double
    getMinimum(int label)
    double itk::simple::LabelIntensityStatisticsImageFilter::GetMinimum(int64_t label) const This is an active measurement.
    getMinimumIndex(int label)
    std::vector<uint32_t> itk::simple::LabelIntensityStatisticsImageFilter::GetMinimumIndex(int64_t label) const This is an active measurement.
    std::string itk::simple::LabelIntensityStatisticsImageFilter::GetName() const Name of this class
    long
    uint32_t itk::simple::LabelIntensityStatisticsImageFilter::GetNumberOfBins() const Set/Get the number of bins in the histogram.
    long
    uint64_t itk::simple::LabelIntensityStatisticsImageFilter::GetNumberOfLabels() Return the number of labels after execution.
    long
    getNumberOfPixels(int label)
    uint64_t itk::simple::LabelIntensityStatisticsImageFilter::GetNumberOfPixels(int64_t label) const This is an active measurement.
    long
    uint64_t itk::simple::LabelIntensityStatisticsImageFilter::GetNumberOfPixelsOnBorder(int64_t label) const This is an active measurement.
    double
    getPerimeter(int label)
    double itk::simple::LabelIntensityStatisticsImageFilter::GetPerimeter(int64_t label) const This is an active measurement.
    double
    double itk::simple::LabelIntensityStatisticsImageFilter::GetPerimeterOnBorder(int64_t label) const This is an active measurement.
    double
    double itk::simple::LabelIntensityStatisticsImageFilter::GetPerimeterOnBorderRatio(int64_t label) const This is an active measurement.
    double
    getPhysicalSize(int label)
    double itk::simple::LabelIntensityStatisticsImageFilter::GetPhysicalSize(int64_t label) const This is an active measurement.
    getPrincipalAxes(int label)
    std::vector<double> itk::simple::LabelIntensityStatisticsImageFilter::GetPrincipalAxes(int64_t label) const This is an active measurement.
    std::vector<double> itk::simple::LabelIntensityStatisticsImageFilter::GetPrincipalMoments(int64_t label) const This is an active measurement.
    getRegion(int label)
    std::vector<unsigned int> itk::simple::LabelIntensityStatisticsImageFilter::GetRegion(int64_t label) const This is an active measurement.
    double
    getRoundness(int label)
    double itk::simple::LabelIntensityStatisticsImageFilter::GetRoundness(int64_t label) const This is an active measurement.
    double
    getSkewness(int label)
    double itk::simple::LabelIntensityStatisticsImageFilter::GetSkewness(int64_t label) const This is an active measurement.
    double
    double itk::simple::LabelIntensityStatisticsImageFilter::GetStandardDeviation(int64_t label) const This is an active measurement.
    double
    getSum(int label)
    double itk::simple::LabelIntensityStatisticsImageFilter::GetSum(int64_t label) const This is an active measurement.
    double
    getVariance(int label)
    double itk::simple::LabelIntensityStatisticsImageFilter::GetVariance(int64_t label) const This is an active measurement.
    double
    double itk::simple::LabelIntensityStatisticsImageFilter::GetWeightedElongation(int64_t label) const This is an active measurement.
    double
    double itk::simple::LabelIntensityStatisticsImageFilter::GetWeightedFlatness(int64_t label) const This is an active measurement.
    std::vector<double> itk::simple::LabelIntensityStatisticsImageFilter::GetWeightedPrincipalAxes(int64_t label) const This is an active measurement.
    std::vector<double> itk::simple::LabelIntensityStatisticsImageFilter::GetWeightedPrincipalMoments(int64_t label) const This is an active measurement.
    boolean
    hasLabel(int label)
    bool itk::simple::LabelIntensityStatisticsImageFilter::HasLabel(int64_t label) Does the specified label exist? Can only be called after a call a call to Update().
    void
    setBackgroundValue(double BackgroundValue)
    Self& itk::simple::LabelIntensityStatisticsImageFilter::SetBackgroundValue(double BackgroundValue) Set/Get the value used as "background" in the output image.
    void
    setComputeFeretDiameter(boolean ComputeFeretDiameter)
    Self& itk::simple::LabelIntensityStatisticsImageFilter::SetComputeFeretDiameter(bool ComputeFeretDiameter) Set/Get whether the maximum Feret diameter should be computed or not.
    void
    setComputePerimeter(boolean ComputePerimeter)
    Self& itk::simple::LabelIntensityStatisticsImageFilter::SetComputePerimeter(bool ComputePerimeter) Set/Get whether the perimeter should be computed or not.
    void
    setNumberOfBins(long NumberOfBins)
    Self& itk::simple::LabelIntensityStatisticsImageFilter::SetNumberOfBins(uint32_t NumberOfBins) Set/Get the number of bins in the histogram.
    protected static long
     
    std::string itk::simple::LabelIntensityStatisticsImageFilter::ToString() const Print ourselves out

    Methods inherited from class org.itk.simple.ImageFilter

    getCPtr, swigRelease

    Methods inherited from class java.lang.Object

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

    • LabelIntensityStatisticsImageFilter

      protected LabelIntensityStatisticsImageFilter(long cPtr, boolean cMemoryOwn)
    • LabelIntensityStatisticsImageFilter

      public LabelIntensityStatisticsImageFilter()
      itk::simple::LabelIntensityStatisticsImageFilter::LabelIntensityStatisticsImageFilter() Default Constructor that takes no arguments and initializes default parameters
  • Method Details

    • getCPtr

      protected static long getCPtr(LabelIntensityStatisticsImageFilter obj)
    • swigRelease

      protected static long swigRelease(LabelIntensityStatisticsImageFilter obj)
    • finalize

      protected void finalize()
      Overrides:
      finalize in class ImageFilter
    • delete

      public void delete()
      virtual itk::simple::LabelIntensityStatisticsImageFilter::~LabelIntensityStatisticsImageFilter() Destructor
      Overrides:
      delete in class ImageFilter
    • setBackgroundValue

      public void setBackgroundValue(double BackgroundValue)
      Self& itk::simple::LabelIntensityStatisticsImageFilter::SetBackgroundValue(double BackgroundValue) Set/Get the value used as "background" in the output image. Defaults to NumericTraits<PixelType>::NonpositiveMin() .
    • getBackgroundValue

      public double getBackgroundValue()
      double itk::simple::LabelIntensityStatisticsImageFilter::GetBackgroundValue() const Set/Get the value used as "background" in the output image. Defaults to NumericTraits<PixelType>::NonpositiveMin() .
    • setComputeFeretDiameter

      public void setComputeFeretDiameter(boolean ComputeFeretDiameter)
      Self& itk::simple::LabelIntensityStatisticsImageFilter::SetComputeFeretDiameter(bool ComputeFeretDiameter) Set/Get whether the maximum Feret diameter should be computed or not. The default value is false, because of the high computation time required.
    • computeFeretDiameterOn

      public void computeFeretDiameterOn()
      Self& itk::simple::LabelIntensityStatisticsImageFilter::ComputeFeretDiameterOn() Set the value of ComputeFeretDiameter to true or false respectfully.
    • computeFeretDiameterOff

      public void computeFeretDiameterOff()
      Self& itk::simple::LabelIntensityStatisticsImageFilter::ComputeFeretDiameterOff()
    • getComputeFeretDiameter

      public boolean getComputeFeretDiameter()
      bool itk::simple::LabelIntensityStatisticsImageFilter::GetComputeFeretDiameter() const Set/Get whether the maximum Feret diameter should be computed or not. The default value is false, because of the high computation time required.
    • setComputePerimeter

      public void setComputePerimeter(boolean ComputePerimeter)
      Self& itk::simple::LabelIntensityStatisticsImageFilter::SetComputePerimeter(bool ComputePerimeter) Set/Get whether the perimeter should be computed or not. The default value is false, because of the high computation time required.
    • computePerimeterOn

      public void computePerimeterOn()
      Self& itk::simple::LabelIntensityStatisticsImageFilter::ComputePerimeterOn() Set the value of ComputePerimeter to true or false respectfully.
    • computePerimeterOff

      public void computePerimeterOff()
      Self& itk::simple::LabelIntensityStatisticsImageFilter::ComputePerimeterOff()
    • getComputePerimeter

      public boolean getComputePerimeter()
      bool itk::simple::LabelIntensityStatisticsImageFilter::GetComputePerimeter() const Set/Get whether the perimeter should be computed or not. The default value is false, because of the high computation time required.
    • setNumberOfBins

      public void setNumberOfBins(long NumberOfBins)
      Self& itk::simple::LabelIntensityStatisticsImageFilter::SetNumberOfBins(uint32_t NumberOfBins) Set/Get the number of bins in the histogram. Note that the histogram is used to compute the median value, and that this option may have an effect on the value of the median.
    • getNumberOfBins

      public long getNumberOfBins()
      uint32_t itk::simple::LabelIntensityStatisticsImageFilter::GetNumberOfBins() const Set/Get the number of bins in the histogram. Note that the histogram is used to compute the median value, and that this option may have an effect on the value of the median.
    • getBoundingBox

      public VectorUInt32 getBoundingBox(int label)
      std::vector<unsigned int> itk::simple::LabelIntensityStatisticsImageFilter::GetBoundingBox(int64_t label) const This is an active measurement. It may be accessed while the filter is being executing in command call-backs and can be accessed after execution.
    • getRegion

      public VectorUInt32 getRegion(int label)
      std::vector<unsigned int> itk::simple::LabelIntensityStatisticsImageFilter::GetRegion(int64_t label) const This is an active measurement. It may be accessed while the filter is being executing in command call-backs and can be accessed after execution.
    • getCentroid

      public VectorDouble getCentroid(int label)
      std::vector<double> itk::simple::LabelIntensityStatisticsImageFilter::GetCentroid(int64_t label) const This is an active measurement. It may be accessed while the filter is being executing in command call-backs and can be accessed after execution.
    • getElongation

      public double getElongation(int label)
      double itk::simple::LabelIntensityStatisticsImageFilter::GetElongation(int64_t label) const This is an active measurement. It may be accessed while the filter is being executing in command call-backs and can be accessed after execution.
    • getEquivalentEllipsoidDiameter

      public VectorDouble getEquivalentEllipsoidDiameter(int label)
      std::vector<double> itk::simple::LabelIntensityStatisticsImageFilter::GetEquivalentEllipsoidDiameter(int64_t label) const This is an active measurement. It may be accessed while the filter is being executing in command call-backs and can be accessed after execution.
    • getEquivalentSphericalPerimeter

      public double getEquivalentSphericalPerimeter(int label)
      double itk::simple::LabelIntensityStatisticsImageFilter::GetEquivalentSphericalPerimeter(int64_t label) const This is an active measurement. It may be accessed while the filter is being executing in command call-backs and can be accessed after execution.
    • getEquivalentSphericalRadius

      public double getEquivalentSphericalRadius(int label)
      double itk::simple::LabelIntensityStatisticsImageFilter::GetEquivalentSphericalRadius(int64_t label) const This is an active measurement. It may be accessed while the filter is being executing in command call-backs and can be accessed after execution.
    • getFeretDiameter

      public double getFeretDiameter(int label)
      double itk::simple::LabelIntensityStatisticsImageFilter::GetFeretDiameter(int64_t label) const This is an active measurement. It may be accessed while the filter is being executing in command call-backs and can be accessed after execution.
    • getFlatness

      public double getFlatness(int label)
      double itk::simple::LabelIntensityStatisticsImageFilter::GetFlatness(int64_t label) const This is an active measurement. It may be accessed while the filter is being executing in command call-backs and can be accessed after execution.
    • getLabels

      public VectorInt64 getLabels()
      std::vector<int64_t> itk::simple::LabelIntensityStatisticsImageFilter::GetLabels() const This is a measurement. Its value is updated in the Execute methods, so the value will only be valid after an execution.
    • getNumberOfPixels

      public long getNumberOfPixels(int label)
      uint64_t itk::simple::LabelIntensityStatisticsImageFilter::GetNumberOfPixels(int64_t label) const This is an active measurement. It may be accessed while the filter is being executing in command call-backs and can be accessed after execution.
    • getNumberOfPixelsOnBorder

      public long getNumberOfPixelsOnBorder(int label)
      uint64_t itk::simple::LabelIntensityStatisticsImageFilter::GetNumberOfPixelsOnBorder(int64_t label) const This is an active measurement. It may be accessed while the filter is being executing in command call-backs and can be accessed after execution.
    • getPerimeter

      public double getPerimeter(int label)
      double itk::simple::LabelIntensityStatisticsImageFilter::GetPerimeter(int64_t label) const This is an active measurement. It may be accessed while the filter is being executing in command call-backs and can be accessed after execution.
    • getPerimeterOnBorder

      public double getPerimeterOnBorder(int label)
      double itk::simple::LabelIntensityStatisticsImageFilter::GetPerimeterOnBorder(int64_t label) const This is an active measurement. It may be accessed while the filter is being executing in command call-backs and can be accessed after execution.
    • getPerimeterOnBorderRatio

      public double getPerimeterOnBorderRatio(int label)
      double itk::simple::LabelIntensityStatisticsImageFilter::GetPerimeterOnBorderRatio(int64_t label) const This is an active measurement. It may be accessed while the filter is being executing in command call-backs and can be accessed after execution.
    • getPhysicalSize

      public double getPhysicalSize(int label)
      double itk::simple::LabelIntensityStatisticsImageFilter::GetPhysicalSize(int64_t label) const This is an active measurement. It may be accessed while the filter is being executing in command call-backs and can be accessed after execution.
    • getPrincipalAxes

      public VectorDouble getPrincipalAxes(int label)
      std::vector<double> itk::simple::LabelIntensityStatisticsImageFilter::GetPrincipalAxes(int64_t label) const This is an active measurement. It may be accessed while the filter is being executing in command call-backs and can be accessed after execution.
    • getPrincipalMoments

      public VectorDouble getPrincipalMoments(int label)
      std::vector<double> itk::simple::LabelIntensityStatisticsImageFilter::GetPrincipalMoments(int64_t label) const This is an active measurement. It may be accessed while the filter is being executing in command call-backs and can be accessed after execution.
    • getRoundness

      public double getRoundness(int label)
      double itk::simple::LabelIntensityStatisticsImageFilter::GetRoundness(int64_t label) const This is an active measurement. It may be accessed while the filter is being executing in command call-backs and can be accessed after execution.
    • getCenterOfGravity

      public VectorDouble getCenterOfGravity(int label)
      std::vector<double> itk::simple::LabelIntensityStatisticsImageFilter::GetCenterOfGravity(int64_t label) const This is an active measurement. It may be accessed while the filter is being executing in command call-backs and can be accessed after execution.
    • getKurtosis

      public double getKurtosis(int label)
      double itk::simple::LabelIntensityStatisticsImageFilter::GetKurtosis(int64_t label) const This is an active measurement. It may be accessed while the filter is being executing in command call-backs and can be accessed after execution.
    • getMaximum

      public double getMaximum(int label)
      double itk::simple::LabelIntensityStatisticsImageFilter::GetMaximum(int64_t label) const This is an active measurement. It may be accessed while the filter is being executing in command call-backs and can be accessed after execution.
    • getMaximumIndex

      public VectorUInt32 getMaximumIndex(int label)
      std::vector<uint32_t> itk::simple::LabelIntensityStatisticsImageFilter::GetMaximumIndex(int64_t label) const This is an active measurement. It may be accessed while the filter is being executing in command call-backs and can be accessed after execution.
    • getMean

      public double getMean(int label)
      double itk::simple::LabelIntensityStatisticsImageFilter::GetMean(int64_t label) const This is an active measurement. It may be accessed while the filter is being executing in command call-backs and can be accessed after execution.
    • getMedian

      public double getMedian(int label)
      double itk::simple::LabelIntensityStatisticsImageFilter::GetMedian(int64_t label) const This is an active measurement. It may be accessed while the filter is being executing in command call-backs and can be accessed after execution.
    • getMinimum

      public double getMinimum(int label)
      double itk::simple::LabelIntensityStatisticsImageFilter::GetMinimum(int64_t label) const This is an active measurement. It may be accessed while the filter is being executing in command call-backs and can be accessed after execution.
    • getMinimumIndex

      public VectorUInt32 getMinimumIndex(int label)
      std::vector<uint32_t> itk::simple::LabelIntensityStatisticsImageFilter::GetMinimumIndex(int64_t label) const This is an active measurement. It may be accessed while the filter is being executing in command call-backs and can be accessed after execution.
    • getSkewness

      public double getSkewness(int label)
      double itk::simple::LabelIntensityStatisticsImageFilter::GetSkewness(int64_t label) const This is an active measurement. It may be accessed while the filter is being executing in command call-backs and can be accessed after execution.
    • getStandardDeviation

      public double getStandardDeviation(int label)
      double itk::simple::LabelIntensityStatisticsImageFilter::GetStandardDeviation(int64_t label) const This is an active measurement. It may be accessed while the filter is being executing in command call-backs and can be accessed after execution.
    • getSum

      public double getSum(int label)
      double itk::simple::LabelIntensityStatisticsImageFilter::GetSum(int64_t label) const This is an active measurement. It may be accessed while the filter is being executing in command call-backs and can be accessed after execution.
    • getVariance

      public double getVariance(int label)
      double itk::simple::LabelIntensityStatisticsImageFilter::GetVariance(int64_t label) const This is an active measurement. It may be accessed while the filter is being executing in command call-backs and can be accessed after execution.
    • getWeightedElongation

      public double getWeightedElongation(int label)
      double itk::simple::LabelIntensityStatisticsImageFilter::GetWeightedElongation(int64_t label) const This is an active measurement. It may be accessed while the filter is being executing in command call-backs and can be accessed after execution.
    • getWeightedFlatness

      public double getWeightedFlatness(int label)
      double itk::simple::LabelIntensityStatisticsImageFilter::GetWeightedFlatness(int64_t label) const This is an active measurement. It may be accessed while the filter is being executing in command call-backs and can be accessed after execution.
    • getWeightedPrincipalAxes

      public VectorDouble getWeightedPrincipalAxes(int label)
      std::vector<double> itk::simple::LabelIntensityStatisticsImageFilter::GetWeightedPrincipalAxes(int64_t label) const This is an active measurement. It may be accessed while the filter is being executing in command call-backs and can be accessed after execution.
    • getWeightedPrincipalMoments

      public VectorDouble getWeightedPrincipalMoments(int label)
      std::vector<double> itk::simple::LabelIntensityStatisticsImageFilter::GetWeightedPrincipalMoments(int64_t label) const This is an active measurement. It may be accessed while the filter is being executing in command call-backs and can be accessed after execution.
    • getName

      public String getName()
      std::string itk::simple::LabelIntensityStatisticsImageFilter::GetName() const Name of this class
      Overrides:
      getName in class ProcessObject
    • toString

      public String toString()
      std::string itk::simple::LabelIntensityStatisticsImageFilter::ToString() const Print ourselves out
      Overrides:
      toString in class ProcessObject
    • execute

      public void execute(Image image, Image featureImage)
      void itk::simple::LabelIntensityStatisticsImageFilter::Execute(const Image &image, const Image &featureImage) Execute the filter on the input image
    • hasLabel

      public boolean hasLabel(int label)
      bool itk::simple::LabelIntensityStatisticsImageFilter::HasLabel(int64_t label) Does the specified label exist? Can only be called after a call a call to Update().
    • getNumberOfLabels

      public long getNumberOfLabels()
      uint64_t itk::simple::LabelIntensityStatisticsImageFilter::GetNumberOfLabels() Return the number of labels after execution.