フィルターのクリア

Info

この質問は閉じられています。 編集または回答するには再度開いてください。

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

1 回表示 (過去 30 日間)
Jason Malizia
Jason Malizia 2016 年 6 月 30 日
閉鎖済み: MATLAB Answer Bot 2021 年 8 月 20 日
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 件のコメント
Samuel Vergara
Samuel Vergara 2016 年 6 月 30 日
If there a built in function, maybe is easier transform your data and uses that.

回答 (0 件)

この質問は閉じられています。

Community Treasure Hunt

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

Start Hunting!

Translated by