2D Affine Transform on 2D

1 次查看(过去 30 天)
Chris E.
Chris E. 2016-3-9
I'm attempting to use Affine Transform on an image and x,y coordnates. I made fake data that show the 4 corners of the image and the x,y points. The image points need to be aligned/scaled to fit the x,y points in meters.
%this is the corners of the image:
FC1 = [1 1;
1 1225;
3765 1;
3765 1225];
plot(FC1(:,1),FC1(:,2),'ob')
hold on
%This is the corners of the x,y points (in meters):
FC2 = [-2.2766 11.73447;
1.47 -11.79;
72.266 23.3821;
75.934 0];
plot(FC2(:,1),FC2(:,2),'or')
hold off
My hope is that I can scale down the image into the points that represent meters. It is like taking 2 images and scaling them and aligning the corners together. I'm not sure how to use the Affine Transform though... Thank you for the help.

回答(0 个)

类别

Help CenterFile Exchange 中查找有关 Geometric Transformation and Image Registration 的更多信息

Community Treasure Hunt

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

Start Hunting!

Translated by