Changing ppi image resolution
2 ビュー (過去 30 日間)
古いコメントを表示
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 件のコメント
回答 (1 件)
Image Analyst
2019 年 2 月 4 日
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 件のコメント
Image Analyst
2019 年 2 月 7 日
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.
参考
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!