MITK-IGT
IGT Extension of MITK
Loading...
Searching...
No Matches
mitk::IGTLMessageToUSImageFilter Class Reference

#include <mitkIGTLMessageToUSImageFilter.h>

Inheritance diagram for mitk::IGTLMessageToUSImageFilter:
mitk::USImageSource

Public Member Functions

 mitkClassMacro (IGTLMessageToUSImageFilter, USImageSource)
 
 itkFactorylessNewMacro (Self)
 
 itkCloneMacro (Self)
 
void SetNumberOfExpectedOutputs (unsigned int numOutputs)
 Sets the number of expected outputs.
 
void ConnectTo (mitk::IGTLMessageSource *UpstreamFilter)
 Connects the input of this filter to the outputs of the given IGTLMessageSource.
 
- Public Member Functions inherited from mitk::USImageSource
 mitkClassMacroItkParent (USImageSource, itk::Object)
 
 itkGetMacro (ImageFilter, mitk::BasicCombinationOpenCVImageFilter::Pointer)
 
void PushFilter (AbstractOpenCVImageFilter::Pointer filter)
 
bool RemoveFilter (AbstractOpenCVImageFilter::Pointer filter)
 
bool GetIsFilterInThePipeline (AbstractOpenCVImageFilter::Pointer filter)
 
std::vector< mitk::Image::Pointer > GetNextImage ()
 Retrieves the next frame. This will typically be the next frame in a file or the last cached file in a device. The image is filtered if a filter was set by mitk::USImageSource::SetImageFilter().
 

Protected Member Functions

 IGTLMessageToUSImageFilter ()
 
void GetNextRawImage (std::vector< mitk::Image::Pointer > &imgVector) override
 Copies the data from the next OIGTL message to an mitk::Image.
 
- Protected Member Functions inherited from mitk::USImageSource
 USImageSource ()
 
 ~USImageSource () override
 
virtual void GetNextRawImage (std::vector< cv::Mat > &)
 Set the given OpenCV image matrix to the next image received from the device or file.
 

Additional Inherited Members

- Static Public Attributes inherited from mitk::USImageSource
static const char * IMAGE_PROPERTY_IDENTIFIER = "id_nummer"
 
- Protected Attributes inherited from mitk::USImageSource
mitk::OpenCVToMitkImageFilter::Pointer m_OpenCVToMitkFilter
 Used to convert from OpenCV Images to MITK Images.
 
mitk::ImageToOpenCVImageFilter::Pointer m_MitkToOpenCVFilter
 Used to convert from MITK Images to OpenCV Images.
 

Detailed Description

Definition at line 24 of file mitkIGTLMessageToUSImageFilter.h.

Constructor & Destructor Documentation

◆ IGTLMessageToUSImageFilter()

mitk::IGTLMessageToUSImageFilter::IGTLMessageToUSImageFilter ( )
protected

Definition at line 168 of file mitkIGTLMessageToUSImageFilter.cpp.

Member Function Documentation

◆ ConnectTo()

void mitk::IGTLMessageToUSImageFilter::ConnectTo ( mitk::IGTLMessageSource * UpstreamFilter)

Connects the input of this filter to the outputs of the given IGTLMessageSource.

This method does not support smartpointer. use FilterX.GetPointer() to retrieve a dumbpointer.

Definition at line 183 of file mitkIGTLMessageToUSImageFilter.cpp.

◆ GetNextRawImage()

void mitk::IGTLMessageToUSImageFilter::GetNextRawImage ( std::vector< mitk::Image::Pointer > & imgVector)
overrideprotectedvirtual

Copies the data from the next OIGTL message to an mitk::Image.

Parameters
imgVectorthe image to fill with the data from the OIGTL message.

Implements mitk::USImageSource.

Definition at line 19 of file mitkIGTLMessageToUSImageFilter.cpp.

◆ itkCloneMacro()

mitk::IGTLMessageToUSImageFilter::itkCloneMacro ( Self )

◆ itkFactorylessNewMacro()

mitk::IGTLMessageToUSImageFilter::itkFactorylessNewMacro ( Self )

◆ mitkClassMacro()

mitk::IGTLMessageToUSImageFilter::mitkClassMacro ( IGTLMessageToUSImageFilter ,
USImageSource  )

◆ SetNumberOfExpectedOutputs()

void mitk::IGTLMessageToUSImageFilter::SetNumberOfExpectedOutputs ( unsigned int numOutputs)

Sets the number of expected outputs.

Normally, this is done automatically by the filter concept. However, in our case we can not know, for example, how many tracking elements are stored in the incoming igtl message. Therefore, we have to set the number here to the expected value.

Definition at line 174 of file mitkIGTLMessageToUSImageFilter.cpp.


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