Class LabelIntensityStatisticsImageFilter
java.lang.Object
org.itk.simple.ProcessObject
org.itk.simple.ImageFilter
org.itk.simple.LabelIntensityStatisticsImageFilter
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://doi.org/10.54294/q6auw4
See:
 StatisticsLabelObject , LabelStatisticsOpeningImageFilter , LabelStatisticsOpeningImageFilter
 itk::LabelImageToStatisticsLabelMapFilter for the Doxygen on the original ITK class.
C++ includes: sitkLabelIntensityStatisticsImageFilter.h
- 
Field SummaryFields inherited from class org.itk.simple.ProcessObjectswigCMemOwn
- 
Constructor SummaryConstructorsModifierConstructorDescriptionitk::simple::LabelIntensityStatisticsImageFilter::LabelIntensityStatisticsImageFilter() Default Constructor that takes no arguments and initializes default parametersprotectedLabelIntensityStatisticsImageFilter(long cPtr, boolean cMemoryOwn) 
- 
Method SummaryModifier and TypeMethodDescriptionvoidSelf& itk::simple::LabelIntensityStatisticsImageFilter::ComputeFeretDiameterOff()voidSelf& itk::simple::LabelIntensityStatisticsImageFilter::ComputeFeretDiameterOn() Set the value of ComputeFeretDiameter to true or false respectfully.voidSelf& itk::simple::LabelIntensityStatisticsImageFilter::ComputePerimeterOff()voidSelf& itk::simple::LabelIntensityStatisticsImageFilter::ComputePerimeterOn() Set the value of ComputePerimeter to true or false respectfully.voiddelete()virtual itk::simple::LabelIntensityStatisticsImageFilter::~LabelIntensityStatisticsImageFilter() Destructorvoidvoid itk::simple::LabelIntensityStatisticsImageFilter::Execute(const Image &image, const Image &featureImage) Execute the filter on the input imageprotected voidfinalize()doubledouble itk::simple::LabelIntensityStatisticsImageFilter::GetBackgroundValue() const Set/Get the value used as "background" in the output image.getBoundingBox(long label) std::vector<unsigned int> itk::simple::LabelIntensityStatisticsImageFilter::GetBoundingBox(int64_t label) const This is an active measurement.getCenterOfGravity(long label) std::vector<double> itk::simple::LabelIntensityStatisticsImageFilter::GetCenterOfGravity(int64_t label) const This is an active measurement.getCentroid(long label) std::vector<double> itk::simple::LabelIntensityStatisticsImageFilter::GetCentroid(int64_t label) const This is an active measurement.booleanbool itk::simple::LabelIntensityStatisticsImageFilter::GetComputeFeretDiameter() const Set/Get whether the maximum Feret diameter should be computed or not.booleanbool itk::simple::LabelIntensityStatisticsImageFilter::GetComputePerimeter() const Set/Get whether the perimeter should be computed or not.protected static longdoublegetElongation(long label) double itk::simple::LabelIntensityStatisticsImageFilter::GetElongation(int64_t label) const This is an active measurement.getEquivalentEllipsoidDiameter(long label) std::vector<double> itk::simple::LabelIntensityStatisticsImageFilter::GetEquivalentEllipsoidDiameter(int64_t label) const This is an active measurement.doublegetEquivalentSphericalPerimeter(long label) double itk::simple::LabelIntensityStatisticsImageFilter::GetEquivalentSphericalPerimeter(int64_t label) const This is an active measurement.doublegetEquivalentSphericalRadius(long label) double itk::simple::LabelIntensityStatisticsImageFilter::GetEquivalentSphericalRadius(int64_t label) const This is an active measurement.doublegetFeretDiameter(long label) double itk::simple::LabelIntensityStatisticsImageFilter::GetFeretDiameter(int64_t label) const This is an active measurement.doublegetFlatness(long label) double itk::simple::LabelIntensityStatisticsImageFilter::GetFlatness(int64_t label) const This is an active measurement.doublegetKurtosis(long 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.doublegetMaximum(long label) double itk::simple::LabelIntensityStatisticsImageFilter::GetMaximum(int64_t label) const This is an active measurement.getMaximumIndex(long label) std::vector<uint32_t> itk::simple::LabelIntensityStatisticsImageFilter::GetMaximumIndex(int64_t label) const This is an active measurement.doublegetMean(long label) double itk::simple::LabelIntensityStatisticsImageFilter::GetMean(int64_t label) const This is an active measurement.doublegetMedian(long label) double itk::simple::LabelIntensityStatisticsImageFilter::GetMedian(int64_t label) const This is an active measurement.doublegetMinimum(long label) double itk::simple::LabelIntensityStatisticsImageFilter::GetMinimum(int64_t label) const This is an active measurement.getMinimumIndex(long label) std::vector<uint32_t> itk::simple::LabelIntensityStatisticsImageFilter::GetMinimumIndex(int64_t label) const This is an active measurement.getName()std::string itk::simple::LabelIntensityStatisticsImageFilter::GetName() const Name of this classlonguint32_t itk::simple::LabelIntensityStatisticsImageFilter::GetNumberOfBins() const Set/Get the number of bins in the histogram.uint64_t itk::simple::LabelIntensityStatisticsImageFilter::GetNumberOfLabels() Return the number of labels after execution.getNumberOfPixels(long label) uint64_t itk::simple::LabelIntensityStatisticsImageFilter::GetNumberOfPixels(int64_t label) const This is an active measurement.getNumberOfPixelsOnBorder(long label) uint64_t itk::simple::LabelIntensityStatisticsImageFilter::GetNumberOfPixelsOnBorder(int64_t label) const This is an active measurement.doublegetPerimeter(long label) double itk::simple::LabelIntensityStatisticsImageFilter::GetPerimeter(int64_t label) const This is an active measurement.doublegetPerimeterOnBorder(long label) double itk::simple::LabelIntensityStatisticsImageFilter::GetPerimeterOnBorder(int64_t label) const This is an active measurement.doublegetPerimeterOnBorderRatio(long label) double itk::simple::LabelIntensityStatisticsImageFilter::GetPerimeterOnBorderRatio(int64_t label) const This is an active measurement.doublegetPhysicalSize(long label) double itk::simple::LabelIntensityStatisticsImageFilter::GetPhysicalSize(int64_t label) const This is an active measurement.getPrincipalAxes(long label) std::vector<double> itk::simple::LabelIntensityStatisticsImageFilter::GetPrincipalAxes(int64_t label) const This is an active measurement.getPrincipalMoments(long label) std::vector<double> itk::simple::LabelIntensityStatisticsImageFilter::GetPrincipalMoments(int64_t label) const This is an active measurement.getRegion(long label) std::vector<unsigned int> itk::simple::LabelIntensityStatisticsImageFilter::GetRegion(int64_t label) const This is an active measurement.doublegetRoundness(long label) double itk::simple::LabelIntensityStatisticsImageFilter::GetRoundness(int64_t label) const This is an active measurement.doublegetSkewness(long label) double itk::simple::LabelIntensityStatisticsImageFilter::GetSkewness(int64_t label) const This is an active measurement.doublegetStandardDeviation(long label) double itk::simple::LabelIntensityStatisticsImageFilter::GetStandardDeviation(int64_t label) const This is an active measurement.doublegetSum(long label) double itk::simple::LabelIntensityStatisticsImageFilter::GetSum(int64_t label) const This is an active measurement.doublegetVariance(long label) double itk::simple::LabelIntensityStatisticsImageFilter::GetVariance(int64_t label) const This is an active measurement.doublegetWeightedElongation(long label) double itk::simple::LabelIntensityStatisticsImageFilter::GetWeightedElongation(int64_t label) const This is an active measurement.doublegetWeightedFlatness(long label) double itk::simple::LabelIntensityStatisticsImageFilter::GetWeightedFlatness(int64_t label) const This is an active measurement.getWeightedPrincipalAxes(long label) std::vector<double> itk::simple::LabelIntensityStatisticsImageFilter::GetWeightedPrincipalAxes(int64_t label) const This is an active measurement.getWeightedPrincipalMoments(long label) std::vector<double> itk::simple::LabelIntensityStatisticsImageFilter::GetWeightedPrincipalMoments(int64_t label) const This is an active measurement.booleanhasLabel(long 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().voidsetBackgroundValue(double BackgroundValue) Self& itk::simple::LabelIntensityStatisticsImageFilter::SetBackgroundValue(double BackgroundValue) Set/Get the value used as "background" in the output image.voidsetComputeFeretDiameter(boolean ComputeFeretDiameter) Self& itk::simple::LabelIntensityStatisticsImageFilter::SetComputeFeretDiameter(bool ComputeFeretDiameter) Set/Get whether the maximum Feret diameter should be computed or not.voidsetComputePerimeter(boolean ComputePerimeter) Self& itk::simple::LabelIntensityStatisticsImageFilter::SetComputePerimeter(bool ComputePerimeter) Set/Get whether the perimeter should be computed or not.voidsetNumberOfBins(long NumberOfBins) Self& itk::simple::LabelIntensityStatisticsImageFilter::SetNumberOfBins(uint32_t NumberOfBins) Set/Get the number of bins in the histogram.protected static longtoString()std::string itk::simple::LabelIntensityStatisticsImageFilter::ToString() const Print ourselves outMethods inherited from class org.itk.simple.ImageFiltergetCPtr, swigReleaseMethods inherited from class org.itk.simple.ProcessObjectabort, addCommand, debugOff, debugOn, getCPtr, getDebug, getGlobalDefaultCoordinateTolerance, getGlobalDefaultDebug, getGlobalDefaultDirectionTolerance, getGlobalDefaultNumberOfThreads, getGlobalDefaultThreader, getGlobalWarningDisplay, getNumberOfThreads, getNumberOfWorkUnits, getProgress, globalDefaultDebugOff, globalDefaultDebugOn, globalWarningDisplayOff, globalWarningDisplayOn, hasCommand, removeAllCommands, setDebug, setGlobalDefaultCoordinateTolerance, setGlobalDefaultDebug, setGlobalDefaultDirectionTolerance, setGlobalDefaultNumberOfThreads, setGlobalDefaultThreader, setGlobalWarningDisplay, setNumberOfThreads, setNumberOfWorkUnits, swigRelease
- 
Constructor Details- 
LabelIntensityStatisticsImageFilterprotected LabelIntensityStatisticsImageFilter(long cPtr, boolean cMemoryOwn) 
- 
LabelIntensityStatisticsImageFilterpublic LabelIntensityStatisticsImageFilter()itk::simple::LabelIntensityStatisticsImageFilter::LabelIntensityStatisticsImageFilter() Default Constructor that takes no arguments and initializes default parameters
 
- 
- 
Method Details- 
getCPtr
- 
swigRelease
- 
finalizeprotected void finalize()- Overrides:
- finalizein class- ImageFilter
 
- 
deletepublic void delete()virtual itk::simple::LabelIntensityStatisticsImageFilter::~LabelIntensityStatisticsImageFilter() Destructor- Overrides:
- deletein class- ImageFilter
 
- 
setBackgroundValuepublic 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() .
- 
getBackgroundValuepublic double getBackgroundValue()double itk::simple::LabelIntensityStatisticsImageFilter::GetBackgroundValue() const Set/Get the value used as "background" in the output image. Defaults to NumericTraits<PixelType>::NonpositiveMin() .
- 
setComputeFeretDiameterpublic 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.
- 
computeFeretDiameterOnpublic void computeFeretDiameterOn()Self& itk::simple::LabelIntensityStatisticsImageFilter::ComputeFeretDiameterOn() Set the value of ComputeFeretDiameter to true or false respectfully.
- 
computeFeretDiameterOffpublic void computeFeretDiameterOff()Self& itk::simple::LabelIntensityStatisticsImageFilter::ComputeFeretDiameterOff()
- 
getComputeFeretDiameterpublic 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.
- 
setComputePerimeterpublic 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.
- 
computePerimeterOnpublic void computePerimeterOn()Self& itk::simple::LabelIntensityStatisticsImageFilter::ComputePerimeterOn() Set the value of ComputePerimeter to true or false respectfully.
- 
computePerimeterOffpublic void computePerimeterOff()Self& itk::simple::LabelIntensityStatisticsImageFilter::ComputePerimeterOff()
- 
getComputePerimeterpublic 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.
- 
setNumberOfBinspublic 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.
- 
getNumberOfBinspublic 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.
- 
getBoundingBoxstd::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.
- 
getRegionstd::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.
- 
getCentroidstd::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.
- 
getElongationpublic double getElongation(long 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.
- 
getEquivalentEllipsoidDiameterstd::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.
- 
getEquivalentSphericalPerimeterpublic double getEquivalentSphericalPerimeter(long 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.
- 
getEquivalentSphericalRadiuspublic double getEquivalentSphericalRadius(long 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.
- 
getFeretDiameterpublic double getFeretDiameter(long 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.
- 
getFlatnesspublic double getFlatness(long 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.
- 
getLabelsstd::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.
- 
getNumberOfPixelsuint64_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.
- 
getNumberOfPixelsOnBorderuint64_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.
- 
getPerimeterpublic double getPerimeter(long 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.
- 
getPerimeterOnBorderpublic double getPerimeterOnBorder(long 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.
- 
getPerimeterOnBorderRatiopublic double getPerimeterOnBorderRatio(long 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.
- 
getPhysicalSizepublic double getPhysicalSize(long 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.
- 
getPrincipalAxesstd::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.
- 
getPrincipalMomentsstd::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.
- 
getRoundnesspublic double getRoundness(long 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.
- 
getCenterOfGravitystd::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.
- 
getKurtosispublic double getKurtosis(long 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.
- 
getMaximumpublic double getMaximum(long 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.
- 
getMaximumIndexstd::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.
- 
getMeanpublic double getMean(long 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.
- 
getMedianpublic double getMedian(long 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.
- 
getMinimumpublic double getMinimum(long 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.
- 
getMinimumIndexstd::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.
- 
getSkewnesspublic double getSkewness(long 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.
- 
getStandardDeviationpublic double getStandardDeviation(long 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.
- 
getSumpublic double getSum(long 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.
- 
getVariancepublic double getVariance(long 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.
- 
getWeightedElongationpublic double getWeightedElongation(long 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.
- 
getWeightedFlatnesspublic double getWeightedFlatness(long 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.
- 
getWeightedPrincipalAxesstd::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.
- 
getWeightedPrincipalMomentsstd::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.
- 
getNamestd::string itk::simple::LabelIntensityStatisticsImageFilter::GetName() const Name of this class- Overrides:
- getNamein class- ProcessObject
 
- 
toStringstd::string itk::simple::LabelIntensityStatisticsImageFilter::ToString() const Print ourselves out- Overrides:
- toStringin class- ProcessObject
 
- 
execute
- 
hasLabelpublic boolean hasLabel(long 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().
- 
getNumberOfLabelsuint64_t itk::simple::LabelIntensityStatisticsImageFilter::GetNumberOfLabels() Return the number of labels after execution.
 
-