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..

8 visualizaciones (últimos 30 días)
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

Thorsten
Thorsten el 20 de Feb. de 2013
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)

Rasleen Kaur
Rasleen Kaur el 3 de Jul. de 2018
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 Modify Image Colors en Help Center y File Exchange.

Community Treasure Hunt

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

Start Hunting!

Translated by