How can i reconstruct 3D cloud from two images?
Ältere Kommentare anzeigen
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
Antworten (1)
Dima Lisin
am 14 Okt. 2014
0 Stimmen
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 Kommentare
Srinivasan
am 15 Okt. 2014
Bearbeitet: Srinivasan
am 15 Okt. 2014
Dima Lisin
am 11 Dez. 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.
Kategorien
Mehr zu MATLAB Support Package for USB Webcams finden Sie in Hilfe-Center und File Exchange
Produkte
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!