Is there alternative for imread command to reduce delay in matlab program?

社会主义新天地 提交于 2019-12-04 05:56:48

问题


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

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!