I am working on face recognition as my project. I got some codes from file exchange but while running them i am getting same error again and again. That error indicates " Error using imread at 363 ".can anybody help me out?
1 view (last 30 days)
Show older comments
??? Error using ==> imread at 363 File "c3.jpg" does not exist.
0 Comments
Answers (1)
Image Analyst
on 19 Jan 2013
That file does not exist. Are you using the debugger? How did you construct the filename? Did you do it like this:
baseFileName = 'c3.jpg';
% yourFolder is whatever folder c3.jpg lives in.
fullFileName = fullfile(yourFolder, baseFileName);
if exist(fullFileName, 'file')
grayImage = imread(fullFileName);
else
message = sprintf('The file %s does not exist', fullFileName);
uiwait(warndlg(message));
end
0 Comments
See Also
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!