MITK-IGT
IGT Extension of MITK
Loading...
Searching...
No Matches
mitkTestOpenCVToMITKImageFilterThread Class Reference

Objects of this class can start an internal thread by calling the Start() method. The thread is then updateing the tested object until the method Stop() is called. The class can be used to test if a filter is thread-save by using multiple objects and let them update simuntanously. More...

Inheritance diagram for mitkTestOpenCVToMITKImageFilterThread:

Public Member Functions

 mitkClassMacroItkParent (mitkTestOpenCVToMITKImageFilterThread, itk::Object)
 
 itkNewMacro (mitkTestOpenCVToMITKImageFilterThread)
 
void Start ()
 
void Stop ()
 
void setFilter (mitk::OpenCVToMitkImageFilter::Pointer testedFilter)
 
void setImage (cv::Mat image)
 

Public Attributes

int NumberOfMessages
 

Protected Member Functions

 mitkTestOpenCVToMITKImageFilterThread ()
 
void DoSomething ()
 
void ThreadStartTracking ()
 

Protected Attributes

bool ThreadRunning
 
std::thread Thread
 
cv::Mat currentImage
 
mitk::OpenCVToMitkImageFilter::Pointer m_testedFilter
 

Detailed Description

Objects of this class can start an internal thread by calling the Start() method. The thread is then updateing the tested object until the method Stop() is called. The class can be used to test if a filter is thread-save by using multiple objects and let them update simuntanously.

Documentation

Definition at line 31 of file mitkOpenCVToMitkImageFilterTest.cpp.

Constructor & Destructor Documentation

◆ mitkTestOpenCVToMITKImageFilterThread()

mitkTestOpenCVToMITKImageFilterThread::mitkTestOpenCVToMITKImageFilterThread ( )
inlineprotected

Definition at line 42 of file mitkOpenCVToMitkImageFilterTest.cpp.

Member Function Documentation

◆ DoSomething()

void mitkTestOpenCVToMITKImageFilterThread::DoSomething ( )
inlineprotected

Definition at line 55 of file mitkOpenCVToMitkImageFilterTest.cpp.

◆ itkNewMacro()

mitkTestOpenCVToMITKImageFilterThread::itkNewMacro ( mitkTestOpenCVToMITKImageFilterThread )

◆ mitkClassMacroItkParent()

mitkTestOpenCVToMITKImageFilterThread::mitkClassMacroItkParent ( mitkTestOpenCVToMITKImageFilterThread ,
itk::Object  )

◆ setFilter()

void mitkTestOpenCVToMITKImageFilterThread::setFilter ( mitk::OpenCVToMitkImageFilter::Pointer testedFilter)
inline

Definition at line 87 of file mitkOpenCVToMitkImageFilterTest.cpp.

◆ setImage()

void mitkTestOpenCVToMITKImageFilterThread::setImage ( cv::Mat image)
inline

Definition at line 92 of file mitkOpenCVToMitkImageFilterTest.cpp.

◆ Start()

void mitkTestOpenCVToMITKImageFilterThread::Start ( )
inline

Definition at line 74 of file mitkOpenCVToMitkImageFilterTest.cpp.

◆ Stop()

void mitkTestOpenCVToMITKImageFilterThread::Stop ( )
inline

Definition at line 80 of file mitkOpenCVToMitkImageFilterTest.cpp.

◆ ThreadStartTracking()

void mitkTestOpenCVToMITKImageFilterThread::ThreadStartTracking ( )
inlineprotected

Definition at line 67 of file mitkOpenCVToMitkImageFilterTest.cpp.

Member Data Documentation

◆ currentImage

cv::Mat mitkTestOpenCVToMITKImageFilterThread::currentImage
protected

Definition at line 51 of file mitkOpenCVToMitkImageFilterTest.cpp.

◆ m_testedFilter

mitk::OpenCVToMitkImageFilter::Pointer mitkTestOpenCVToMITKImageFilterThread::m_testedFilter
protected

Definition at line 53 of file mitkOpenCVToMitkImageFilterTest.cpp.

◆ NumberOfMessages

int mitkTestOpenCVToMITKImageFilterThread::NumberOfMessages

Definition at line 38 of file mitkOpenCVToMitkImageFilterTest.cpp.

◆ Thread

std::thread mitkTestOpenCVToMITKImageFilterThread::Thread
protected

Definition at line 49 of file mitkOpenCVToMitkImageFilterTest.cpp.

◆ ThreadRunning

bool mitkTestOpenCVToMITKImageFilterThread::ThreadRunning
protected

Definition at line 47 of file mitkOpenCVToMitkImageFilterTest.cpp.


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