Medical Imaging Interaction Toolkit
2016.11.0
Medical Imaging Interaction Toolkit
|
#include <mitkIGTLMessageToUSImageFilter.h>
Public Member Functions | |
mitkClassMacro (IGTLMessageToUSImageFilter, USImageSource) | |
Pointer | Clone () const |
void | SetNumberOfExpectedOutputs (unsigned int numOutputs) |
Sets the number of expected outputs. More... | |
void | ConnectTo (mitk::IGTLMessageSource *UpstreamFilter) |
Connects the input of this filter to the outputs of the given IGTLMessageSource. More... | |
Public Member Functions inherited from mitk::USImageSource | |
mitkClassMacroItkParent (USImageSource, itk::Object) | |
virtual mitk::BasicCombinationOpenCVImageFilter::Pointer | GetImageFilter () |
void | PushFilter (AbstractOpenCVImageFilter::Pointer filter) |
bool | RemoveFilter (AbstractOpenCVImageFilter::Pointer filter) |
bool | GetIsFilterInThePipeline (AbstractOpenCVImageFilter::Pointer filter) |
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(). More... | |
Static Public Member Functions | |
static Pointer | New () |
Protected Member Functions | |
IGTLMessageToUSImageFilter () | |
virtual void | GetNextRawImage (mitk::Image::Pointer &img) |
Copies the data from the next OIGTL message to an mitk::Image. More... | |
Protected Member Functions inherited from mitk::USImageSource | |
USImageSource () | |
virtual | ~USImageSource () |
virtual void | GetNextRawImage (cv::Mat &) |
Set the given OpenCV image matrix to the next image received from the device or file. More... | |
Additional Inherited Members | |
Static Public Attributes inherited from mitk::USImageSource | |
static const char * | IMAGE_PROPERTY_IDENTIFIER |
Protected Attributes inherited from mitk::USImageSource | |
mitk::OpenCVToMitkImageFilter::Pointer | m_OpenCVToMitkFilter |
Used to convert from OpenCV Images to MITK Images. More... | |
mitk::ImageToOpenCVImageFilter::Pointer | m_MitkToOpenCVFilter |
Used to convert from MITK Images to OpenCV Images. More... | |
Definition at line 28 of file mitkIGTLMessageToUSImageFilter.h.
|
protected |
Definition at line 167 of file mitkIGTLMessageToUSImageFilter.cpp.
References MITK_DEBUG.
Pointer mitk::IGTLMessageToUSImageFilter::Clone | ( | ) | const |
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 182 of file mitkIGTLMessageToUSImageFilter.cpp.
References MITK_DEBUG.
|
protectedvirtual |
Copies the data from the next OIGTL message to an mitk::Image.
img | the image to fill with the data from the OIGTL message. |
Implements mitk::USImageSource.
Definition at line 21 of file mitkIGTLMessageToUSImageFilter.cpp.
References mitk::IGTLMessage::GetIGTLMessageType(), mitk::IGTLMessage::GetMessage(), mitk::IGTLMessageSource::GetOutput(), mitk::IGTLMessage::IsDataValid(), and mitkThrow.
mitk::IGTLMessageToUSImageFilter::mitkClassMacro | ( | IGTLMessageToUSImageFilter | , |
USImageSource | |||
) |
|
static |
Referenced by mitk::USIGTLDevice::USIGTLDevice().
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 173 of file mitkIGTLMessageToUSImageFilter.cpp.