How read multiple image to Matlab memory
Afficher commentaires plus anciens
I would like to aks You how can I read a multiple image to Matlab ? I have n foto in Folder on my laptop and I need to put all of them into Matlab memory and then I need to convert image to binary image and after that I need convert all my image to double precision. I try make it with for loop but I have no idea how should to do. All od this steps are needed because I would like to make a Neural Network to Recognize a Road Sing. Now I have something like that:
% B=imread('A6E.png'); %Image 1
% B=im2bw(B);
% B=double(B);
%
% C=imread('A6D.png'); %Image 2
% C=im2bw(C);
% C=double(C);
True is, in this way I need all day to put all of my patterns. Someone give me some advice ?
Thank You.
2 commentaires
Stephen23
le 31 Mai 2018
function results = myvarfcn(var)
image = imread(var);
imBW = im2bw(image);
imDouble = double(imBW);
reimage = reshape(imDouble,40000,1);
results.image = image;
results.imBW = imBW;
results.imDouble = imDouble;
results.reimage = reimage;
end
I have something like this and it is working, but... Answer is 1-by-1 structure with all (4) results. Ok, but how can I upload (all at once) files into this function ? And after that I need one big structure or many structure with results from my files.
For my NN need one Matrix with all patterns.
Thank.
Réponse acceptée
Plus de réponses (1)
Pawel Osadnik
le 31 Mai 2018
0 votes
Catégories
En savoir plus sur Image Arithmetic dans Centre d'aide et File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!