Borrar filtros
Borrar filtros

Info

La pregunta está cerrada. Vuélvala a abrir para editarla o responderla.

Help with writing code to calibrate Matlab images saved as .fig files

1 visualización (últimos 30 días)
Jason Malizia
Jason Malizia el 30 de Jun. de 2016
Cerrada: MATLAB Answer Bot el 20 de Ag. de 2021
Hi all,
I need to write a code that can transform an image (complete with x, y and c axis data), let's call this image 'needscalib.fig', to another image, called 'calib.fig'. The transformation will involve rotation, scaling, and skewing.
To start with, I know Matlab has built in functions to do this transformation on image files (fitgeotrans and imwarp). However, imwarp does not work on .fig files and I am unsure if fitgeotrans uses the information contained in the axis to solve for the tform matrix. If I can use these scripts, that would be great and help on how to get these scripts to work with .fig files would be very appreciated. Otherwise, I'm at a loss of how to write the script.
Solving for the transformation matrix should be semi-easy. I will use impoint to get the position of several identical points on 'needscalib.fig' and 'calib.fig'. I can then solve for the transformation matrix that will convert the coordinates obtained from 'needscalib.fig' to 'calib.fig' using some type of regression. The question is, how can I use this transformation matrix to move the location of the pixels in 'needscalib.fig' to their appropriate position? One thing to point out is that 'needscalib.fig' and 'calib.fig' will not have the same number of pixels.
-Jason Malizia
  1 comentario
Samuel Vergara
Samuel Vergara el 30 de Jun. de 2016
If there a built in function, maybe is easier transform your data and uses that.

Respuestas (0)

La pregunta está cerrada.

Community Treasure Hunt

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

Start Hunting!

Translated by