-
Notifications
You must be signed in to change notification settings - Fork 10
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Razvan Mihalyi
committed
Nov 7, 2012
1 parent
e469fd8
commit 8b4640b
Showing
97 changed files
with
21,021 additions
and
885 deletions.
There are no files selected for viewing
88 changes: 88 additions & 0 deletions
88
.svn/pristine/05/05b9b05125a32df2c413114fa1e0ea92fda0d134.svn-base
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,88 @@ | ||
#pragma once | ||
|
||
#if (defined(_WIN32) || defined(__WIN32__) || defined(__TOS_WIN__) || defined(__WINDOWS__) || (defined(__APPLE__) & defined(__MACH__))) | ||
#include <cxcore.h> | ||
#include <highgui.h> | ||
#elif (CV_MAJOR_VERSION == 2) && (CV_MINOR_VERSION < 2) | ||
#include <opencv/cv.h> | ||
#else | ||
#include <opencv2/opencv.hpp> | ||
#endif | ||
|
||
#include <libconfig.h> | ||
|
||
#include "cvpmd.h" | ||
|
||
#include "slam6d/icp6Dminimizer.h" | ||
|
||
struct PMDFiles { | ||
FILE *i; // intens | ||
FILE *a; // ampl | ||
FILE *p; // 3d pts | ||
FILE *h; // pmd image headers | ||
}; | ||
|
||
struct TrackingSettings { | ||
int winSz; | ||
double quality; | ||
int minFeatures; | ||
int maxFeatures; | ||
int minDist; | ||
IplImage *pyr; | ||
IplImage *pyrPrev; | ||
IplImage *iCamPrev; | ||
CvPoint2D32f *pts[2]; | ||
char *ptsStatus; | ||
int trackingFlags; | ||
}; | ||
|
||
struct PMDCam { | ||
PMD *_pmd; | ||
CvCapture *_capture; | ||
PMDFiles _f; | ||
CvMat *intrinsicPMD; | ||
CvMat *intrinsicCam; | ||
CvMat *distortionPMD; | ||
CvMat *distortionCam; | ||
CvMat *rotation; | ||
CvMat *translation; | ||
// Undistortion maps | ||
IplImage *_mapXCam; | ||
IplImage *_mapYCam; | ||
IplImage *_mapXPMD; | ||
IplImage *_mapYPMD; | ||
// Data | ||
IplImage *_iCamColorUBuffer; | ||
IplImage *iCamColor; | ||
IplImage *iCam; | ||
IplImage *_iCamColorU; | ||
IplImage *iPMDI; | ||
IplImage *_iPMDIU; | ||
IplImage *iPMDA; | ||
IplImage *_iPMDAU; | ||
CvPoint3D32f **pts; | ||
unsigned int timestamp; | ||
unsigned int timestampUsec; | ||
// Pose Estimation | ||
icp6Dminimizer *icp; | ||
int minPts4Pose; | ||
double maxError; | ||
int minConsensusPts; | ||
int savePoses; | ||
// Settings | ||
ImageHeaderInformation *header; | ||
int synchronous; | ||
int hybrid; | ||
int _offlineMode; | ||
int historyLen; | ||
TrackingSettings _track; | ||
double sigmaDepth; | ||
double sigmaColor; | ||
double dpThreshold; | ||
|
||
}; | ||
|
||
PMDCam *initPMDCam(const char *confPath); | ||
int grabData(PMDCam *pmdc); | ||
|
||
|
Oops, something went wrong.