Medical Imaging Interaction Toolkit
2016.11.0
Medical Imaging Interaction Toolkit
|
Class holding the statistics informations about a single mitk::Image. More...
#include <mitkImageStatisticsHolder.h>
Public Types | |
typedef itk::Statistics::Histogram< double > | HistogramType |
Public Member Functions | |
ImageStatisticsHolder (mitk::Image *image) | |
virtual | ~ImageStatisticsHolder () |
virtual const HistogramType * | GetScalarHistogram (int t=0, unsigned int=0) |
virtual ScalarType | GetScalarValueMin (int t=0, unsigned int component=0) |
Get the minimum for scalar images. Recomputation performed only when necessary. More... | |
virtual ScalarType | GetScalarValueMax (int t=0, unsigned int component=0) |
Get the maximum for scalar images. Recomputation performed only when necessary. More... | |
virtual ScalarType | GetScalarValue2ndMin (int t=0, unsigned int component=0) |
Get the second smallest value for scalar images. Recomputation performed only when necessary. More... | |
virtual mitk::ScalarType | GetScalarValueMinNoRecompute (unsigned int t=0) const |
Get the smallest value for scalar images, but do not recompute it first. More... | |
virtual mitk::ScalarType | GetScalarValue2ndMinNoRecompute (unsigned int t=0) const |
Get the second smallest value for scalar images, but do not recompute it first. More... | |
virtual ScalarType | GetScalarValue2ndMax (int t=0, unsigned int component=0) |
Get the second largest value for scalar images. More... | |
virtual mitk::ScalarType | GetScalarValueMaxNoRecompute (unsigned int t=0) |
Get the largest value for scalar images, but do not recompute it first. More... | |
virtual mitk::ScalarType | GetScalarValue2ndMaxNoRecompute (unsigned int t=0) |
Get the second largest value for scalar images, but do not recompute it first. More... | |
mitk::ScalarType | GetCountOfMinValuedVoxels (int t=0, unsigned int component=0) |
Get the count of voxels with the smallest scalar value in the dataset. More... | |
mitk::ScalarType | GetCountOfMaxValuedVoxels (int t=0, unsigned int component=0) |
Get the count of voxels with the largest scalar value in the dataset. More... | |
virtual unsigned int | GetCountOfMaxValuedVoxelsNoRecompute (unsigned int t=0) |
Get the count of voxels with the largest scalar value in the dataset. More... | |
virtual unsigned int | GetCountOfMinValuedVoxelsNoRecompute (unsigned int t=0) const |
Get the count of voxels with the smallest scalar value in the dataset. More... | |
bool | IsValidTimeStep (int t) const |
Protected Member Functions | |
virtual void | ResetImageStatistics () |
virtual void | ComputeImageStatistics (int t=0, unsigned int component=0) |
virtual void | Expand (unsigned int timeSteps) |
ImageTimeSelector::Pointer | GetTimeSelector () |
Protected Attributes | |
mitk::Image * | m_Image |
itk::Object::Pointer | m_HistogramGeneratorObject |
itk::Object::Pointer | m_TimeSelectorForExtremaObject |
std::vector< unsigned int > | m_CountOfMinValuedVoxels |
std::vector< unsigned int > | m_CountOfMaxValuedVoxels |
std::vector< ScalarType > | m_ScalarMin |
std::vector< ScalarType > | m_ScalarMax |
std::vector< ScalarType > | m_Scalar2ndMin |
std::vector< ScalarType > | m_Scalar2ndMax |
itk::TimeStamp | m_LastRecomputeTimeStamp |
Friends | |
template<typename ItkImageType > | |
void | _ComputeExtremaInItkImage (const ItkImageType *itkImage, mitk::ImageStatisticsHolder *statisticsHolder, int t) |
template<typename ItkImageType > | |
void | _ComputeExtremaInItkVectorImage (const ItkImageType *itkImage, mitk::ImageStatisticsHolder *statisticsHolder, int t, unsigned int component) |
Class holding the statistics informations about a single mitk::Image.
This computation was previously directly included in the definition and implementation of the mitk::Image class but for having a clear interface, all statistics computation is moved to the ImageStatisticsHolder class.
Each mitk::Image holds a normal pointer to its StatisticsHolder object. To get access to the methods, use the GetStatistics() method in mitk::Image class.
Definition at line 39 of file mitkImageStatisticsHolder.h.
typedef itk::Statistics::Histogram<double> mitk::ImageStatisticsHolder::HistogramType |
Definition at line 48 of file mitkImageStatisticsHolder.h.
mitk::ImageStatisticsHolder::ImageStatisticsHolder | ( | mitk::Image * | image | ) |
Constructor
Definition at line 22 of file mitkImageStatisticsHolder.cpp.
References m_CountOfMaxValuedVoxels, m_CountOfMinValuedVoxels, m_HistogramGeneratorObject, m_Scalar2ndMax, m_Scalar2ndMin, m_ScalarMax, m_ScalarMin, max(), and mitk::HistogramGenerator::New().
|
virtual |
Desctructor
Definition at line 41 of file mitkImageStatisticsHolder.cpp.
|
protectedvirtual |
Definition at line 299 of file mitkImageStatisticsHolder.cpp.
References AccessByItk_2, AccessVectorPixelTypeByItk_n, mitk::PixelType::GetNumberOfComponents(), mitk::PixelType::GetPixelType(), mitk::GenericProperty< T >::GetValue(), and max().
|
protectedvirtual |
Definition at line 85 of file mitkImageStatisticsHolder.cpp.
References max().
mitk::ScalarType mitk::ImageStatisticsHolder::GetCountOfMaxValuedVoxels | ( | int | t = 0 , |
unsigned int | component = 0 |
||
) |
Get the count of voxels with the largest scalar value in the dataset.
Definition at line 385 of file mitkImageStatisticsHolder.cpp.
|
inlinevirtual |
Get the count of voxels with the largest scalar value in the dataset.
Definition at line 118 of file mitkImageStatisticsHolder.h.
Referenced by mitk::LevelWindow::SetAuto().
mitk::ScalarType mitk::ImageStatisticsHolder::GetCountOfMinValuedVoxels | ( | int | t = 0 , |
unsigned int | component = 0 |
||
) |
Get the count of voxels with the smallest scalar value in the dataset.
Definition at line 379 of file mitkImageStatisticsHolder.cpp.
|
inlinevirtual |
Get the count of voxels with the smallest scalar value in the dataset.
Definition at line 128 of file mitkImageStatisticsHolder.h.
Referenced by mitk::LevelWindow::SetAuto().
|
virtual |
|
virtual |
Get the second largest value for scalar images.
Definition at line 373 of file mitkImageStatisticsHolder.cpp.
|
inlinevirtual |
Get the second largest value for scalar images, but do not recompute it first.
Definition at line 100 of file mitkImageStatisticsHolder.h.
Referenced by mitk::LevelWindow::SetAuto().
|
virtual |
Get the second smallest value for scalar images. Recomputation performed only when necessary.
Definition at line 367 of file mitkImageStatisticsHolder.cpp.
|
inlinevirtual |
Get the second smallest value for scalar images, but do not recompute it first.
Definition at line 76 of file mitkImageStatisticsHolder.h.
References max().
Referenced by mitk::LevelWindow::SetAuto().
|
virtual |
Get the maximum for scalar images. Recomputation performed only when necessary.
Definition at line 361 of file mitkImageStatisticsHolder.cpp.
Referenced by QmitkAdaptiveRegionGrowingToolGUI::OnPointAdded(), QmitkTransferFunctionGeneratorWidget::SetDataNode(), QmitkAdaptiveRegionGrowingToolGUI::SetInputImageNode(), mitk::BinaryThresholdTool::SetupPreviewNode(), and mitk::BinaryThresholdULTool::SetupPreviewNode().
|
inlinevirtual |
Get the largest value for scalar images, but do not recompute it first.
Definition at line 90 of file mitkImageStatisticsHolder.h.
Referenced by mitk::LevelWindow::SetAuto(), and mitk::LevelWindow::SetToImageRange().
|
virtual |
Get the minimum for scalar images. Recomputation performed only when necessary.
Definition at line 355 of file mitkImageStatisticsHolder.cpp.
Referenced by QmitkAdaptiveRegionGrowingToolGUI::OnPointAdded(), mitk::LevelWindow::SetAuto(), QmitkTransferFunctionGeneratorWidget::SetDataNode(), QmitkAdaptiveRegionGrowingToolGUI::SetInputImageNode(), mitk::LevelWindow::SetToImageRange(), mitk::BinaryThresholdTool::SetupPreviewNode(), and mitk::BinaryThresholdULTool::SetupPreviewNode().
|
inlinevirtual |
Get the smallest value for scalar images, but do not recompute it first.
Definition at line 66 of file mitkImageStatisticsHolder.h.
References max().
|
protected |
Definition at line 71 of file mitkImageStatisticsHolder.cpp.
References mitk::ImageTimeSelector::New().
bool mitk::ImageStatisticsHolder::IsValidTimeStep | ( | int | t | ) | const |
Definition at line 66 of file mitkImageStatisticsHolder.cpp.
|
protectedvirtual |
Definition at line 104 of file mitkImageStatisticsHolder.cpp.
References max().
|
friend |
|
friend |
|
mutableprotected |
Definition at line 164 of file mitkImageStatisticsHolder.h.
Referenced by ImageStatisticsHolder().
|
mutableprotected |
Definition at line 163 of file mitkImageStatisticsHolder.h.
Referenced by ImageStatisticsHolder().
|
mutableprotected |
Definition at line 160 of file mitkImageStatisticsHolder.h.
Referenced by ImageStatisticsHolder().
|
protected |
Definition at line 158 of file mitkImageStatisticsHolder.h.
|
protected |
Definition at line 170 of file mitkImageStatisticsHolder.h.
|
mutableprotected |
Definition at line 168 of file mitkImageStatisticsHolder.h.
Referenced by ImageStatisticsHolder().
|
mutableprotected |
Definition at line 167 of file mitkImageStatisticsHolder.h.
Referenced by ImageStatisticsHolder().
|
mutableprotected |
Definition at line 166 of file mitkImageStatisticsHolder.h.
Referenced by ImageStatisticsHolder().
|
mutableprotected |
Definition at line 165 of file mitkImageStatisticsHolder.h.
Referenced by ImageStatisticsHolder().
|
mutableprotected |
Definition at line 162 of file mitkImageStatisticsHolder.h.