KatyB
KatyB

Reputation: 3980

improving resolution of jpeg images in matlab

I have a jpeg which has reasonable resolution. I am looking for a method of improving the resolution of the image and then exporting it into a pdf file.

Currently I have imported the jpeg:

Img = imread('F:Work\fig.jpg');

From here I was hoping of exporting the figure by using the export_fig function:

https://sites.google.com/site/oliverwoodford/software/export_fig

But I am struggling on generating the figure which is required prior to exporting the image.

Upvotes: 0

Views: 952

Answers (1)

Salain
Salain

Reputation: 752

What part of the figure creation process are you struggling with? The general approach I would use is

Img = imread('F:Work\fig.jpg');
bigImg = imresize(Img,2);
imshow(bigImg);
export_fig test.png -native;

Check Matlab's documentation for different interpolation options that can be used when resizing images.

Upvotes: 1

Related Questions