I am looking a c / c++ library where I can throw in an depth image and a few camera parameters and get a point cloud out it. Does someone know such a library?
Like:
cv::Mat depthImage;
glm::vec3 cameraPosition(x,y,z);
glm::vec3 cameraUpVector(x,y,z);
glm::vec3 cameraViewingDirection,y,z);
float focalLength;
int resolutionX;
int resolutionY;
Pointcloud pcloud = library::pointcloudFromDepthImage(depthImage, cameraPosition, cameraUpVector, cameraViewingDirection, focalLength, resolutionX, resolutionY);