Medical Imaging Interaction Toolkit  2016.11.0
Medical Imaging Interaction Toolkit
mitkToFOpenCVImageGrabber.h
Go to the documentation of this file.
1 /*===================================================================
2 
3 The Medical Imaging Interaction Toolkit (MITK)
4 
5 Copyright (c) German Cancer Research Center,
6 Division of Medical and Biological Informatics.
7 All rights reserved.
8 
9 This software is distributed WITHOUT ANY WARRANTY; without
10 even the implied warranty of MERCHANTABILITY or FITNESS FOR
11 A PARTICULAR PURPOSE.
12 
13 See LICENSE.txt or http://www.mitk.org for details.
14 
15 ===================================================================*/
16 #ifndef __mitkToFOpenCVImageGrabber_h
17 #define __mitkToFOpenCVImageGrabber_h
18 
19 #include <MitkToFHardwareExports.h>
20 #include "mitkCommon.h"
21 #include "mitkOpenCVImageSource.h"
22 #include "mitkToFImageGrabber.h"
23 
24 #include "itkObject.h"
25 #include "itkObjectFactory.h"
26 
27 namespace mitk
28 {
35  class MITKTOFHARDWARE_EXPORT ToFOpenCVImageGrabber : public mitk::OpenCVImageSource
36  {
37  public:
38 
40 
42 
44 
45  itkFactorylessNewMacro(Self)
46  itkCloneMacro(Self)
47 
48 
51  cv::Mat GetImage() override;
52 
59  void SetImageType(unsigned int imageType);
68  void SetImageDepth(unsigned int imageDepth);
72  void SetToFImageGrabber(mitk::ToFImageGrabber::Pointer imageGrabber);
76  mitk::ToFImageGrabber::Pointer GetToFImageGrabber();
77 
78  void StartCapturing();
79  void StopCapturing();
80 
81 
82  protected:
87  void MapScalars(mitk::Image::Pointer mitkImage, IplImage* openCVImage);
88 
90  unsigned int m_ImageType;
91 
95  unsigned int m_ImageDepth;
99 
100  private:
101 
102  };
103 } //END mitk namespace
104 #endif
TofImageGrabber class providing OpenCV images.
DataCollection - Class to facilitate loading/accessing structured data.
IplImage * m_CurrentOpenCVDistanceImage
OpenCV image holding the current distance data.
unsigned int m_ImageDepth
image depth currently used by this image source. Warning: Changing from default (IPL_DEPTH_32F) resul...
#define mitkClassMacro(className, SuperClassName)
Definition: mitkCommon.h:44
IplImage * m_CurrentOpenCVIntensityImage
OpenCV image holding the current intensity data.
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
IplImage * m_CurrentOpenCVAmplitudeImage
OpenCV image holding the current amplitude data.