i have a dataset of images with name 1(1),1(2),..,1(10) and want to read the image one by one...how should i apply 'for loop' to read the image one by one

 Accepted Answer

4 Comments

thnks...its working.. bt now the problem is, i run my code for each image bt dont know how to store the result individually
e.g.let for the 1st image in directory, i got a matrix of 123*128 as a result and store in 'a' variable and for 2nd image, it is of 234*128, then 'a' contains the result of 2nd image instead of 1st one
If "J" is your loop counter (image number), then
a{J} = .... %the image data
Notice the curly-brackets.
i got it...thnks a lot.. i was using this one ().

Sign in to comment.

More Answers (0)

Categories

Find more on Images in Help Center and File Exchange

Tags

Community Treasure Hunt

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

Start Hunting!