imread and imwrite commands showing an error like ' file does not exist '..so is that necessary to add image in matlab??if yes then how it cud be done..plz help..

when i write imread nd imshow command in editor window it shows error that file does not exist..so wat shud i do?? is there any other step to first ADD image and then process it??

 Respuesta aceptada

When your image is stored at some location ('C:\Documents and Settings\yourname\My Documents\images\lena.tif') use
I = imread('C:\Documents and Settings\yourname\My Documents\images\lena.tif');
Or add the directory to Matlab's search path
addpath 'C:\Documents and Settings\yourname\My Documents\images\'
I = imread('lena.tif');

Más respuestas (1)

if you are importing correct path still it isn't working then there must be a problem with colour space of the image. Try importing different image.

Categorías

Más información sobre Convert Image Type en Centro de ayuda y File Exchange.

Community Treasure Hunt

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

Start Hunting!

Translated by