How do I write images to a specific folder ?
Mostrar comentarios más antiguos
Hello! I read 8 pictures (different names) using imread function, obtain edge maps named ED1 to ED8, each edge map corresponding to one image. I wish to write all the edge results to a specific folder C:\Edgeresults. Also, the name of the images should be same as readed image. I tried to imwrite them but saved individually on my directory. How can I achieve this ?
ED1=edge(Imgry1,'canny');
ED2=edge(Imgry2,'canny');
ED3=edge(Imgry3,'canny')
ED4=edge(Imgry4,'canny');
ED5=edge(Imgry5,'canny');
ED6=edge(Imgry6,'canny');
ED7=edge(Imgry7,'canny');
ED8=edge(Imgry8,'canny');
Thanks
2 comentarios
Adam
el 14 de Nov. de 2018
doc fullfile
will let you compose a full file path to prepend to a filename, which you should get in the habit of doing to save things somewhere explicit rather than wherever happens to be the current folder.
Chidiebere Ike
el 14 de Nov. de 2018
Respuesta aceptada
Más respuestas (0)
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!