Medical Imaging Interaction Toolkit  2016.11.0
Medical Imaging Interaction Toolkit
mitk::ToFOpenCVImageGrabber Class Reference

TofImageGrabber class providing OpenCV images. More...

#include <mitkToFOpenCVImageGrabber.h>

Inheritance diagram for mitk::ToFOpenCVImageGrabber:
Collaboration diagram for mitk::ToFOpenCVImageGrabber:

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

Detailed Description

TofImageGrabber class providing OpenCV images.

Definition at line 35 of file mitkToFOpenCVImageGrabber.h.

Constructor & Destructor Documentation

mitk::ToFOpenCVImageGrabber::ToFOpenCVImageGrabber ( )
mitk::ToFOpenCVImageGrabber::~ToFOpenCVImageGrabber ( )

Definition at line 40 of file mitkToFOpenCVImageGrabber.cpp.

Member Function Documentation

Pointer mitk::ToFOpenCVImageGrabber::Clone ( ) const
cv::Mat mitk::ToFOpenCVImageGrabber::GetImage ( void  )
overridevirtual
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.

void mitk::ToFOpenCVImageGrabber::MapScalars ( mitk::Image::Pointer  mitkImage,
IplImage *  openCVImage 
)
protected

map scalars through lookup table

Parameters
imagecurrent 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 Pointer mitk::ToFOpenCVImageGrabber::New ( )
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 ( )
void mitk::ToFOpenCVImageGrabber::StopCapturing ( )

Definition at line 157 of file mitkToFOpenCVImageGrabber.cpp.

References m_ImageGrabber.

Member Data Documentation

IplImage* mitk::ToFOpenCVImageGrabber::m_CurrentOpenCVAmplitudeImage
protected

OpenCV image holding the current amplitude data.

Definition at line 97 of file mitkToFOpenCVImageGrabber.h.

Referenced by GetImage(), StartCapturing(), and ToFOpenCVImageGrabber().

IplImage* mitk::ToFOpenCVImageGrabber::m_CurrentOpenCVDistanceImage
protected

OpenCV image holding the current distance data.

Definition at line 98 of file mitkToFOpenCVImageGrabber.h.

Referenced by GetImage(), StartCapturing(), and ToFOpenCVImageGrabber().

IplImage* mitk::ToFOpenCVImageGrabber::m_CurrentOpenCVIntensityImage
protected

OpenCV image holding the current intensity data.

Definition at line 96 of file mitkToFOpenCVImageGrabber.h.

Referenced by GetImage(), StartCapturing(), and ToFOpenCVImageGrabber().

unsigned int mitk::ToFOpenCVImageGrabber::m_ImageDepth
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().

mitk::ToFImageGrabber::Pointer mitk::ToFOpenCVImageGrabber::m_ImageGrabber
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().

unsigned int mitk::ToFOpenCVImageGrabber::m_ImageType
protected

type of image currently supplied by this image source

Definition at line 90 of file mitkToFOpenCVImageGrabber.h.

Referenced by GetImage(), SetImageType(), and ToFOpenCVImageGrabber().


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