generate a point cloud from a given depth image-matlab Computer Vision System Toolbox
22 Ansichten (letzte 30 Tage)
Ältere Kommentare anzeigen
mat
am 6 Okt. 2015
Beantwortet: Preetham Manjunatha
am 5 Okt. 2022
I have purchased Computer Vision System Toolbox. I am given 400 of depth images (.PNG images). I would like to create a point cloud for each image. I looked at the documentation of Computer Vision System Toolbox, and there is an example of converting depth image to point cloud: http://uk.mathworks.com/help/vision/ref/depthtopointcloud.html
[xyzPoints,flippedDepthImage] = depthToPointCloud(depthImage,depthDevice)
depthDevice = imaq.VideoDevice('kinect',2)
but the thing that I don't understand is that it requires Kinect camera and connection. I am not connecting to Kinect, I don't have Kinect, I am just given the output of Kinect which are the depth images.
how to make use of the function(depthToPointCloud) in the toolbox in generating cloud points from already given depth images without connecting to Kinect camera?
1 Kommentar
muhammad siddique
am 8 Sep. 2021
How can i convert simple rgb or gray scale image into 3d point cloud?
Akzeptierte Antwort
Dima Lisin
am 7 Okt. 2015
If all you have is a depth map, you cannot convert it into a point cloud, without knowing the parameters of the camera that was used to obtain it. depthToPointCloud needs a Kinect, because it assumes that the depth map came from the Kinect, and it uses Kinect's calibration parameters to get the 3D coordinates.
Alternatively, there is a reconstructScene function, which produces a point cloud from a stereo disparity map obtained from a calibrated stereo pair of cameras.
So, you would need to find out what device was used to generate your depth map, and what the parameters of that device are.
3 Kommentare
Dima Lisin
am 2 Mär. 2016
Sorry, I didn't really think it through.
In theory, it can work, because depth is inversely proportional to disparity. In practice, it would be difficult, because you would have to somehow "fake" parameters of a stereo camera, to convert depth into disparity, and to create a stereoParameters object.
Weitere Antworten (2)
Vincent
am 10 Nov. 2015
This code is used to generate point cloud from depth image, which captured by Kinect
0 Kommentare
Preetham Manjunatha
am 5 Okt. 2022
This link can help to convert RGB-D images to point cloud, provided the camera intrinsic parameters.
0 Kommentare
Siehe auch
Kategorien
Mehr zu Point Cloud Processing finden Sie in Help Center und File Exchange
Produkte
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!