Medical Imaging Interaction Toolkit  2023.12.00
Medical Imaging Interaction Toolkit
All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Modules Pages
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 #include <opencv2/core/types_c.h>
24 
25 namespace mitk
26 {
33  class MITKTOFHARDWARE_EXPORT ToFOpenCVImageGrabber : public mitk::OpenCVImageSource
34  {
35  public:
36 
38 
39  ~ToFOpenCVImageGrabber() override;
40 
42 
43  itkFactorylessNewMacro(Self);
44 
45  itkCloneMacro(Self);
46 
50  cv::Mat GetImage() override;
51 
58  void SetImageType(unsigned int imageType);
67  void SetImageDepth(unsigned int imageDepth);
71  void SetToFImageGrabber(mitk::ToFImageGrabber::Pointer imageGrabber);
75  mitk::ToFImageGrabber::Pointer GetToFImageGrabber();
76 
77  void StartCapturing();
78  void StopCapturing();
79 
80 
81  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
mitk::ToFOpenCVImageGrabber::m_CurrentOpenCVIntensityImage
IplImage * m_CurrentOpenCVIntensityImage
OpenCV image holding the current intensity data.
Definition: mitkToFOpenCVImageGrabber.h:96
itk::SmartPointer< Self >
mitk::ToFOpenCVImageGrabber::m_ImageDepth
unsigned int m_ImageDepth
image depth currently used by this image source. Warning: Changing from default (IPL_DEPTH_32F) resul...
Definition: mitkToFOpenCVImageGrabber.h:95
mitk::ToFOpenCVImageGrabber::m_ImageGrabber
mitk::ToFImageGrabber::Pointer m_ImageGrabber
ImageGrabber used for fetching ToF image data from the camera.
Definition: mitkToFOpenCVImageGrabber.h:89
mitk
Find image slices visible on a given plane.
Definition: RenderingTests.dox:1
mitk::OpenCVImageSource
Definition: mitkOpenCVImageSource.h:24
mitk::ToFOpenCVImageGrabber::m_CurrentOpenCVAmplitudeImage
IplImage * m_CurrentOpenCVAmplitudeImage
OpenCV image holding the current amplitude data.
Definition: mitkToFOpenCVImageGrabber.h:97
mitk::ToFOpenCVImageGrabber::m_ImageType
unsigned int m_ImageType
type of image currently supplied by this image source
Definition: mitkToFOpenCVImageGrabber.h:90
mitkCommon.h
mitk::ToFOpenCVImageGrabber
TofImageGrabber class providing OpenCV images.
Definition: mitkToFOpenCVImageGrabber.h:33
mitk::ToFOpenCVImageGrabber::m_CurrentOpenCVDistanceImage
IplImage * m_CurrentOpenCVDistanceImage
OpenCV image holding the current distance data.
Definition: mitkToFOpenCVImageGrabber.h:98
mitk::ImageSource::Pointer
itk::SmartPointer< Self > Pointer
Definition: mitkImageSource.h:39
mitkClassMacro
#define mitkClassMacro(className, SuperClassName)
Definition: mitkCommon.h:36
mitkToFImageGrabber.h
mitkOpenCVImageSource.h