Package org.itk.simple
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://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
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
(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.getEquivalentEllipsoidDiameter
(int label) std::vector<double> itk::simple::LabelIntensityStatisticsImageFilter::GetEquivalentEllipsoidDiameter(int64_t label) const This is an active measurement.double
getEquivalentSphericalPerimeter
(int label) double itk::simple::LabelIntensityStatisticsImageFilter::GetEquivalentSphericalPerimeter(int64_t label) const This is an active measurement.double
getEquivalentSphericalRadius
(int label) 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.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.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
getNumberOfPixelsOnBorder
(int label) 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
getPerimeterOnBorder
(int label) double itk::simple::LabelIntensityStatisticsImageFilter::GetPerimeterOnBorder(int64_t label) const This is an active measurement.double
getPerimeterOnBorderRatio
(int label) 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.getPrincipalMoments
(int label) 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
getStandardDeviation
(int label) 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
getWeightedElongation
(int label) double itk::simple::LabelIntensityStatisticsImageFilter::GetWeightedElongation(int64_t label) const This is an active measurement.double
getWeightedFlatness
(int label) double itk::simple::LabelIntensityStatisticsImageFilter::GetWeightedFlatness(int64_t label) const This is an active measurement.getWeightedPrincipalAxes
(int label) std::vector<double> itk::simple::LabelIntensityStatisticsImageFilter::GetWeightedPrincipalAxes(int64_t label) const This is an active measurement.getWeightedPrincipalMoments
(int label) 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
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(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
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
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
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(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
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
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
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
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
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.
-