How can i change multiple 2d images into corresponding 1d vectors?
1 view (last 30 days)
Show older comments
Hi,i am currently working on a project concerning,but i am pretty much a newbie at Matlab programming. Coming to the problem at hand,let me show you what I have done till now:
clear all; clc; for i=1:10 filename=dir('C:\MATLAB\Image Database\*.pgm'); end
imagename1=cell(length(filename),1);
for i=1:10
imagename1{i}=imresize(imread(strcat('C:\MATLAB\Image Database\',filename(i).name)),[50 50]);
end
I have attempted to read multiple images from a folder called Image Database.Having done that, I stored each of these images after resizing them, into a cell structure. I would like to convert each 50X50 uint8 image occupying a cell,into a 1D image vector.I am stuck here and would really appreciate some help. P.S. The 1D image vectors would then be stored in one structure. Thanks!
0 Comments
Answers (0)
See Also
Categories
Find more on Convert Image Type in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!