# Affine Transform Write a function that takes three matching points

Content type
User Generated
Rating
Showing Page:
1/2
Affine Transform. Write a function that takes three
matching points as input, and computes an affine
transformation that maps three points from oneimage to
the matching three points in the second image. So
executing:A = affine_transformation(p1,p2);computes a 2x3
affine transformation, A, that maps the points in p2,
represented as a 2x3 matrix in which each column is a
point, so that they match the points in p1. Write a function
that takes three matching point:s as input, and computes
an affine transformation that maps three points from one
image to the matching three points in the second image.
So executing: Aaffine_transformation (pl,p2); computes a
2x3 affine transformation, A, that maps the points in p2,
represented as a 2x3 matrix in which each column is a
point, so that they match the points in pl = attine
transtormation(p1 , p2); 1.
Solution
% This function finds the affine transform that best relates
the input
% points, p1 and p2
% In: p1, input points
% In: p2, input points
% Out: A, the 2x3 transformation matrix
function [ A ] = affine_transformation( p1, p2 )

Showing Page:
2/2

Unformatted Attachment Preview
Affine Transform. Write a function that takes three matching points as input, and computes an affine transformation that maps three points from oneimage to the matching three points in the second image. So executing:A = affine_transformation(p1,p2);compute s a 2x3 affine transformation, A, that maps the points in p2, represented as a 2x3 matrix in which each column is a point, so that they match the points in p1. Write a function that takes three matching point:s as input, and computes an affine transformation that maps three points from one image to the matching three points in the second ima ...
Purchase document to see full attachment
User generated content is uploaded by users for the purposes of learning and should be used following Studypool's honor code & terms of service.

Anonymous