Changing ppi image resolution
2 vues (au cours des 30 derniers jours)
Afficher commentaires plus anciens
Let's IMG be an image with 200ppi pixel resolution. After some image processing I want to write the modified image back to disk with 300ppi pixel resolution. Apparently there is no way using the Image Processing Tool Box for doing this in a simple manner, e.g. just by setting some proper parameter in imwrite or imresize or any other related function to the desired pixel resolution.
WolVo
0 commentaires
Réponses (1)
Image Analyst
le 4 Fév 2019
An image is just a bunch of pixels - a numerical array - with no spatial calibration unless you interpret it to have one.
If you want 1.5 times as many pixels to cover your field of view, why not just use imresize():
outputImage = imresize(inputImage, 1.5);
2 commentaires
Image Analyst
le 7 Fév 2019
MATLAB is more of a programming environment and doesn't have a lot of interactive tools like ImageJ does, where you can specify a spatial calibration and have it automatically apply to the various tools. That would be nice, though I don't use the interactive applets built in to the MATLAB Apps tab that much, other than the Color Thresholder.
If you want the ppi written into the EXIF or IPTC metadata with the image in a disk file, I think there are options to do that, especially with the TIFF class.
Voir également
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!