Medical Imaging Interaction Toolkit
2024.06.99-60d9b802
Medical Imaging Interaction Toolkit
|
#include <QmitkImageStatisticsCalculationRunnable.h>
Public Types | |
typedef itk::Statistics::Histogram< double > | HistogramType |
Public Types inherited from QmitkDataGenerationJobBase | |
using | ResultMapType = std::map< std::string, mitk::BaseData::Pointer > |
Public Member Functions | |
QmitkImageStatisticsCalculationRunnable () | |
~QmitkImageStatisticsCalculationRunnable () | |
void | Initialize (const mitk::Image *image, const mitk::BaseData *mask) |
mitk::ImageStatisticsContainer * | GetStatisticsData () const |
const mitk::Image * | GetStatisticsImage () const |
const mitk::BaseData * | GetMaskData () const |
void | SetIgnoreZeroValueVoxel (bool _arg) |
bool | GetIgnoreZeroValueVoxel () const |
void | SetHistogramNBins (unsigned int nbins) |
unsigned int | GetHistogramNBins () const |
ResultMapType | GetResults () const override |
Public Member Functions inherited from QmitkDataGenerationJobBase | |
void | run () final |
bool | GetComputationSuccessFlag () const |
std::string | GetLastErrorMessage () const |
bool | IsRunning () const |
Protected Member Functions | |
bool | RunComputation () override |
Protected Member Functions inherited from QmitkDataGenerationJobBase | |
QmitkDataGenerationJobBase ()=default | |
virtual | ~QmitkDataGenerationJobBase ()=default |
Additional Inherited Members | |
Signals inherited from QmitkDataGenerationJobBase | |
void | Error (QString err, const QmitkDataGenerationJobBase *job) |
void | ResultsAvailable (ResultMapType results, const QmitkDataGenerationJobBase *job) |
Signal is emitted when results are available. More... | |
Protected Attributes inherited from QmitkDataGenerationJobBase | |
std::string | m_LastErrorMessage |
/brief This class is executed as background thread for image statistics calculation.
This class is derived from QRunnable and is intended to be used by QmitkImageStatisticsView to run the image statistics calculation in a background thread keeping the GUI usable.
Definition at line 33 of file QmitkImageStatisticsCalculationRunnable.h.
typedef itk::Statistics::Histogram<double> QmitkImageStatisticsCalculationRunnable::HistogramType |
Definition at line 38 of file QmitkImageStatisticsCalculationRunnable.h.
QmitkImageStatisticsCalculationRunnable::QmitkImageStatisticsCalculationRunnable | ( | ) |
/brief standard constructor.
QmitkImageStatisticsCalculationRunnable::~QmitkImageStatisticsCalculationRunnable | ( | ) |
/brief standard destructor.
unsigned int QmitkImageStatisticsCalculationRunnable::GetHistogramNBins | ( | ) | const |
/brief Get bin size for histogram resolution.
bool QmitkImageStatisticsCalculationRunnable::GetIgnoreZeroValueVoxel | ( | ) | const |
/brief Get status of zero value voxel ignoring.
const mitk::BaseData* QmitkImageStatisticsCalculationRunnable::GetMaskData | ( | ) | const |
|
overridevirtual |
Implements QmitkDataGenerationJobBase.
mitk::ImageStatisticsContainer* QmitkImageStatisticsCalculationRunnable::GetStatisticsData | ( | ) | const |
/brief returns the calculated image statistics.
const mitk::Image* QmitkImageStatisticsCalculationRunnable::GetStatisticsImage | ( | ) | const |
void QmitkImageStatisticsCalculationRunnable::Initialize | ( | const mitk::Image * | image, |
const mitk::BaseData * | mask | ||
) |
/brief Initializes the object with necessary data.
|
overrideprotectedvirtual |
Does the real computation. Returns true if there where results produced.
Implements QmitkDataGenerationJobBase.
void QmitkImageStatisticsCalculationRunnable::SetHistogramNBins | ( | unsigned int | nbins | ) |
/brief Set bin size for histogram resolution.
void QmitkImageStatisticsCalculationRunnable::SetIgnoreZeroValueVoxel | ( | bool | _arg | ) |
/brief Set flag to ignore zero valued voxels