フィルターのクリア

Info

この質問は閉じられています。 編集または回答するには再度開いてください。

Issue with reading images (video frames) from a folder?

1 回表示 (過去 30 日間)
Priyank Goel
Priyank Goel 2021 年 7 月 12 日
閉鎖済み: Walter Roberson 2021 年 7 月 12 日
I am trying to read images from scene_0001.bmp to scene_0062.bmp for Proper orthogonal decomposition. I am getting no output.
% Import the images from folder. The images are extracted from the Schlieren
% video for wedge_4_68 at Mach 2.5.
data = [];
% if strcmp(example,'cylinder')
directory = '4_68_image';
count = 1;
while exist(sprintf('%s/scene_%0.4d.bmp',directory,count)) ~= 0
data(:,:,count) = imread(sprintf('%s/scene_%0.4d.bmp',directory,count));
count = count +1;
end
r = size(data,1); c = size(data,2);
% Transform the data into column vectors.
data=reshape(data,r*c,size(data,3));

回答 (0 件)

この質問は閉じられています。

製品


リリース

R2020b

Community Treasure Hunt

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

Start Hunting!

Translated by