Medical Imaging Interaction Toolkit
2024.12.99-0da743f6
Medical Imaging Interaction Toolkit
QmitkImageStatisticsCalculationRunnable.h
Go to the documentation of this file.
1
/*============================================================================
2
3
The Medical Imaging Interaction Toolkit (MITK)
4
5
Copyright (c) German Cancer Research Center (DKFZ)
6
All rights reserved.
7
8
Use of this source code is governed by a 3-clause BSD license that can be
9
found in the LICENSE file.
10
11
============================================================================*/
12
#ifndef QmitkImageStatisticsCalculationRunnable_h
13
#define QmitkImageStatisticsCalculationRunnable_h
14
15
//mitk headers
16
#include <
mitkImageStatisticsContainer.h
>
17
18
#include "
QmitkDataGenerationJobBase.h
"
19
20
// itk headers
21
#ifndef __itkHistogram_h
22
#include <itkHistogram.h>
23
#endif
24
25
#include <
MitkImageStatisticsUIExports.h
>
26
33
class
MITKIMAGESTATISTICSUI_EXPORT
QmitkImageStatisticsCalculationRunnable
:
public
QmitkDataGenerationJobBase
34
{
35
Q_OBJECT
36
public
:
37
38
typedef
itk::Statistics::Histogram<double>
HistogramType
;
39
42
QmitkImageStatisticsCalculationRunnable
();
45
~
QmitkImageStatisticsCalculationRunnable
();
46
49
void
Initialize(
const
mitk::Image
* image,
const
mitk::BaseData
* mask);
52
mitk::ImageStatisticsContainer
* GetStatisticsData()
const
;
53
54
const
mitk::Image
* GetStatisticsImage()
const
;
55
const
mitk::BaseData
* GetMaskData()
const
;
56
59
void
SetIgnoreZeroValueVoxel(
bool
_arg);
62
bool
GetIgnoreZeroValueVoxel()
const
;
65
void
SetHistogramNBins(
unsigned
int
nbins);
68
unsigned
int
GetHistogramNBins()
const
;
69
70
ResultMapType
GetResults
()
const override
;
71
72
protected
:
73
bool
RunComputation
()
override
;
74
75
private
:
76
mitk::Image::ConstPointer
m_StatisticsImage;
77
mitk::BaseData::ConstPointer
m_MaskData;
78
mitk::ImageStatisticsContainer::Pointer
m_StatisticsContainer;
79
bool
m_IgnoreZeros;
80
unsigned
int
m_HistogramNBins;
81
};
82
#endif
QmitkImageStatisticsCalculationRunnable
Definition:
QmitkImageStatisticsCalculationRunnable.h:33
MitkImageStatisticsUIExports.h
mitk::Image
Image class for storing images.
Definition:
mitkImage.h:69
QmitkDataGenerationJobBase.h
itk::SmartPointer< const Self >
QmitkImageStatisticsCalculationRunnable::HistogramType
itk::Statistics::Histogram< double > HistogramType
Definition:
QmitkImageStatisticsCalculationRunnable.h:38
mitk::ImageStatisticsContainer
Container class for storing a StatisticsObject for each time step.
Definition:
mitkImageStatisticsContainer.h:34
QmitkDataGenerationJobBase::RunComputation
virtual bool RunComputation()=0
MITKIMAGESTATISTICSUI_EXPORT
#define MITKIMAGESTATISTICSUI_EXPORT
Definition:
MitkImageStatisticsUIExports.h:15
QmitkDataGenerationJobBase::GetResults
virtual ResultMapType GetResults() const =0
mitk::BaseData
Base of all data objects.
Definition:
mitkBaseData.h:42
QmitkDataGenerationJobBase
QmitkDataGenerationJobBase Base class for generation jobs used by QmitkDataGenerationBase and derived...
Definition:
QmitkDataGenerationJobBase.h:32
mitkImageStatisticsContainer.h
QmitkDataGenerationJobBase::ResultMapType
std::map< std::string, mitk::BaseData::Pointer > ResultMapType
Definition:
QmitkDataGenerationJobBase.h:39
src
MITK
Modules
ImageStatisticsUI
Qmitk
QmitkImageStatisticsCalculationRunnable.h
Generated on Tue Dec 24 2024 02:12:30 for Medical Imaging Interaction Toolkit by
1.8.17