MITK-IGT
IGT Extension of MITK
|
TofImageGrabber class providing OpenCV images. More...
#include <mitkToFOpenCVImageGrabber.h>
Public Member Functions | |
ToFOpenCVImageGrabber () | |
~ToFOpenCVImageGrabber () override | |
mitkClassMacro (ToFOpenCVImageGrabber, OpenCVImageSource) | |
itkFactorylessNewMacro (Self) | |
itkCloneMacro (Self) | |
cv::Mat | GetImage () override |
Get current ToF image. Specify image you want to grab with SetImageType() | |
void | SetImageType (unsigned int imageType) |
set type of image you want to grab. 0: Distance image (Default) 1: Amplitude image 2: Intensity image | |
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) | |
void | SetToFImageGrabber (mitk::ToFImageGrabber::Pointer imageGrabber) |
set the ImageGrabber used for fetching image data from the camera | |
mitk::ToFImageGrabber::Pointer | GetToFImageGrabber () |
get the ImageGrabber used for fetching image data from the camera | |
void | StartCapturing () |
void | StopCapturing () |
![]() | |
mitkClassMacroItkParent (OpenCVImageSource, itk::Object) | |
Protected Member Functions | |
void | MapScalars (mitk::Image::Pointer mitkImage, IplImage *openCVImage) |
map scalars through lookup table | |
Protected Attributes | |
mitk::ToFImageGrabber::Pointer | m_ImageGrabber |
ImageGrabber used for fetching ToF image data from the camera. | |
unsigned int | m_ImageType |
type of image currently supplied by this image source | |
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 | |
IplImage * | m_CurrentOpenCVIntensityImage |
OpenCV image holding the current intensity data. | |
IplImage * | m_CurrentOpenCVAmplitudeImage |
OpenCV image holding the current amplitude data. | |
IplImage * | m_CurrentOpenCVDistanceImage |
OpenCV image holding the current distance data. | |
TofImageGrabber class providing OpenCV images.
Definition at line 33 of file mitkToFOpenCVImageGrabber.h.
mitk::ToFOpenCVImageGrabber::ToFOpenCVImageGrabber | ( | ) |
Definition at line 28 of file mitkToFOpenCVImageGrabber.cpp.
|
override |
Definition at line 38 of file mitkToFOpenCVImageGrabber.cpp.
|
overridevirtual |
Get current ToF image. Specify image you want to grab with SetImageType()
Implements mitk::OpenCVImageSource.
Definition at line 42 of file mitkToFOpenCVImageGrabber.cpp.
ToFImageGrabber::Pointer mitk::ToFOpenCVImageGrabber::GetToFImageGrabber | ( | ) |
get the ImageGrabber used for fetching image data from the camera
Definition at line 131 of file mitkToFOpenCVImageGrabber.cpp.
mitk::ToFOpenCVImageGrabber::itkCloneMacro | ( | Self | ) |
mitk::ToFOpenCVImageGrabber::itkFactorylessNewMacro | ( | Self | ) |
|
protected |
map scalars through lookup table
mitkImage | current MITK image |
openCVImage |
Definition at line 158 of file mitkToFOpenCVImageGrabber.cpp.
mitk::ToFOpenCVImageGrabber::mitkClassMacro | ( | ToFOpenCVImageGrabber | , |
OpenCVImageSource | ) |
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 121 of file mitkToFOpenCVImageGrabber.cpp.
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 116 of file mitkToFOpenCVImageGrabber.cpp.
void mitk::ToFOpenCVImageGrabber::SetToFImageGrabber | ( | mitk::ToFImageGrabber::Pointer | imageGrabber | ) |
set the ImageGrabber used for fetching image data from the camera
Definition at line 126 of file mitkToFOpenCVImageGrabber.cpp.
void mitk::ToFOpenCVImageGrabber::StartCapturing | ( | ) |
Definition at line 136 of file mitkToFOpenCVImageGrabber.cpp.
void mitk::ToFOpenCVImageGrabber::StopCapturing | ( | ) |
Definition at line 149 of file mitkToFOpenCVImageGrabber.cpp.
|
protected |
OpenCV image holding the current amplitude data.
Definition at line 97 of file mitkToFOpenCVImageGrabber.h.
|
protected |
OpenCV image holding the current distance data.
Definition at line 98 of file mitkToFOpenCVImageGrabber.h.
|
protected |
OpenCV image holding the current intensity data.
Definition at line 96 of file mitkToFOpenCVImageGrabber.h.
|
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.
|
protected |
ImageGrabber used for fetching ToF image data from the camera.
Definition at line 89 of file mitkToFOpenCVImageGrabber.h.
|
protected |
type of image currently supplied by this image source
Definition at line 90 of file mitkToFOpenCVImageGrabber.h.