How to save imagesc output as image format (.jpg/.png) in MATLAB

11 visualizaciones (últimos 30 días)
Stephen john
Stephen john el 13 de Sept. de 2022
Comentada: Stephen john el 13 de Sept. de 2022
Hello everyone. I hope you are doing well. I have the following dataset . I have created the image using
imagesc command. Now i want to write this image in a folder save .jpg/png format using imwrite without axis
How can i do that
The following figure is attached

Respuestas (1)

Image Analyst
Image Analyst el 13 de Sept. de 2022
If you want the original image saved, with no axes or tick labels, then you can use imwrite(). If you've applied a colormap then you'll have to convert the image to RGB first with ind2rgb and then use imwrite.
  2 comentarios
Stephen john
Stephen john el 13 de Sept. de 2022
@Image Analyst Can you share both the code for this?
Stephen john
Stephen john el 13 de Sept. de 2022
@Image Analyst I am unable to save it Can you please help me in that?

Iniciar sesión para comentar.

Categorías

Más información sobre Image Processing Toolbox en Help Center y File Exchange.

Productos


Versión

R2022a

Community Treasure Hunt

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

Start Hunting!

Translated by