How to import the image with the number.

1 回表示 (過去 30 日間)
Kwanghun Choi
Kwanghun Choi 2018 年 11 月 20 日
コメント済み: Kwanghun Choi 2018 年 11 月 20 日
Hello. I have some problem to import the image.
The name of my image file is included by the year and month like '2011_01.tif' (It means this image file is taken on Jan. 2011).
This file is from Jan. 2011 to Oct. 2018, so there are too many files.
I do not know how to import this images in regular order. If you have some method for this, please answer me.

採用された回答

Stephen23
Stephen23 2018 年 11 月 20 日
編集済み: Stephen23 2018 年 11 月 20 日
Luckily those dates use an ISO 8601 date format, so you can simply import them sorted into character order:
S = dir('*.tif')
F = sort({S.name});
N = numel(F);
C = cell(1,N);
for k = 1:N
C{k} = imread(F{k});
end
  1 件のコメント
Kwanghun Choi
Kwanghun Choi 2018 年 11 月 20 日
Thanks for your answer!!

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

その他の回答 (0 件)

カテゴリ

Help Center および File ExchangeRead, Write, and Modify Image についてさらに検索

タグ


Translated by