How to export the data corresponding to the new pixel size?
1 次查看(过去 30 天)
显示 更早的评论
Hi,
I have image data with 100*100 (pixel x pixel) and the pixel size is 10. Each pixel has a resulted value e.g., temperature
Now I would like to change the pixel size to 5 and still keep the same size of the image.
I wonder how to get the new image data (X, Y, and temperature) corresponding to the pixel size 5.
I really appreciate your help.
Thanks
0 个评论
回答(1 个)
Rik
2020-9-23
doc imresize
5 个评论
Rik
2020-9-23
Then you don't actually have an image, but gridded (or scattered) X,Y,Z data. You can either interpolate with the normal interpolation tools, or convert your coordinates to a grid of integer positions and use that to fill a matrix so you can use imresize.
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Read, Write, and Modify Image 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!