How to export the data corresponding to the new pixel size?

조회 수: 1 (최근 30일)
Francesco
Francesco 2020년 9월 22일
댓글: Francesco 2020년 9월 23일
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

답변 (1개)

Rik
Rik 2020년 9월 23일
  댓글 수: 5
Rik
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.
Francesco
Francesco 2020년 9월 23일
Awesome. Thanks for your help. Solved it.

댓글을 달려면 로그인하십시오.

카테고리

Help CenterFile 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!

Translated by