问题
I am having 2900 images in this path G:\newdatabase\ It is taking too much time to read images.For dot product also it is taking too much time.
Questions:
1.Is there any alternative for imread command which increases performance?
2.Is there any alternative for dot command which increases performance?
Source code i tried:
srcFiles = dir('G:\newdatabase\*.jpg'); % the folder in which ur images exists
for b = 1 : length(srcFiles)
filename = strcat('G:\newdatabase\',srcFiles(b).name);
Imgdata = imread(filename);
Source code i tried:
for i = 1:aa
pare = dot(NormImage,u(:,i));
p = [p; pare];
end
来源:https://stackoverflow.com/questions/24031650/is-there-alternative-for-imread-command-to-reduce-delay-in-matlab-program