HOW TO SAVE A MATRIX INTO THE IMAGE

HOW TO SAVE THE MATRIX INTO THE IMAGE for example into (.jpg) format

 Accepted Answer

I think you're probably wanting to know about imwrite(). See the help for full documentation.

More Answers (2)

This should work
imwrite(mat2gray(IMAGE),'ImageName.jpg');
Can anyone please help me store the image below in the form of a matrix?
-Deepraj Adhikary

1 Comment

Isn't it already in a matrix after you called imread() to read it in from disk???? Exactly what form is this image starting in?

Sign in to comment.

Categories

Find more on Images in Help Center and File Exchange

Community Treasure Hunt

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

Start Hunting!