How can i reconstruct 3D cloud from two images?
7 vues (au cours des 30 derniers jours)
Afficher commentaires plus anciens
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 commentaires
Réponses (1)
Dima Lisin
le 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 commentaires
Dima Lisin
le 11 Déc 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.
Voir également
Catégories
En savoir plus sur MATLAB Support Package for USB Webcams dans Help Center et File Exchange
Produits
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!