필터 지우기
필터 지우기

cant access my image directory?

조회 수: 2 (최근 30일)
Dhines
Dhines 2013년 2월 9일
i created folder my image sets. then i called this images one by one for my coding access..but its not works. pls correct it.
files=dir('D:\M.E project10\train');
for k=1:10
I=imread(k,:);
end
i getting this error: Error in ==> folderimage at 3 I=imread(k,:);

답변 (2개)

Image Analyst
Image Analyst 2013년 2월 9일
Lots wrong there. It's best to just refer you to the FAQ: http://matlab.wikia.com/wiki/FAQ#How_can_I_process_a_sequence_of_files.3F

Jan
Jan 2013년 2월 10일
Do you expect imread(k, :) to know where to find the file? You do not use the files variable inside the loop. but imread gets the loop counter only.
Please copy error messages completely, when you want to get help in the forum. In this case we can guess, that the 2nd input ":" is not accepted by imread. Reading the documentation will be useful: doc imread.

카테고리

Help CenterFile Exchange에서 Image Processing Toolbox에 대해 자세히 알아보기

태그

Community Treasure Hunt

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

Start Hunting!

Translated by