23 #ifndef __IPA_VIRTUALRANGECAM_H__ 24 #define __IPA_VIRTUALRANGECAM_H__ 39 #include <boost/filesystem.hpp> 61 unsigned long Init(std::string directory,
int cameraIndex = 0);
64 unsigned long Close();
67 unsigned long SetPropertyDefaults();
70 unsigned long AcquireImages(
int widthStepRange,
int widthStepGray,
int widthStepCartesian,
char* rangeImage=NULL,
char* intensityImage=NULL,
71 char* cartesianImage=NULL,
bool getLatestFrame=
true,
bool undistort=
true,
73 unsigned long AcquireImages(cv::Mat* rangeImage = 0, cv::Mat* intensityImage = 0,
74 cv::Mat* cartesianImage = 0,
bool getLatestFrame =
true,
bool undistort =
true,
77 unsigned long GetCalibratedUV(
double x,
double y,
double z,
double& u,
double& v);
79 unsigned long SaveParameters(
const char* filename);
86 int GetNumberOfImages();
92 unsigned long SetPathToImages(std::string path);
101 inline void UpdateImageDimensionsOnFirstImage(std::string filename, std::string ext=
".xml");
107 inline void FindSourceImageFormat(std::map<std::string, int>::iterator& itCounter, std::string& ext);
109 unsigned long GetCalibratedZMatlab(
int u,
int v,
float zRaw,
float& zCalibrated);
110 unsigned long GetCalibratedXYMatlab(
int u,
int v,
float z,
float& x,
float& y);
117 unsigned long LoadParameters(
const char* filename,
int cameraIndex);
152 #endif // __IPA_VIRTUALRANGECAM_H__
std::vector< std::string > m_AmplitudeImageFileNames
int m_ImageWidth
Image width.
cv::Mat m_CoeffsA4
a4 z-calibration parameters. One matrix entry corresponds to one pixel
cv::Mat m_CoeffsA3
a3 z-calibration parameters. One matrix entry corresponds to one pixel
__DLL_LIBCAMERASENSORS__ AbstractRangeImagingSensorPtr CreateRangeImagingSensor_VirtualCam()
static const int SWISSRANGER_ROWS
std::vector< std::string > m_IntensityImageFileNames
cv::Mat m_CoeffsA0
a0 z-calibration parameters. One matrix entry corresponds to one pixel
cv::Mat m_CoeffsA6
a6 z-calibration parameters. One matrix entry corresponds to one pixel
int m_ImageHeight
Image height.
static const int SWISSRANGER_COLUMNS
cv::Mat m_CoeffsA2
a2 z-calibration parameters. One matrix entry corresponds to one pixel
cv::Mat m_CoeffsA1
a1 z-calibration parameters. One matrix entry corresponds to one pixel
cv::Mat m_CoeffsA5
a5 z-calibration parameters. One matrix entry corresponds to one pixel
int m_CameraIndex
Index of the specified camera. Important, when several cameras of the same type are present...
double m_p2
Distortion parameters.
std::vector< std::string > m_CoordinateImageFileNames
std::vector< std::string > m_RangeImageFileNames
std::string m_CameraDataDirectory
Directory where the image data resides.
#define __DLL_LIBCAMERASENSORS__