ITK
5.2.0
Insight Toolkit
|
#include <itkLabelStatisticsImageFilter.h>
Classes | |
class | LabelStatistics |
Static Public Member Functions | |
static Pointer | New () |
Static Public Member Functions inherited from itk::ImageSink< TInputImage > | |
static void | SetGlobalDefaultDirectionTolerance (double) |
static double | GetGlobalDefaultDirectionTolerance () |
static void | SetGlobalDefaultCoordinateTolerance (double) |
static double | GetGlobalDefaultCoordinateTolerance () |
Static Public Member Functions inherited from itk::Object | |
static bool | GetGlobalWarningDisplay () |
static void | GlobalWarningDisplayOff () |
static void | GlobalWarningDisplayOn () |
static Pointer | New () |
static void | SetGlobalWarningDisplay (bool val) |
Static Public Member Functions inherited from itk::LightObject | |
static void | BreakOnError () |
static Pointer | New () |
Given an intensity image and a label map, compute min, max, variance and mean of the pixels associated with each label or segment.
LabelStatisticsImageFilter computes the minimum, maximum, sum, mean, median, variance and sigma of regions of an intensity image, where the regions are defined via a label map (a second input). The label image should be integral type. The filter needs all of its input image. It behaves as a filter with an input and output. Thus it can be inserted in a pipline with other filters and the statistics will only be recomputed if a downstream filter changes.
Optionally, the filter also computes intensity histograms on each object. If histograms are enabled, a median intensity value can also be computed, although its accuracy is limited to the bin width of the histogram. If histograms are not enabled, the median returns zero.
This filter is automatically multi-threaded and can stream its input when NumberOfStreamDivisions is set to more than
Definition at line 62 of file itkLabelStatisticsImageFilter.h.
using itk::LabelStatisticsImageFilter< TInputImage, TLabelImage >::BoundingBoxType = std::vector<IndexValueType> |
Bounding Box-related type alias
Definition at line 107 of file itkLabelStatisticsImageFilter.h.
using itk::LabelStatisticsImageFilter< TInputImage, TLabelImage >::ConstPointer = SmartPointer<const Self> |
Definition at line 71 of file itkLabelStatisticsImageFilter.h.
using itk::LabelStatisticsImageFilter< TInputImage, TLabelImage >::DataObjectPointer = typename DataObject::Pointer |
Smart Pointer type to a DataObject.
Definition at line 101 of file itkLabelStatisticsImageFilter.h.
using itk::LabelStatisticsImageFilter< TInputImage, TLabelImage >::HistogramPointer = typename HistogramType::Pointer |
Definition at line 111 of file itkLabelStatisticsImageFilter.h.
using itk::LabelStatisticsImageFilter< TInputImage, TLabelImage >::HistogramType = itk::Statistics::Histogram<RealType> |
Histogram-related type alias
Definition at line 110 of file itkLabelStatisticsImageFilter.h.
using itk::LabelStatisticsImageFilter< TInputImage, TLabelImage >::IndexType = typename TInputImage::IndexType |
Definition at line 83 of file itkLabelStatisticsImageFilter.h.
using itk::LabelStatisticsImageFilter< TInputImage, TLabelImage >::InputImagePointer = typename TInputImage::Pointer |
Image related type alias.
Definition at line 80 of file itkLabelStatisticsImageFilter.h.
using itk::LabelStatisticsImageFilter< TInputImage, TLabelImage >::LabelImagePointer = typename TLabelImage::Pointer |
Definition at line 88 of file itkLabelStatisticsImageFilter.h.
using itk::LabelStatisticsImageFilter< TInputImage, TLabelImage >::LabelImageType = TLabelImage |
Label image related type alias.
Definition at line 87 of file itkLabelStatisticsImageFilter.h.
using itk::LabelStatisticsImageFilter< TInputImage, TLabelImage >::LabelIndexType = typename TLabelImage::IndexType |
Definition at line 91 of file itkLabelStatisticsImageFilter.h.
using itk::LabelStatisticsImageFilter< TInputImage, TLabelImage >::LabelPixelType = typename TLabelImage::PixelType |
Definition at line 92 of file itkLabelStatisticsImageFilter.h.
using itk::LabelStatisticsImageFilter< TInputImage, TLabelImage >::LabelRegionType = typename TLabelImage::RegionType |
Definition at line 89 of file itkLabelStatisticsImageFilter.h.
using itk::LabelStatisticsImageFilter< TInputImage, TLabelImage >::LabelSizeType = typename TLabelImage::SizeType |
Definition at line 90 of file itkLabelStatisticsImageFilter.h.
using itk::LabelStatisticsImageFilter< TInputImage, TLabelImage >::MapConstIterator = typename MapType::const_iterator |
Definition at line 239 of file itkLabelStatisticsImageFilter.h.
using itk::LabelStatisticsImageFilter< TInputImage, TLabelImage >::MapIterator = typename MapType::iterator |
Definition at line 238 of file itkLabelStatisticsImageFilter.h.
using itk::LabelStatisticsImageFilter< TInputImage, TLabelImage >::MapSizeType = IdentifierType |
Definition at line 240 of file itkLabelStatisticsImageFilter.h.
using itk::LabelStatisticsImageFilter< TInputImage, TLabelImage >::MapType = std::unordered_map<LabelPixelType, LabelStatistics> |
Type of the map used to store data per label
Definition at line 237 of file itkLabelStatisticsImageFilter.h.
using itk::LabelStatisticsImageFilter< TInputImage, TLabelImage >::PixelType = typename TInputImage::PixelType |
Definition at line 84 of file itkLabelStatisticsImageFilter.h.
using itk::LabelStatisticsImageFilter< TInputImage, TLabelImage >::Pointer = SmartPointer<Self> |
Definition at line 70 of file itkLabelStatisticsImageFilter.h.
using itk::LabelStatisticsImageFilter< TInputImage, TLabelImage >::RealObjectType = SimpleDataObjectDecorator<RealType> |
Type of DataObjects used for scalar outputs
Definition at line 104 of file itkLabelStatisticsImageFilter.h.
using itk::LabelStatisticsImageFilter< TInputImage, TLabelImage >::RealType = typename NumericTraits<PixelType>::RealType |
Type to use for computations.
Definition at line 98 of file itkLabelStatisticsImageFilter.h.
using itk::LabelStatisticsImageFilter< TInputImage, TLabelImage >::RegionType = typename TInputImage::RegionType |
Definition at line 81 of file itkLabelStatisticsImageFilter.h.
using itk::LabelStatisticsImageFilter< TInputImage, TLabelImage >::Self = LabelStatisticsImageFilter |
Standard Self type alias
Definition at line 68 of file itkLabelStatisticsImageFilter.h.
using itk::LabelStatisticsImageFilter< TInputImage, TLabelImage >::SizeType = typename TInputImage::SizeType |
Definition at line 82 of file itkLabelStatisticsImageFilter.h.
using itk::LabelStatisticsImageFilter< TInputImage, TLabelImage >::Superclass = ImageSink<TInputImage> |
Definition at line 69 of file itkLabelStatisticsImageFilter.h.
using itk::LabelStatisticsImageFilter< TInputImage, TLabelImage >::ValidLabelValuesContainerType = std::vector<LabelPixelType> |
Type of the container used to store valid label values
Definition at line 243 of file itkLabelStatisticsImageFilter.h.
|
protected |
Set the label image
|
overrideprotecteddefault |
Set the label image
|
overrideprotectedvirtual |
Do final mean and variance computation from data accumulated in threads.
Reimplemented from itk::StreamingProcessObject.
|
inlineoverrideprotectedvirtual |
Set the label image
Reimplemented from itk::ImageSink< TInputImage >.
Definition at line 361 of file itkLabelStatisticsImageFilter.h.
|
virtual |
Create an object from an instance, potentially deferring to a factory. This method allows you to create an instance of an object that is exactly the same type as the referring object. This is useful in cases where an object has been cast back to a base class.
Reimplemented from itk::Object.
BoundingBoxType itk::LabelStatisticsImageFilter< TInputImage, TLabelImage >::GetBoundingBox | ( | LabelPixelType | label | ) | const |
Return the computed bounding box for a label. A vector of minIndex, maxIndex pairs for each axis. The intervals include the endpoints.
MapSizeType itk::LabelStatisticsImageFilter< TInputImage, TLabelImage >::GetCount | ( | LabelPixelType | label | ) | const |
Return the number of pixels for a label.
HistogramPointer itk::LabelStatisticsImageFilter< TInputImage, TLabelImage >::GetHistogram | ( | LabelPixelType | label | ) | const |
Return the histogram for a label
|
virtual |
Set the label image
RealType itk::LabelStatisticsImageFilter< TInputImage, TLabelImage >::GetMaximum | ( | LabelPixelType | label | ) | const |
Return the computed Maximum for a label.
RealType itk::LabelStatisticsImageFilter< TInputImage, TLabelImage >::GetMean | ( | LabelPixelType | label | ) | const |
Return the computed Mean for a label.
RealType itk::LabelStatisticsImageFilter< TInputImage, TLabelImage >::GetMedian | ( | LabelPixelType | label | ) | const |
Return the computed Median for a label. Requires histograms to be enabled!
RealType itk::LabelStatisticsImageFilter< TInputImage, TLabelImage >::GetMinimum | ( | LabelPixelType | label | ) | const |
Return the computed Minimum for a label.
|
virtual |
Runtime information support.
Reimplemented from itk::ImageSink< TInputImage >.
|
inline |
Set the label image
Definition at line 278 of file itkLabelStatisticsImageFilter.h.
|
inline |
Get the number of labels used
Definition at line 272 of file itkLabelStatisticsImageFilter.h.
|
inlineoverridevirtual |
Set the label image
Reimplemented from itk::ImageSink< TInputImage >.
Definition at line 342 of file itkLabelStatisticsImageFilter.h.
RegionType itk::LabelStatisticsImageFilter< TInputImage, TLabelImage >::GetRegion | ( | LabelPixelType | label | ) | const |
Return the computed region.
RealType itk::LabelStatisticsImageFilter< TInputImage, TLabelImage >::GetSigma | ( | LabelPixelType | label | ) | const |
Return the computed Standard Deviation for a label.
RealType itk::LabelStatisticsImageFilter< TInputImage, TLabelImage >::GetSum | ( | LabelPixelType | label | ) | const |
Return the compute Sum for a label.
|
virtual |
|
inlinevirtual |
Definition at line 252 of file itkLabelStatisticsImageFilter.h.
RealType itk::LabelStatisticsImageFilter< TInputImage, TLabelImage >::GetVariance | ( | LabelPixelType | label | ) | const |
Return the computed Variance for a label.
|
inline |
Does the specified label exist? Can only be called after a call a call to Update().
Definition at line 265 of file itkLabelStatisticsImageFilter.h.
|
private |
Set the label image
|
static |
Method for creation through the object factory.
|
overrideprotectedvirtual |
Set the label image
Reimplemented from itk::ImageSink< TInputImage >.
void itk::LabelStatisticsImageFilter< TInputImage, TLabelImage >::SetHistogramParameters | ( | const int | numBins, |
RealType | lowerBound, | ||
RealType | upperBound | ||
) |
specify Histogram parameters
|
virtual |
Set the label image
|
inlineoverridevirtual |
Set the label image
Reimplemented from itk::ImageSink< TInputImage >.
Definition at line 337 of file itkLabelStatisticsImageFilter.h.
|
virtual |
|
overrideprotected |
Set the label image
|
virtual |
|
virtual |
|
staticconstexpr |
Image related type alias.
Definition at line 95 of file itkLabelStatisticsImageFilter.h.
|
private |
Set the label image
Definition at line 379 of file itkLabelStatisticsImageFilter.h.
|
private |
Set the label image
Definition at line 386 of file itkLabelStatisticsImageFilter.h.
|
private |
Set the label image
Definition at line 389 of file itkLabelStatisticsImageFilter.h.
|
private |
Set the label image
Definition at line 384 of file itkLabelStatisticsImageFilter.h.
|
private |
Set the label image
Definition at line 387 of file itkLabelStatisticsImageFilter.h.
|
private |
Set the label image
Definition at line 382 of file itkLabelStatisticsImageFilter.h.
|
private |
Set the label image
Definition at line 380 of file itkLabelStatisticsImageFilter.h.