フィルターのクリア

How to access images?

1 回表示 (過去 30 日間)
mohammed mahmoud
mohammed mahmoud 2019 年 1 月 15 日
コメント済み: Jan 2019 年 1 月 16 日
I have one folder contain 50K images, I want to cut a group (5000 image) of this images according to indexing numbers. For example [ 6, 9, 2000,40215,...]. How to code such this?
path='E:\CIFAR-10\train';
jpeg_files = dir(fullfile(path,'*.png'));
for cnt = 1 : 50000
I{cnt} = imread(fullfile(path,jpeg_files(cnt).name));
% figure,imshow(I{cnt});
for j=1:5000
if cnt==class1num(1,j)
imwrite(I{cnt},sprintf('%s%d.jpg','0',cnt));
end
end
end
  6 件のコメント
mohammed mahmoud
mohammed mahmoud 2019 年 1 月 16 日
Jan
Jan 2019 年 1 月 16 日
This link does not contain more useful information. I asked some questions for clarifications there also. Please read: How to ask a good question

サインインしてコメントする。

回答 (0 件)

カテゴリ

Help Center および File ExchangeImage Processing Toolbox についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by