MITK-IGT
IGT Extension of MITK
Loading...
Searching...
No Matches
mitkToFCameraPMDCamBoardDevice.cpp
Go to the documentation of this file.
1/*============================================================================
2
3The Medical Imaging Interaction Toolkit (MITK)
4
5Copyright (c) German Cancer Research Center (DKFZ)
6All rights reserved.
7
8Use of this source code is governed by a 3-clause BSD license that can be
9found in the LICENSE file.
10
11============================================================================*/
14#include "mitkRealTimeClock.h"
15
16#include "itkMultiThreader.h"
17
18
19namespace mitk
20{
22 {
23 m_Controller = ToFCameraPMDCamBoardController::New();
24 }
25
29
30 void ToFCameraPMDCamBoardDevice::SetRegionOfInterest(unsigned int leftUpperCornerX, unsigned int leftUpperCornerY, unsigned int width, unsigned int height)
31 {
32 if (m_Controller.IsNotNull())
33 {
34 dynamic_cast<ToFCameraPMDCamBoardController*>(m_Controller.GetPointer())->SetRegionOfInterest(leftUpperCornerX,leftUpperCornerY,width,height);
35 }
36 }
37
38 void ToFCameraPMDCamBoardDevice::SetProperty( const char *propertyKey, BaseProperty* propertyValue )
39 {
40 this->m_PropertyList->SetProperty(propertyKey, propertyValue);
41 }
42}
PropertyList::Pointer m_PropertyList
a list of the corresponding properties
Interface to the Time-of-Flight (ToF) camera PMD CamBoard.
bool SetRegionOfInterest(unsigned int leftUpperCornerX, unsigned int leftUpperCornerY, unsigned int width, unsigned int height)
Setting the region of interest, the camera is configured to only output a certain area of the image.
virtual void SetProperty(const char *propertyKey, BaseProperty *propertyValue)
set a BaseProperty
void SetRegionOfInterest(unsigned int leftUpperCornerX, unsigned int leftUpperCornerY, unsigned int width, unsigned int height)
Setting the region of interest, the camera is configured to only output a certain area of the image.
ToFCameraPMDController::Pointer m_Controller
corresponding CameraController
IGT Exceptions.