필터 지우기
필터 지우기

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