Medical Imaging Interaction Toolkit  2023.12.00
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 () override
 
 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 33 of file mitkToFOpenCVImageGrabber.h.

Constructor & Destructor Documentation

◆ ToFOpenCVImageGrabber()

mitk::ToFOpenCVImageGrabber::ToFOpenCVImageGrabber ( )

◆ ~ToFOpenCVImageGrabber()

mitk::ToFOpenCVImageGrabber::~ToFOpenCVImageGrabber ( )
override

Member Function Documentation

◆ Clone()

Pointer mitk::ToFOpenCVImageGrabber::Clone ( ) const

◆ GetImage()

cv::Mat mitk::ToFOpenCVImageGrabber::GetImage ( )
overridevirtual

Get current ToF image. Specify image you want to grab with SetImageType()

Implements mitk::OpenCVImageSource.

◆ GetToFImageGrabber()

mitk::ToFImageGrabber::Pointer mitk::ToFOpenCVImageGrabber::GetToFImageGrabber ( )

get the ImageGrabber used for fetching image data from the camera

◆ MapScalars()

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

map scalars through lookup table

Parameters
mitkImagecurrent MITK image
openCVImage

◆ mitkClassMacro()

mitk::ToFOpenCVImageGrabber::mitkClassMacro ( ToFOpenCVImageGrabber  ,
OpenCVImageSource   
)

◆ New()

static Pointer mitk::ToFOpenCVImageGrabber::New ( )
static

◆ SetImageDepth()

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)

◆ SetImageType()

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

◆ SetToFImageGrabber()

void mitk::ToFOpenCVImageGrabber::SetToFImageGrabber ( mitk::ToFImageGrabber::Pointer  imageGrabber)

set the ImageGrabber used for fetching image data from the camera

◆ StartCapturing()

void mitk::ToFOpenCVImageGrabber::StartCapturing ( )

◆ StopCapturing()

void mitk::ToFOpenCVImageGrabber::StopCapturing ( )

Member Data Documentation

◆ m_CurrentOpenCVAmplitudeImage

IplImage* mitk::ToFOpenCVImageGrabber::m_CurrentOpenCVAmplitudeImage
protected

OpenCV image holding the current amplitude data.

Definition at line 97 of file mitkToFOpenCVImageGrabber.h.

◆ m_CurrentOpenCVDistanceImage

IplImage* mitk::ToFOpenCVImageGrabber::m_CurrentOpenCVDistanceImage
protected

OpenCV image holding the current distance data.

Definition at line 98 of file mitkToFOpenCVImageGrabber.h.

◆ m_CurrentOpenCVIntensityImage

IplImage* mitk::ToFOpenCVImageGrabber::m_CurrentOpenCVIntensityImage
protected

OpenCV image holding the current intensity data.

Definition at line 96 of file mitkToFOpenCVImageGrabber.h.

◆ m_ImageDepth

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.

◆ m_ImageGrabber

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.

◆ m_ImageType

unsigned int mitk::ToFOpenCVImageGrabber::m_ImageType
protected

type of image currently supplied by this image source

Definition at line 90 of file mitkToFOpenCVImageGrabber.h.


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