12#ifndef mitkToFCameraMITKPlayerController_h
13#define mitkToFCameraMITKPlayerController_h
15#include <MitkToFHardwareExports.h>
16#include "mitkCommon.h"
17#include "mitkFileReader.h"
21#include "itkObjectFactory.h"
45 virtual bool OpenCameraConnection();
50 virtual bool CloseCameraConnection();
55 virtual void GetAmplitudes(
float* amplitudeArray);
59 virtual void GetIntensities(
float* intensityArray);
63 virtual void GetDistances(
float* distanceArray);
67 virtual void GetRgb(
unsigned char* rgbArray);
71 virtual void UpdateCamera();
73 virtual void SetInputFileName(std::string inputFileName);
138 void AccessData(
int frame, Image::Pointer image,
float* &data);
Controller for playing ToF images saved in NRRD format.
mitkClassMacroItkParent(ToFCameraMITKPlayerController, itk::Object)
unsigned char * m_RGBArray
member holding the current rgb frame
Image::Pointer m_RGBImage
itkSetMacro(DistanceImageFileName, std::string)
itkGetMacro(DistanceImageFileName, std::string)
itkGetMacro(RGBImageFileName, std::string)
float * m_DistanceArray
member holding the current distance frame
Image::Pointer m_DistanceImage
itkGetMacro(RGBPixelNumber, int)
int m_PixelNumber
holds the number of pixels contained in the image
itkFactorylessNewMacro(Self)
itkGetMacro(RGBCaptureHeight, int)
Image::Pointer m_AmplitudeImage
int m_NumberOfBytes
holds the number of bytes contained in the image
std::string m_InputFileName
int m_RGBCaptureHeight
same for RGB image which can be different then depth etc.
ToFImageType m_ToFImageType
type of the ToF image to be played: 3D Volume (ToFImageType3D), temporal 2D image stack (ToFImageType...
int m_NumberOfRGBBytes
same for RGB image
std::string m_AmplitudeImageFileName
file name of the amplitude image to be played
FILE * m_AmplitudeInfile
file holding the amplitude data
itkSetMacro(IntensityImageFileName, std::string)
itkGetMacro(CaptureHeight, int)
itkGetMacro(IntensityImageFileName, std::string)
float * m_AmplitudeArray
member holding the current amplitude frame
std::string m_DistanceImageFileName
file name of the distance image to be played
int m_CaptureHeight
holds the height of the image
itkGetMacro(PixelNumber, int)
std::string m_IntensityImageFileName
file name of the intensity image to be played
itkGetMacro(AmplitudeImageFileName, std::string)
std::string m_RGBImageFileName
file name of the rgb image to be played
int m_CaptureWidth
holds the width of the image
std::vector< bool > m_ImageStatus
itkGetMacro(CaptureWidth, int)
itkSetMacro(AmplitudeImageFileName, std::string)
int m_RGBPixelNumber
same for RGB image
FILE * m_IntensityInfile
file holding the intensity data
Image::Pointer m_IntensityImage
float * m_IntensityArray
member holding the current intensity frame
FILE * m_RGBInfile
file holding the rgb data
bool m_ConnectionCheck
flag showing whether the camera is connected (true) or not (false)
int m_RGBCaptureWidth
same for RGB image which can be different then depth etc.
FILE * m_DistanceInfile
file holding the distance data
itkSetMacro(RGBImageFileName, std::string)
itkGetMacro(RGBCaptureWidth, int)