|
Medical Imaging Interaction Toolkit
2018.4.99-389bf124
Medical Imaging Interaction Toolkit
|
Implementation of mitk::USImageSource for Telemed API devices. The method mitk::USImageSource::GetNextRawImage() is implemented for getting images from the Telemed API. More...
#include <mitkUSTelemedImageSource.h>


Public Member Functions | |
| mitkClassMacro (USTelemedImageSource, USImageSource) | |
| Pointer | Clone () const |
| virtual void | GetNextRawImage (std::vector< mitk::Image::Pointer > &) |
| void | UpdateImageGeometry () |
| bool | CreateAndConnectConverterPlugin (Usgfw2Lib::IUsgDataView *, Usgfw2Lib::tagScanMode) |
| Connect this object to the Telemed API. This method is for being used by mitk::USTelemedDevice. 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) |
| 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(). More... | |
Static Public Member Functions | |
| static Pointer | New () |
Protected Member Functions | |
| USTelemedImageSource () | |
| virtual | ~USTelemedImageSource () |
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. More... | |
Protected Attributes | |
| Usgfw2Lib::IUsgScanConverterPlugin * | m_Plugin |
| USTelemedScanConverterPlugin * | m_PluginCallback |
| Usgfw2Lib::IUsgDataView * | m_UsgDataView |
| Usgfw2Lib::IUsgImageProperties * | m_ImageProperties |
| Usgfw2Lib::IUsgDepth * | m_DepthProperties |
| long | m_OldnXPelsPerUnit |
| long | m_OldnYPelsPerUnit |
| mitk::Image::Pointer | m_Image |
| itk::FastMutexLock::Pointer | m_ImageMutex |
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... | |
Additional Inherited Members | |
Static Public Attributes inherited from mitk::USImageSource | |
| static const char * | IMAGE_PROPERTY_IDENTIFIER |
Implementation of mitk::USImageSource for Telemed API devices. The method mitk::USImageSource::GetNextRawImage() is implemented for getting images from the Telemed API.
A method for connecting this ImageSource to the Telemed API is implemented (mitk::USTelemedImageSource::CreateAndConnectConverterPlugin()). This method is available for being used by mitk::USTelemedDevice.
Definition at line 32 of file mitkUSTelemedImageSource.h.
|
protected |
Definition at line 18 of file mitkUSTelemedImageSource.cpp.
|
protectedvirtual |
Definition at line 33 of file mitkUSTelemedImageSource.cpp.
References m_DepthProperties, m_ImageProperties, m_Plugin, m_PluginCallback, and SAFE_RELEASE.
| Pointer mitk::USTelemedImageSource::Clone | ( | ) | const |
| bool mitk::USTelemedImageSource::CreateAndConnectConverterPlugin | ( | Usgfw2Lib::IUsgDataView * | usgDataView, |
| Usgfw2Lib::tagScanMode | scanMode | ||
| ) |
Connect this object to the Telemed API. This method is for being used by mitk::USTelemedDevice.
Definition at line 101 of file mitkUSTelemedImageSource.cpp.
References CREATE_TelemedControl, mitk::telemed::CreateUsgControl(), m_DepthProperties, m_Image, m_ImageMutex, m_ImageProperties, m_Plugin, m_PluginCallback, m_UsgDataView, MITK_ERROR, SAFE_RELEASE, USTelemedScanConverterPlugin::SetOutputImage(), and USTelemedScanConverterPlugin::SetScanConverterPlugin().
|
virtual |
Implementation of the superclass method. Returns the pointer to the mitk::Image filled by Telemed API callback.
Implements mitk::USImageSource.
Definition at line 41 of file mitkUSTelemedImageSource.cpp.
References m_Image, m_ImageMutex, m_ImageProperties, m_OldnXPelsPerUnit, m_OldnYPelsPerUnit, mitk::Image::New(), and UpdateImageGeometry().
| mitk::USTelemedImageSource::mitkClassMacro | ( | USTelemedImageSource | , |
| USImageSource | |||
| ) |
|
static |
| void mitk::USTelemedImageSource::UpdateImageGeometry | ( | ) |
Updates the geometry of the current image from the API. Is used internally when a new image is initialized, but also needs to be called if, e.g., the zoom factor is changed.
Definition at line 75 of file mitkUSTelemedImageSource.cpp.
References m_DepthProperties, m_Image, m_ImageMutex, m_ImageProperties, MITK_DEBUG, and MITK_WARN.
Referenced by GetNextRawImage().
|
protected |
Definition at line 69 of file mitkUSTelemedImageSource.h.
Referenced by CreateAndConnectConverterPlugin(), UpdateImageGeometry(), and ~USTelemedImageSource().
|
protected |
Definition at line 74 of file mitkUSTelemedImageSource.h.
Referenced by CreateAndConnectConverterPlugin(), GetNextRawImage(), and UpdateImageGeometry().
|
protected |
Definition at line 75 of file mitkUSTelemedImageSource.h.
Referenced by CreateAndConnectConverterPlugin(), GetNextRawImage(), and UpdateImageGeometry().
|
protected |
Definition at line 68 of file mitkUSTelemedImageSource.h.
Referenced by CreateAndConnectConverterPlugin(), GetNextRawImage(), UpdateImageGeometry(), and ~USTelemedImageSource().
|
protected |
Definition at line 70 of file mitkUSTelemedImageSource.h.
Referenced by GetNextRawImage().
|
protected |
Definition at line 71 of file mitkUSTelemedImageSource.h.
Referenced by GetNextRawImage().
|
protected |
Definition at line 62 of file mitkUSTelemedImageSource.h.
Referenced by CreateAndConnectConverterPlugin(), and ~USTelemedImageSource().
|
protected |
Definition at line 63 of file mitkUSTelemedImageSource.h.
Referenced by CreateAndConnectConverterPlugin(), and ~USTelemedImageSource().
|
protected |
Definition at line 65 of file mitkUSTelemedImageSource.h.
Referenced by CreateAndConnectConverterPlugin().