필터 지우기
필터 지우기

Why do i get this error ??

조회 수: 1 (최근 30일)
dp sb
dp sb 2015년 7월 21일
댓글: dp sb 2015년 7월 21일
I am trying to run a batch process and i get this error while reading, why is that ??
Code:
files = dir('C:\Project\Research\Image\Reel_3\*.tif');
for k = 1:numel(files)
I = imread(files(k).name);
.
.
.
Error
Error using imread (line 349)
File "00585_1u.tif" does not exist.
Error in FaultImageFind (line 3)
I = imread(files(k).name)
Those files do exist in the folder and i could get all the info using files(), files().name but i just wonder why it throws an error while reading ? Could be a silly mistake but can't figure it out!!

채택된 답변

Walter Roberson
Walter Roberson 2015년 7월 21일
folder = 'C:\Project\Research\Image\Reel_3';
files = dir(fullfile(folder, '*.tif'));
I = imread(fullfile(folder, files(k).name));
  댓글 수: 1
dp sb
dp sb 2015년 7월 21일
Thank You!

댓글을 달려면 로그인하십시오.

추가 답변 (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