Medical Imaging Interaction Toolkit
2023.12.00
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::Image *binaryImage, const mitk::PlanarFigure *planarFig) |
mitk::ImageStatisticsContainer * | GetStatisticsData () const |
const mitk::Image * | GetStatisticsImage () const |
const mitk::Image * | GetMaskImage () const |
const mitk::PlanarFigure * | GetPlanarFigure () 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 |
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 35 of file QmitkImageStatisticsCalculationRunnable.h.
typedef itk::Statistics::Histogram<double> QmitkImageStatisticsCalculationRunnable::HistogramType |
Definition at line 40 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::Image* QmitkImageStatisticsCalculationRunnable::GetMaskImage | ( | ) | const |
const mitk::PlanarFigure* QmitkImageStatisticsCalculationRunnable::GetPlanarFigure | ( | ) | 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::Image * | binaryImage, | ||
const mitk::PlanarFigure * | planarFig | ||
) |
/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