Medical Imaging Interaction Toolkit
2016.11.0
Medical Imaging Interaction Toolkit
|
TofImageGrabber class providing OpenCV images. More...
#include <mitkToFOpenCVImageGrabber.h>
Public Member Functions | |
ToFOpenCVImageGrabber () | |
~ToFOpenCVImageGrabber () | |
mitkClassMacro (ToFOpenCVImageGrabber, OpenCVImageSource) | |
Pointer | Clone () const |
cv::Mat | GetImage () override |
Get current ToF image. Specify image you want to grab with SetImageType() More... | |
void | SetImageType (unsigned int imageType) |
set type of image you want to grab. 0: Distance image (Default) 1: Amplitude image 2: Intensity image More... | |
void | SetImageDepth (unsigned int imageDepth) |
set the depth of the image. Some functions of OpenCV do not support IPL_DEPTH_32F. Warning: changing from default results in a mapping of the pixel value through a lookup table IPL_DEPTH_1U 1 IPL_DEPTH_8U 8 IPL_DEPTH_16U 16 IPL_DEPTH_32F 32 (Default) More... | |
void | SetToFImageGrabber (mitk::ToFImageGrabber::Pointer imageGrabber) |
set the ImageGrabber used for fetching image data from the camera More... | |
mitk::ToFImageGrabber::Pointer | GetToFImageGrabber () |
get the ImageGrabber used for fetching image data from the camera More... | |
void | StartCapturing () |
void | StopCapturing () |
Public Member Functions inherited from mitk::OpenCVImageSource | |
mitkClassMacroItkParent (OpenCVImageSource, itk::Object) | |
Static Public Member Functions | |
static Pointer | New () |
Protected Member Functions | |
void | MapScalars (mitk::Image::Pointer mitkImage, IplImage *openCVImage) |
map scalars through lookup table More... | |
Protected Attributes | |
mitk::ToFImageGrabber::Pointer | m_ImageGrabber |
ImageGrabber used for fetching ToF image data from the camera. More... | |
unsigned int | m_ImageType |
type of image currently supplied by this image source More... | |
unsigned int | m_ImageDepth |
image depth currently used by this image source. Warning: Changing from default (IPL_DEPTH_32F) results in a mapping of the pixel value through a lookup table More... | |
IplImage * | m_CurrentOpenCVIntensityImage |
OpenCV image holding the current intensity data. More... | |
IplImage * | m_CurrentOpenCVAmplitudeImage |
OpenCV image holding the current amplitude data. More... | |
IplImage * | m_CurrentOpenCVDistanceImage |
OpenCV image holding the current distance data. More... | |
TofImageGrabber class providing OpenCV images.
Definition at line 35 of file mitkToFOpenCVImageGrabber.h.
mitk::ToFOpenCVImageGrabber::ToFOpenCVImageGrabber | ( | ) |
Definition at line 30 of file mitkToFOpenCVImageGrabber.cpp.
References m_CurrentOpenCVAmplitudeImage, m_CurrentOpenCVDistanceImage, m_CurrentOpenCVIntensityImage, m_ImageDepth, m_ImageGrabber, and m_ImageType.
mitk::ToFOpenCVImageGrabber::~ToFOpenCVImageGrabber | ( | ) |
Definition at line 40 of file mitkToFOpenCVImageGrabber.cpp.
Pointer mitk::ToFOpenCVImageGrabber::Clone | ( | ) | const |
|
overridevirtual |
Get current ToF image. Specify image you want to grab with SetImageType()
Implements mitk::OpenCVImageSource.
Definition at line 44 of file mitkToFOpenCVImageGrabber.cpp.
References mitk::ImageAccessorBase::GetData(), m_CurrentOpenCVAmplitudeImage, m_CurrentOpenCVDistanceImage, m_CurrentOpenCVIntensityImage, m_ImageDepth, m_ImageGrabber, m_ImageType, MapScalars(), and mitk::Image::New().
ToFImageGrabber::Pointer mitk::ToFOpenCVImageGrabber::GetToFImageGrabber | ( | ) |
get the ImageGrabber used for fetching image data from the camera
Definition at line 139 of file mitkToFOpenCVImageGrabber.cpp.
References m_ImageGrabber.
|
protected |
map scalars through lookup table
image | current MITK image |
Definition at line 166 of file mitkToFOpenCVImageGrabber.cpp.
References mitk::ImageAccessorBase::GetData(), m_ImageGrabber, max(), min(), MITK_INFO, and mitk::New().
Referenced by GetImage().
mitk::ToFOpenCVImageGrabber::mitkClassMacro | ( | ToFOpenCVImageGrabber | , |
OpenCVImageSource | |||
) |
|
static |
void mitk::ToFOpenCVImageGrabber::SetImageDepth | ( | unsigned int | imageDepth | ) |
set the depth of the image. Some functions of OpenCV do not support IPL_DEPTH_32F. Warning: changing from default results in a mapping of the pixel value through a lookup table IPL_DEPTH_1U 1 IPL_DEPTH_8U 8 IPL_DEPTH_16U 16 IPL_DEPTH_32F 32 (Default)
Definition at line 129 of file mitkToFOpenCVImageGrabber.cpp.
References m_ImageDepth.
void mitk::ToFOpenCVImageGrabber::SetImageType | ( | unsigned int | imageType | ) |
set type of image you want to grab. 0: Distance image (Default) 1: Amplitude image 2: Intensity image
Definition at line 124 of file mitkToFOpenCVImageGrabber.cpp.
References m_ImageType.
void mitk::ToFOpenCVImageGrabber::SetToFImageGrabber | ( | mitk::ToFImageGrabber::Pointer | imageGrabber | ) |
set the ImageGrabber used for fetching image data from the camera
Definition at line 134 of file mitkToFOpenCVImageGrabber.cpp.
References m_ImageGrabber.
void mitk::ToFOpenCVImageGrabber::StartCapturing | ( | ) |
Definition at line 144 of file mitkToFOpenCVImageGrabber.cpp.
References m_CurrentOpenCVAmplitudeImage, m_CurrentOpenCVDistanceImage, m_CurrentOpenCVIntensityImage, m_ImageDepth, and m_ImageGrabber.
void mitk::ToFOpenCVImageGrabber::StopCapturing | ( | ) |
Definition at line 157 of file mitkToFOpenCVImageGrabber.cpp.
References m_ImageGrabber.
|
protected |
OpenCV image holding the current amplitude data.
Definition at line 97 of file mitkToFOpenCVImageGrabber.h.
Referenced by GetImage(), StartCapturing(), and ToFOpenCVImageGrabber().
|
protected |
OpenCV image holding the current distance data.
Definition at line 98 of file mitkToFOpenCVImageGrabber.h.
Referenced by GetImage(), StartCapturing(), and ToFOpenCVImageGrabber().
|
protected |
OpenCV image holding the current intensity data.
Definition at line 96 of file mitkToFOpenCVImageGrabber.h.
Referenced by GetImage(), StartCapturing(), and ToFOpenCVImageGrabber().
|
protected |
image depth currently used by this image source. Warning: Changing from default (IPL_DEPTH_32F) results in a mapping of the pixel value through a lookup table
Definition at line 95 of file mitkToFOpenCVImageGrabber.h.
Referenced by GetImage(), SetImageDepth(), StartCapturing(), and ToFOpenCVImageGrabber().
|
protected |
ImageGrabber used for fetching ToF image data from the camera.
Definition at line 89 of file mitkToFOpenCVImageGrabber.h.
Referenced by GetImage(), GetToFImageGrabber(), MapScalars(), SetToFImageGrabber(), StartCapturing(), StopCapturing(), and ToFOpenCVImageGrabber().
|
protected |
type of image currently supplied by this image source
Definition at line 90 of file mitkToFOpenCVImageGrabber.h.
Referenced by GetImage(), SetImageType(), and ToFOpenCVImageGrabber().