Medical Imaging Interaction Toolkit  2018.4.99-bd7b41ba Medical Imaging Interaction Toolkit
mitk::ImageStatisticsCalculator Class Reference

#include <mitkImageStatisticsCalculator.h>

Inheritance diagram for mitk::ImageStatisticsCalculator:
Collaboration diagram for mitk::ImageStatisticsCalculator:

## Public Types

typedef ImageStatisticsCalculator Self

typedef itk::Object Superclass

typedef itk::SmartPointer< SelfPointer

typedef itk::SmartPointer< const SelfConstPointer

typedef double statisticsValueType

typedef std::map< std::string, statisticsValueTypestatisticsMapType

typedef itk::Statistics::Histogram< double > HistogramType

using LabelIndex = ImageStatisticsContainer::LabelIndex

## Public Member Functions

virtual const char * GetClassName () const

void SetInputImage (const mitk::Image *image)
Set the image for which the statistics are to be computed. More...

Set the mask generator that creates the mask which is to be used to calculate statistics. If no more mask is desired simply set. More...

Set this if more than one mask should be applied (for instance if a IgnorePixelValueMask were to be used alongside with a segmentation). Both masks are combined using pixel wise AND operation. The secondary mask does not have to be the same size than the primary but they need to have some overlap. More...

void SetNBinsForHistogramStatistics (unsigned int nBins)
Set number of bins to be used for histogram statistics. If Bin size is set after number of bins, bin size will be used instead! More...

unsigned int GetNBinsForHistogramStatistics () const
Retrieve the number of bins used for histogram statistics. Careful: The return value does not indicate whether NBins or BinSize is used. That solely depends on which parameter has been set last. More...

void SetBinSizeForHistogramStatistics (double binSize)
Set bin size to be used for histogram statistics. If nbins is set after bin size, nbins will be used instead! More...

double GetBinSizeForHistogramStatistics () const
Retrieve the bin size for histogram statistics. Careful: The return value does not indicate whether NBins or BinSize is used. That solely depends on which parameter has been set last. More...

ImageStatisticsContainerGetStatistics (LabelIndex label=1)
Returns the statistics for label label. If these requested statistics are not computed yet the computation is done as well. For performance reasons, statistics for all labels in the image are computed at once. More...

## Static Public Member Functions

static Pointer New ()

## Protected Member Functions

ImageStatisticsCalculator ()

## Detailed Description

Definition at line 23 of file mitkImageStatisticsCalculator.h.

## ◆ ConstPointer

 typedef itk::SmartPointer< const Self > mitk::ImageStatisticsCalculator::ConstPointer

Definition at line 30 of file mitkImageStatisticsCalculator.h.

## ◆ HistogramType

 typedef itk::Statistics::Histogram mitk::ImageStatisticsCalculator::HistogramType

Definition at line 38 of file mitkImageStatisticsCalculator.h.

## ◆ LabelIndex

Definition at line 40 of file mitkImageStatisticsCalculator.h.

Definition at line 39 of file mitkImageStatisticsCalculator.h.

## ◆ Pointer

Definition at line 29 of file mitkImageStatisticsCalculator.h.

## ◆ Self

Standard Self typedef

Definition at line 27 of file mitkImageStatisticsCalculator.h.

## ◆ statisticsMapType

 typedef std::map mitk::ImageStatisticsCalculator::statisticsMapType

Definition at line 37 of file mitkImageStatisticsCalculator.h.

## ◆ statisticsValueType

 typedef double mitk::ImageStatisticsCalculator::statisticsValueType

Definition at line 34 of file mitkImageStatisticsCalculator.h.

## ◆ Superclass

 typedef itk::Object mitk::ImageStatisticsCalculator::Superclass

Definition at line 28 of file mitkImageStatisticsCalculator.h.

## ◆ ImageStatisticsCalculator()

 mitk::ImageStatisticsCalculator::ImageStatisticsCalculator ( )
inlineprotected

Definition at line 80 of file mitkImageStatisticsCalculator.h.

References image.

## ◆ GetBinSizeForHistogramStatistics()

 double mitk::ImageStatisticsCalculator::GetBinSizeForHistogramStatistics ( ) const

Retrieve the bin size for histogram statistics. Careful: The return value does not indicate whether NBins or BinSize is used. That solely depends on which parameter has been set last.

Documentation

Definition at line 91 of file mitkImageStatisticsCalculator.cpp.

## ◆ GetClassName()

 virtual const char* mitk::ImageStatisticsCalculator::GetClassName ( ) const
virtual

Runtime information support.

## ◆ GetNBinsForHistogramStatistics()

 unsigned int mitk::ImageStatisticsCalculator::GetNBinsForHistogramStatistics ( ) const

Retrieve the number of bins used for histogram statistics. Careful: The return value does not indicate whether NBins or BinSize is used. That solely depends on which parameter has been set last.

Documentation

Definition at line 71 of file mitkImageStatisticsCalculator.cpp.

## ◆ GetStatistics()

 mitk::ImageStatisticsContainer * mitk::ImageStatisticsCalculator::GetStatistics ( LabelIndex label = 1 )

Returns the statistics for label label. If these requested statistics are not computed yet the computation is done as well. For performance reasons, statistics for all labels in the image are computed at once.

Documentation

Definition at line 93 of file mitkImageStatisticsCalculator.cpp.

## ◆ New()

 static Pointer mitk::ImageStatisticsCalculator::New ( )
static

Method for creation through the object factory.

## ◆ SetBinSizeForHistogramStatistics()

 void mitk::ImageStatisticsCalculator::SetBinSizeForHistogramStatistics ( double binSize )

Set bin size to be used for histogram statistics. If nbins is set after bin size, nbins will be used instead!

Documentation

Definition at line 76 of file mitkImageStatisticsCalculator.cpp.

## ◆ SetInputImage()

 void mitk::ImageStatisticsCalculator::SetInputImage ( const mitk::Image * image )

Set the image for which the statistics are to be computed.

Documentation

Definition at line 29 of file mitkImageStatisticsCalculator.cpp.

References image.

Set the mask generator that creates the mask which is to be used to calculate statistics. If no more mask is desired simply set.

Documentation

Parameters

Definition at line 38 of file mitkImageStatisticsCalculator.cpp.

## ◆ SetNBinsForHistogramStatistics()

 void mitk::ImageStatisticsCalculator::SetNBinsForHistogramStatistics ( unsigned int nBins )

Set number of bins to be used for histogram statistics. If Bin size is set after number of bins, bin size will be used instead!

Documentation

Definition at line 56 of file mitkImageStatisticsCalculator.cpp.