Medical Imaging Interaction Toolkit  2023.12.00
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 (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 mitkToFCameraPMDCamBoardController_h
13 #define mitkToFCameraPMDCamBoardController_h
14 
15 #include "MitkPMDExports.h"
16 #include "mitkCommon.h"
18 
19 #include "itkObject.h"
20 #include "itkObjectFactory.h"
21 
22 namespace mitk
23 {
31  {
32  public:
33 
35 
36  itkFactorylessNewMacro(Self);
37 
38  itkCloneMacro(Self);
39 
44  virtual bool OpenCameraConnection();
49  bool SetDistanceOffset( float offset );
53  float GetDistanceOffset();
61  bool SetRegionOfInterest( unsigned int leftUpperCornerX, unsigned int leftUpperCornerY, unsigned int width, unsigned int height );
66  bool SetRegionOfInterest( unsigned int roi[4] );
71  unsigned int* GetRegionOfInterest();
76  bool SetFieldOfView( float fov );
77 
78  protected:
79 
81 
83 
84  /*
85  \brief Transform the output of the camera, i.e. cut invalid pixels, and rotate 90 degrees
86  counterclockwise
87  \param input data array of original size (207x204)
88  \param rotated output data array of reduced size (200x200)
89  */
90  virtual void TransformCameraOutput(float* in, float* out, bool isDist);
91 
92  };
93 } //END mitk namespace
94 #endif
mitkToFCameraPMDController.h
mitk
Find image slices visible on a given plane.
Definition: RenderingTests.dox:1
mitkCommon.h
mitk::ToFCameraPMDController
Virtual interface and base class for all PMD Time-of-Flight devices. Wraps PMD API provided in PMDSDK...
Definition: mitkToFCameraPMDController.h:31
mitkClassMacro
#define mitkClassMacro(className, SuperClassName)
Definition: mitkCommon.h:36
mitk::ToFCameraPMDCamBoardController
Interface to the Time-of-Flight (ToF) camera PMD CamBoard.
Definition: mitkToFCameraPMDCamBoardController.h:30