15 #ifndef VISIONTRANSFER_RECONSTRUCT3D_H 16 #define VISIONTRANSFER_RECONSTRUCT3D_H 19 #include "visiontransfer/common.h" 20 #include "visiontransfer/imagepair.h" 65 float* createPointMap(
const unsigned short* dispMap,
int width,
int height,
66 int rowStride,
const float* q,
unsigned short minDisparity = 1);
80 float* createPointMap(
const ImagePair& imagePair,
unsigned short minDisparity = 1);
102 void projectSinglePoint(
int imageX,
int imageY,
unsigned short disparity,
const float* q,
103 float& pointX,
float& pointY,
float& pointZ);
131 void writePlyFile(
const char* file,
const unsigned short* dispMap,
132 const unsigned char* image,
int width,
int height,
bool isRgb,
133 int dispRowStride,
int imageRowStride,
const float* q,
134 double maxZ = std::numeric_limits<double>::max(),
135 bool binary =
false);
151 void writePlyFile(
const char* file,
const ImagePair& imagePair,
152 double maxZ = std::numeric_limits<double>::max(),
bool binary =
false);
Transforms a disparity map into a set of 3D points.
A set of two images, which are usually the left camera image and the disparity map.