I am creating an RGB image and displaying using imshow(). Once the image is displayed, if I save the image as .jpeg, it gets a white background to it and the image dimensions change. How can I keep it to its original dimensions? Attached image is what I got when I saved it as a .jpeg file and the dimensions are 240×170. Whereas the original dimensions of the constituting matrices are 100×100.
MATLAB: How to save an image from imshow() as a .jpeg
rgb image
Best Answer