How can i reconstruct 3D cloud from two images?
2 views (last 30 days)
Show older comments
I have two images I1 and I2.I have calibrated my camera using the checkerboard images using the camera calibration toolbox (computer vision toolbox 6.0).To reconstruct 3D object from 2D,i tried to use sample code given in matlab.But unfortunately it is returning out of memory eventhough i tried 3GB switch.Can anybody please give me the sample code to reconstruct the 3D object from 2 images.
Matlab version:2014a
Windows 7 Home 32bit
Ram-2GB.
Thank you in advance
0 Comments
Answers (1)
Dima Lisin
on 14 Oct 2014
Hi Srinivasan,
Can you please tell me which function throws the out of memory error? Is it rectifyStereoImages? reconstructScene? How big are your images? Are they grayscale or color?
Without knowing the details, my general advice would be to use grayscale uint8 images. Also, I would highly recommend using a 64-bit machine.
2 Comments
Dima Lisin
on 11 Dec 2014
You are probably getting a lot of noise. What you should do is limit the range of the z values. First look at the histogram of the Z's. The valid z-values can be positive or negative, depending on whether your camera 1 is on the left or on the right. If valid Zs are positive, then set Z < 0 to NaN. You can also set Z > n to NaN, where n is the maximum distance you are interested in. If the Zs are negative, then you have to modify this accordingly.
If you set the z-values of noisy points to NaN, they will not be displayed by plot3.
See Also
Categories
Find more on Point Cloud Processing in Help Center and File Exchange
Products
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!