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 Summary
Fields inherited from class org.itk.simple.ProcessObject
swigCMemOwn
-
Constructor Summary
ConstructorsModifierConstructorDescriptionitk::simple::LabelIntensityStatisticsImageFilter::LabelIntensityStatisticsImageFilter() Default Constructor that takes no arguments and initializes default parametersprotected
LabelIntensityStatisticsImageFilter
(long cPtr, boolean cMemoryOwn) -
Method Summary
Modifier and TypeMethodDescriptionvoid
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
delete()
virtual itk::simple::LabelIntensityStatisticsImageFilter::~LabelIntensityStatisticsImageFilter() Destructorvoid
void itk::simple::LabelIntensityStatisticsImageFilter::Execute(const Image &image, const Image &featureImage) Execute the filter on the input imageprotected void
finalize()
double
double 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.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
(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.double
getEquivalentSphericalPerimeter
(long label) double itk::simple::LabelIntensityStatisticsImageFilter::GetEquivalentSphericalPerimeter(int64_t label) const This is an active measurement.double
getEquivalentSphericalRadius
(long label) double itk::simple::LabelIntensityStatisticsImageFilter::GetEquivalentSphericalRadius(int64_t label) const This is an active measurement.double
getFeretDiameter
(long label) double itk::simple::LabelIntensityStatisticsImageFilter::GetFeretDiameter(int64_t label) const This is an active measurement.double
getFlatness
(long label) double itk::simple::LabelIntensityStatisticsImageFilter::GetFlatness(int64_t label) const This is an active measurement.double
getKurtosis
(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.double
getMaximum
(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.double
getMean
(long label) double itk::simple::LabelIntensityStatisticsImageFilter::GetMean(int64_t label) const This is an active measurement.double
getMedian
(long label) double itk::simple::LabelIntensityStatisticsImageFilter::GetMedian(int64_t label) const This is an active measurement.double
getMinimum
(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 classlong
uint32_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.double
getPerimeter
(long label) double itk::simple::LabelIntensityStatisticsImageFilter::GetPerimeter(int64_t label) const This is an active measurement.double
getPerimeterOnBorder
(long label) double itk::simple::LabelIntensityStatisticsImageFilter::GetPerimeterOnBorder(int64_t label) const This is an active measurement.double
getPerimeterOnBorderRatio
(long label) double itk::simple::LabelIntensityStatisticsImageFilter::GetPerimeterOnBorderRatio(int64_t label) const This is an active measurement.double
getPhysicalSize
(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.double
getRoundness
(long label) double itk::simple::LabelIntensityStatisticsImageFilter::GetRoundness(int64_t label) const This is an active measurement.double
getSkewness
(long label) double itk::simple::LabelIntensityStatisticsImageFilter::GetSkewness(int64_t label) const This is an active measurement.double
getStandardDeviation
(long label) double itk::simple::LabelIntensityStatisticsImageFilter::GetStandardDeviation(int64_t label) const This is an active measurement.double
getSum
(long label) double itk::simple::LabelIntensityStatisticsImageFilter::GetSum(int64_t label) const This is an active measurement.double
getVariance
(long label) double itk::simple::LabelIntensityStatisticsImageFilter::GetVariance(int64_t label) const This is an active measurement.double
getWeightedElongation
(long label) double itk::simple::LabelIntensityStatisticsImageFilter::GetWeightedElongation(int64_t label) const This is an active measurement.double
getWeightedFlatness
(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.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().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
toString()
std::string itk::simple::LabelIntensityStatisticsImageFilter::ToString() const Print ourselves outMethods inherited from class org.itk.simple.ImageFilter
getCPtr, swigRelease
Methods inherited from class org.itk.simple.ProcessObject
abort, 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
-
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
-
swigRelease
-
finalize
protected void finalize()- Overrides:
finalize
in classImageFilter
-
delete
public void delete()virtual itk::simple::LabelIntensityStatisticsImageFilter::~LabelIntensityStatisticsImageFilter() Destructor- Overrides:
delete
in classImageFilter
-
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
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
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
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(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. -
getEquivalentEllipsoidDiameter
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(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. -
getEquivalentSphericalRadius
public 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. -
getFeretDiameter
public 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. -
getFlatness
public 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. -
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
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
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(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. -
getPerimeterOnBorder
public 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. -
getPerimeterOnBorderRatio
public 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. -
getPhysicalSize
public 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. -
getPrincipalAxes
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
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(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. -
getCenterOfGravity
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(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. -
getMaximum
public 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. -
getMaximumIndex
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(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. -
getMedian
public 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. -
getMinimum
public 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. -
getMinimumIndex
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(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. -
getStandardDeviation
public 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. -
getSum
public 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. -
getVariance
public 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. -
getWeightedElongation
public 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. -
getWeightedFlatness
public 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. -
getWeightedPrincipalAxes
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
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
std::string itk::simple::LabelIntensityStatisticsImageFilter::GetName() const Name of this class- Overrides:
getName
in classProcessObject
-
toString
std::string itk::simple::LabelIntensityStatisticsImageFilter::ToString() const Print ourselves out- Overrides:
toString
in classProcessObject
-
execute
-
hasLabel
public 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(). -
getNumberOfLabels
uint64_t itk::simple::LabelIntensityStatisticsImageFilter::GetNumberOfLabels() Return the number of labels after execution.
-