Medical Imaging Interaction Toolkit
2018.4.99-389bf124
Medical Imaging Interaction Toolkit
|
#include <mitkMaskedDynamicImageStatisticsGenerator.h>
Public Types | |
typedef itk::Array< double > | ResultType |
Public Member Functions | |
mitkClassMacroItkParent (MaskedDynamicImageStatisticsGenerator, itk::Object) | |
virtual void | SetDynamicImage (const Image *_arg) |
virtual const Image * | GetDynamicImage () |
virtual void | SetMask (const Image *_arg) |
virtual const Image * | GetMask () |
const ResultType & | GetMaximum () |
const ResultType & | GetMinimum () |
const ResultType & | GetMean () |
const ResultType & | GetSigma () |
const ResultType & | GetVariance () |
const ResultType & | GetSum () |
void | Generate () |
Static Public Member Functions | |
static Pointer | New () |
Protected Member Functions | |
MaskedDynamicImageStatisticsGenerator () | |
~MaskedDynamicImageStatisticsGenerator () override | |
template<typename TPixel , unsigned int VDim> | |
void | DoCalculateStatistics (const itk::Image< TPixel, VDim > *image) |
virtual void | CheckValidInputs () const |
bool | HasOutdatedResults () const |
Protected Attributes | |
itk::TimeStamp | m_GenerationTimeStamp |
Simple mitk based wrapper for the itk::MaskedNaryStatisticsImageFilter. takes an input image and a mask image (both mitk::Images) and calculates the statistic of the input image within the given mask (every pixel != 0).
The class assumes that the mask image is 3D (only one time step), if this is not the case only the first time step will be used as mask.
If the input image has multiple time steps, the statistics will be calculated for each time step. This the result arrays will always have as many values as the input image has time steps.
Definition at line 30 of file mitkMaskedDynamicImageStatisticsGenerator.h.
typedef itk::Array<double> mitk::MaskedDynamicImageStatisticsGenerator::ResultType |
Definition at line 35 of file mitkMaskedDynamicImageStatisticsGenerator.h.
|
protected |
Definition at line 20 of file mitkMaskedDynamicImageStatisticsGenerator.cpp.
|
overrideprotected |
Definition at line 26 of file mitkMaskedDynamicImageStatisticsGenerator.cpp.
|
protectedvirtual |
Definition at line 162 of file mitkMaskedDynamicImageStatisticsGenerator.cpp.
References mitkThrow.
Referenced by GetMaximum(), GetMean(), GetMinimum(), GetSigma(), GetSum(), and GetVariance().
|
protected |
Definition at line 89 of file mitkMaskedDynamicImageStatisticsGenerator.cpp.
References mitk::CastToItkImage(), itk::Image, m_GenerationTimeStamp, and mitk::ImageTimeSelector::New().
Referenced by Generate().
void mitk::MaskedDynamicImageStatisticsGenerator::Generate | ( | ) |
Definition at line 140 of file mitkMaskedDynamicImageStatisticsGenerator.cpp.
References AccessFixedDimensionByItk, DoCalculateStatistics(), and mitkThrow.
Referenced by GetMaximum(), GetMean(), GetMinimum(), GetSigma(), GetSum(), and GetVariance().
|
virtual |
|
virtual |
const mitk::MaskedDynamicImageStatisticsGenerator::ResultType & mitk::MaskedDynamicImageStatisticsGenerator::GetMaximum | ( | ) |
Definition at line 28 of file mitkMaskedDynamicImageStatisticsGenerator.cpp.
References CheckValidInputs(), Generate(), and HasOutdatedResults().
const mitk::MaskedDynamicImageStatisticsGenerator::ResultType & mitk::MaskedDynamicImageStatisticsGenerator::GetMean | ( | ) |
Definition at line 48 of file mitkMaskedDynamicImageStatisticsGenerator.cpp.
References CheckValidInputs(), Generate(), and HasOutdatedResults().
const mitk::MaskedDynamicImageStatisticsGenerator::ResultType & mitk::MaskedDynamicImageStatisticsGenerator::GetMinimum | ( | ) |
Definition at line 38 of file mitkMaskedDynamicImageStatisticsGenerator.cpp.
References CheckValidInputs(), Generate(), and HasOutdatedResults().
const mitk::MaskedDynamicImageStatisticsGenerator::ResultType & mitk::MaskedDynamicImageStatisticsGenerator::GetSigma | ( | ) |
Definition at line 58 of file mitkMaskedDynamicImageStatisticsGenerator.cpp.
References CheckValidInputs(), Generate(), and HasOutdatedResults().
const mitk::MaskedDynamicImageStatisticsGenerator::ResultType & mitk::MaskedDynamicImageStatisticsGenerator::GetSum | ( | ) |
Definition at line 78 of file mitkMaskedDynamicImageStatisticsGenerator.cpp.
References CheckValidInputs(), Generate(), and HasOutdatedResults().
const mitk::MaskedDynamicImageStatisticsGenerator::ResultType & mitk::MaskedDynamicImageStatisticsGenerator::GetVariance | ( | ) |
Definition at line 68 of file mitkMaskedDynamicImageStatisticsGenerator.cpp.
References CheckValidInputs(), Generate(), and HasOutdatedResults().
|
protected |
Definition at line 172 of file mitkMaskedDynamicImageStatisticsGenerator.cpp.
References m_GenerationTimeStamp.
Referenced by GetMaximum(), GetMean(), GetMinimum(), GetSigma(), GetSum(), and GetVariance().
mitk::MaskedDynamicImageStatisticsGenerator::mitkClassMacroItkParent | ( | MaskedDynamicImageStatisticsGenerator | , |
itk::Object | |||
) |
|
static |
|
virtual |
|
virtual |
|
protected |
Definition at line 65 of file mitkMaskedDynamicImageStatisticsGenerator.h.
Referenced by DoCalculateStatistics(), and HasOutdatedResults().