24 #ifndef __IPA_SWISSRANGER_H__ 25 #define __IPA_SWISSRANGER_H__ 33 typedef short __wchar_t;
39 typedef unsigned long DWORD;
52 #include <libMesaSR.h> 57 #define SAFE_FREE(p) { if(p) { delete (p); (p)=0; } } 58 #define SWISSRANGER_COLUMNS 176 59 #define SWISSRANGER_ROWS 144 67 int LibMesaCallback(SRCAM srCam,
unsigned int msg,
unsigned int param,
void* data);
84 unsigned long Init(std::string directory,
int cameraIndex = 0);
87 unsigned long Close();
90 unsigned long SetPropertyDefaults();
93 unsigned long AcquireImages(
int widthStepRange,
int widthStepGray,
int widthStepCartesian,
char* RangeImage=NULL,
char* IntensityImage=NULL,
94 char* cartesianImage=NULL,
bool getLatestFrame=
true,
bool undistort=
true,
96 unsigned long AcquireImages(cv::Mat* rangeImage = 0, cv::Mat* grayImage = 0,
97 cv::Mat* cartesianImage = 0,
bool getLatestFrame =
true,
bool undistort =
true,
100 unsigned long SaveParameters(
const char* filename);
110 unsigned long GetCalibratedZMatlab(
int u,
int v,
float zRaw,
float& zCalibrated);
111 unsigned long GetCalibratedZSwissranger(
int u,
int v,
int width,
float& zCalibrated);
112 unsigned long GetCalibratedXYMatlab(
int u,
int v,
float z,
float& x,
float& y);
113 unsigned long GetCalibratedXYSwissranger(
int u,
int v,
int width,
float& x,
float& y);
120 unsigned long LoadParameters(
const char* filename,
int cameraIndex);
125 unsigned long SetParameters();
157 #endif // __IPA_SWISSRANGER_H__
bool m_CoeffsInitialized
True, when m_CoeffsAx have been initialized.
cv::Mat m_CoeffsA1
a1 z-calibration parameters. One matrix entry corresponds to one pixel
cv::Mat m_CoeffsA2
a2 z-calibration parameters. One matrix entry corresponds to one pixel
cv::Mat m_CoeffsA4
a4 z-calibration parameters. One matrix entry corresponds to one pixel
bool m_GrayImageAcquireCalled
Is false, when acquiring gray image has not been called, yet.
static const int SWISSRANGER_ROWS
cv::Mat m_CoeffsA5
a5 z-calibration parameters. One matrix entry corresponds to one pixel
SRCAM m_SRCam
Handle to USB SR3000 camera.
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
static const int SWISSRANGER_COLUMNS
cv::Mat m_CoeffsA3
a3 z-calibration parameters. One matrix entry corresponds to one pixel
__DLL_LIBCAMERASENSORS__ AbstractRangeImagingSensorPtr CreateRangeImagingSensor_Swissranger()
int m_NumOfImages
Number of images the siwssranger returns (i.e. an intensity and a range image)
ImgEntry * m_DataBuffer
Image array.
#define __DLL_LIBCAMERASENSORS__
int LibMesaCallback(SRCAM srCam, unsigned int msg, unsigned int param, void *data)