Medical Imaging Interaction Toolkit  2018.4.99-07c45cb1
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 (DKFZ)
6 All rights reserved.
7 
8 Use of this source code is governed by a 3-clause BSD license that can be
9 found in the LICENSE file.
10 
11 ============================================================================*/
12 #ifndef __mitkToFOpenCVImageGrabber_h
13 #define __mitkToFOpenCVImageGrabber_h
14 
15 #include <MitkToFHardwareExports.h>
16 #include "mitkCommon.h"
17 #include "mitkOpenCVImageSource.h"
18 #include "mitkToFImageGrabber.h"
19 
20 #include "itkObject.h"
21 #include "itkObjectFactory.h"
22 
23 namespace mitk
24 {
32  {
33  public:
34 
36 
37  ~ToFOpenCVImageGrabber() override;
38 
40 
41  itkFactorylessNewMacro(Self);
42 
43  itkCloneMacro(Self);
44 
48  cv::Mat GetImage() override;
49 
56  void SetImageType(unsigned int imageType);
65  void SetImageDepth(unsigned int imageDepth);
69  void SetToFImageGrabber(mitk::ToFImageGrabber::Pointer imageGrabber);
73  mitk::ToFImageGrabber::Pointer GetToFImageGrabber();
74 
75  void StartCapturing();
76  void StopCapturing();
77 
78 
79  protected:
84  void MapScalars(mitk::Image::Pointer mitkImage, IplImage* openCVImage);
85 
87  unsigned int m_ImageType;
88 
92  unsigned int m_ImageDepth;
96 
97  private:
98 
99  };
100 } //END mitk namespace
101 #endif
TofImageGrabber class providing OpenCV images.
#define MITKTOFHARDWARE_EXPORT
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:40
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.