필터 지우기
필터 지우기

How to import the image with the number.

조회 수: 5 (최근 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

추가 답변 (0개)

카테고리

Help CenterFile Exchange에서 Convert Image Type에 대해 자세히 알아보기

태그

Community Treasure Hunt

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

Start Hunting!

Translated by