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

1 visualización (últimos 30 días)
Francesco
Francesco el 22 de Sept. de 2020
Comentada: Francesco el 23 de Sept. de 2020
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

Respuestas (1)

Rik
Rik el 23 de Sept. de 2020
doc imresize
  5 comentarios
Rik
Rik el 23 de Sept. de 2020
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 el 23 de Sept. de 2020
Awesome. Thanks for your help. Solved it.

Iniciar sesión para comentar.

Categorías

Más información sobre Read, Write, and Modify Image en Help Center y File Exchange.

Etiquetas

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by