Medical Imaging Interaction Toolkit  2023.04.00
Medical Imaging Interaction Toolkit
QmitkImageStatisticsCalculationRunnable Class Reference

#include <QmitkImageStatisticsCalculationRunnable.h>

Inheritance diagram for QmitkImageStatisticsCalculationRunnable:
Collaboration diagram for QmitkImageStatisticsCalculationRunnable:

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::ImageStatisticsContainerGetStatisticsData () const
 
const mitk::ImageGetStatisticsImage () const
 
const mitk::ImageGetMaskImage () const
 
const mitk::PlanarFigureGetPlanarFigure () 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
 

Detailed Description

/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.

Member Typedef Documentation

◆ HistogramType

typedef itk::Statistics::Histogram<double> QmitkImageStatisticsCalculationRunnable::HistogramType

Definition at line 40 of file QmitkImageStatisticsCalculationRunnable.h.

Constructor & Destructor Documentation

◆ QmitkImageStatisticsCalculationRunnable()

QmitkImageStatisticsCalculationRunnable::QmitkImageStatisticsCalculationRunnable ( )

/brief standard constructor.

◆ ~QmitkImageStatisticsCalculationRunnable()

QmitkImageStatisticsCalculationRunnable::~QmitkImageStatisticsCalculationRunnable ( )

/brief standard destructor.

Member Function Documentation

◆ GetHistogramNBins()

unsigned int QmitkImageStatisticsCalculationRunnable::GetHistogramNBins ( ) const

/brief Get bin size for histogram resolution.

◆ GetIgnoreZeroValueVoxel()

bool QmitkImageStatisticsCalculationRunnable::GetIgnoreZeroValueVoxel ( ) const

/brief Get status of zero value voxel ignoring.

◆ GetMaskImage()

const mitk::Image* QmitkImageStatisticsCalculationRunnable::GetMaskImage ( ) const

◆ GetPlanarFigure()

const mitk::PlanarFigure* QmitkImageStatisticsCalculationRunnable::GetPlanarFigure ( ) const

◆ GetResults()

ResultMapType QmitkImageStatisticsCalculationRunnable::GetResults ( ) const
overridevirtual

◆ GetStatisticsData()

mitk::ImageStatisticsContainer* QmitkImageStatisticsCalculationRunnable::GetStatisticsData ( ) const

/brief returns the calculated image statistics.

◆ GetStatisticsImage()

const mitk::Image* QmitkImageStatisticsCalculationRunnable::GetStatisticsImage ( ) const

◆ Initialize()

void QmitkImageStatisticsCalculationRunnable::Initialize ( const mitk::Image image,
const mitk::Image binaryImage,
const mitk::PlanarFigure planarFig 
)

/brief Initializes the object with necessary data.

◆ RunComputation()

bool QmitkImageStatisticsCalculationRunnable::RunComputation ( )
overrideprotectedvirtual

Does the real computation. Returns true if there where results produced.

Implements QmitkDataGenerationJobBase.

◆ SetHistogramNBins()

void QmitkImageStatisticsCalculationRunnable::SetHistogramNBins ( unsigned int  nbins)

/brief Set bin size for histogram resolution.

◆ SetIgnoreZeroValueVoxel()

void QmitkImageStatisticsCalculationRunnable::SetIgnoreZeroValueVoxel ( bool  _arg)

/brief Set flag to ignore zero valued voxels


The documentation for this class was generated from the following file: