Medical Imaging Interaction Toolkit  2016.11.0
Medical Imaging Interaction Toolkit
mitk::USImageSource Class Referenceabstract

This is an abstract superclass for delivering USImages. Each subclass must implement the method mitk::USImageSource::GetNextRawImage(). The public method mitk::USImageSource::GetNextImage() can the be used to get the next image from the image source. This image will be filtered by the filter set with mitk::USImageSource::SetImageFilter(). More...

#include <mitkUSImageSource.h>

Inheritance diagram for mitk::USImageSource:
Collaboration diagram for mitk::USImageSource:

Public Member Functions

 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 Attributes

static const char * IMAGE_PROPERTY_IDENTIFIER
 

Protected Member Functions

 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...
 
virtual void GetNextRawImage (mitk::Image::Pointer &)=0
 Set mitk::Image to the next image received from the device or file. This method must be implemented in every subclass. More...
 

Protected Attributes

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

Detailed Description

This is an abstract superclass for delivering USImages. Each subclass must implement the method mitk::USImageSource::GetNextRawImage(). The public method mitk::USImageSource::GetNextImage() can the be used to get the next image from the image source. This image will be filtered by the filter set with mitk::USImageSource::SetImageFilter().

Definition at line 44 of file mitkUSImageSource.h.

Constructor & Destructor Documentation

mitk::USImageSource::USImageSource ( )
protected

Definition at line 22 of file mitkUSImageSource.cpp.

mitk::USImageSource::~USImageSource ( )
protectedvirtual

Definition at line 31 of file mitkUSImageSource.cpp.

Member Function Documentation

virtual mitk::BasicCombinationOpenCVImageFilter::Pointer mitk::USImageSource::GetImageFilter ( )
virtual
bool mitk::USImageSource::GetIsFilterInThePipeline ( AbstractOpenCVImageFilter::Pointer  filter)

Definition at line 45 of file mitkUSImageSource.cpp.

mitk::Image::Pointer mitk::USImageSource::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().

Returns
pointer to the next USImage (filtered if set)

Definition at line 50 of file mitkUSImageSource.cpp.

References mitk::IntProperty::New(), and mitk::Image::New().

void mitk::USImageSource::GetNextRawImage ( cv::Mat &  image)
protectedvirtual

Set the given OpenCV image matrix to the next image received from the device or file.

The standard implementation calls the overloaded function with an mitk::Image and converts this image to OpenCV then. One should reimplement this method for a better performance if an image filter is set.

Reimplemented in mitk::USImageVideoSource.

Definition at line 96 of file mitkUSImageSource.cpp.

References mitk::ImageToOpenCVImageFilter::New().

virtual void mitk::USImageSource::GetNextRawImage ( mitk::Image::Pointer )
protectedpure virtual

Set mitk::Image to the next image received from the device or file. This method must be implemented in every subclass.

Implemented in mitk::USImageVideoSource, mitk::IGTLMessageToUSImageFilter, and mitk::USTelemedImageSource.

mitk::USImageSource::mitkClassMacroItkParent ( USImageSource  ,
itk::Object   
)
void mitk::USImageSource::PushFilter ( AbstractOpenCVImageFilter::Pointer  filter)

Definition at line 35 of file mitkUSImageSource.cpp.

bool mitk::USImageSource::RemoveFilter ( AbstractOpenCVImageFilter::Pointer  filter)

Definition at line 40 of file mitkUSImageSource.cpp.

Member Data Documentation

const char * mitk::USImageSource::IMAGE_PROPERTY_IDENTIFIER
static

Definition at line 47 of file mitkUSImageSource.h.

mitk::ImageToOpenCVImageFilter::Pointer mitk::USImageSource::m_MitkToOpenCVFilter
protected

Used to convert from MITK Images to OpenCV Images.

Definition at line 92 of file mitkUSImageSource.h.

mitk::OpenCVToMitkImageFilter::Pointer mitk::USImageSource::m_OpenCVToMitkFilter
protected

Used to convert from OpenCV Images to MITK Images.

Definition at line 88 of file mitkUSImageSource.h.


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