Medical Imaging Interaction Toolkit  2016.11.0
Medical Imaging Interaction Toolkit
mitkToFCameraPMDCamBoardController.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 __mitkToFCameraPMDCamBoardController_h
17 #define __mitkToFCameraPMDCamBoardController_h
18 
19 #include "MitkPMDExports.h"
20 #include "mitkCommon.h"
22 
23 #include "itkObject.h"
24 #include "itkObjectFactory.h"
25 
26 namespace mitk
27 {
35  {
36  public:
37 
39 
40  itkFactorylessNewMacro(Self)
41  itkCloneMacro(Self)
42 
43 
47  virtual bool OpenCameraConnection();
52  bool SetDistanceOffset( float offset );
57  float GetDistanceOffset();
65  bool SetRegionOfInterest( unsigned int leftUpperCornerX, unsigned int leftUpperCornerY, unsigned int width, unsigned int height );
70  bool SetRegionOfInterest( unsigned int roi[4] );
75  unsigned int* GetRegionOfInterest();
80  bool SetFieldOfView( float fov );
81 
82  protected:
83 
85 
87 
88  /*
89  \brief Transform the output of the camera, i.e. cut invalid pixels, and rotate 90 degrees
90  counterclockwise
91  \param input data array of original size (207x204)
92  \param rotated output data array of reduced size (200x200)
93  */
94  virtual void TransformCameraOutput(float* in, float* out, bool isDist);
95 
96  };
97 } //END mitk namespace
98 #endif
DataCollection - Class to facilitate loading/accessing structured data.
Interface to the Time-of-Flight (ToF) camera PMD CamBoard.
Virtual interface and base class for all PMD Time-of-Flight devices. Wraps PMD API provided in PMDSDK...
static Vector3D offset
#define mitkClassMacro(className, SuperClassName)
Definition: mitkCommon.h:44
static bool in(Reader::Char c, Reader::Char c1, Reader::Char c2, Reader::Char c3, Reader::Char c4)
Definition: jsoncpp.cpp:244