How can I save a image file to a higher resolution that it actually is?
7 views (last 30 days)
Show older comments
I have a image which when saved is of very low resolution. I wanna save that image as it is, but when i display it again i want it in a higher resolution than it's actually saved as. I'm using the code imwrite to save the image. So can you tell me how do I save the image in a higher resolution or display it in a higher resolution for further processing?
0 Comments
Accepted Answer
Image Analyst
on 20 Mar 2015
You can use imresize() to increase the pixel count before you write it out. Note that this does not increase the optical resolution - it will look just as blurry, just bigger.
bigMatrix = imresize(originalMatrix, 4); % Blow up by a factor of 4
imwrite(bigMatrix, filename);
You can also blow up images just on display by using the 'InitialMagnification' input parameter to the imshow() function:
imshow(originalMatrix, 'InitialMagnification', 800);
More Answers (0)
See Also
Products
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!