3d image preprocessing- reading and loading images from a folder

3 vues (au cours des 30 derniers jours)
Nilushi Dissanayake
Nilushi Dissanayake le 25 Jan 2011
i am a student who is doing a project on 3d image. I have got a data base containing 3d images 1. There are Disparity gray color images in 'Disparity' folder 2. there are color images for each gray color image in 'Stereo' folder these are taken from a stereo vision 3d cam. My problem is that i couldn't able to read and load all the images in a folder from a single code. then apply cropping to the loaded image. If you can pls help me to find the code for read and load all the images at once. thanks

Réponse acceptée

Ashish Uthama
Ashish Uthama le 25 Jan 2011
If the files follow an order sequence of names, you can use the document example here to build your code.
You would have to replace the imread/ importdata function calls with whatever function you use to read these 3d images.
I would recommend processing the images one at a time rather than loading all of them 'at once' (least you hit some memory constraints). You can do that by directly processing the data inside the loop in the above example instead of storing it in a cell array.

Plus de réponses (2)

Walter Roberson
Walter Roberson le 25 Jan 2011
Please see the FAQ on this topic
You should probably also read this FAQ on working with multiple variables.

Jyothilekshmi
Jyothilekshmi le 2 Juin 2011
You can read either by using uigetfile or by simple loop

Tags

Produits

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by