[u,v] = transformPointsInverse(tform,x,y)
applies the inverse transformation of 2-D geometric transformation
tform to the points specified by coordinates
x and y.
[u,v,w] = transformPointsInverse(tform,x,y,z)
applies the inverse transformation of 3-D geometric transformation
tform to the points specified by coordinates
x, y, and
z.
U = transformPointsInverse(tform,X)
applies the inverse transformation of tform to the input
coordinate matrix X and returns the coordinate matrix
U. transformPointsInverse maps the
kth point X(k,:) to the
point U(k,:).
Specify the packed (x,y) coordinates of five input points. The packed coordinates are stored in a 5-by-2 matrix, where the x-coordinate of each point is in the first column, and the y-coordinate of each point is in the second column.
XY = [10 15;11 32;15 34;2 7;2 10];
Define the inverse mapping function. The function accepts and returns points in packed (x,y) format.
inversefn = @(c) [c(:,1)+c(:,2),c(:,1)-c(:,2)]
inversefn = function_handle with value:
@(c)[c(:,1)+c(:,2),c(:,1)-c(:,2)]
Create a 2-D geometric transform object, tform, that stores the inverse mapping function.
Specify the packed (x,y,z) coordinates of five input points. The packed coordinates are stored as a 5-by-3 matrix, where the first, second, and third columns contain the x-, y-, and z- coordinates,respectively.
x — x-coordinates of points to be transformed m-by-n or
m-by-n-by-p
numeric array
x-coordinates of points to be transformed, specified as
an m-by-n or
m-by-n-by-p
numeric array. The number of dimensions of x matches
the dimensionality of tform.
Data Types: single | double
y — y-coordinates of points to be transformed m-by-n or
m-by-n-by-p
numeric array
y-coordinates of points to be transformed, specified as
an m-by-n or
m-by-n-by-p
numeric array. The size of y must match the size of
x.
Data Types: single | double
z — z-coordinates of points to be transformed m-by-n-by-p
numeric array
z-coordinates of points to be transformed, specified as
an m-by-n-by-p
numeric array. z is used only when
tform is a 3-D geometric transformation. The size
of z must match the size of
x.
Data Types: single | double
X — Coordinates of points to be transformed l-by-2 or
l-by-3 numeric array
Coordinates of points to be transformed, specified as an
l-by-2 or
l-by-3 numeric array. The number
of columns of X matches the dimensionality of
tform.
The first column lists the x-coordinate of each point
to transform, and the second column lists the
y-coordinate. If tform represents a
3-D geometric transformation, X has size
l-by-3 and the third column lists
the z-coordinate of the points to transform.
u — x-coordinates of points after transformation m-by-n or
m-by-n-by-p
numeric array
x-coordinates of points after transformation, returned
as an m-by-n or
m-by-n-by-p
numeric array. The number of dimensions of u matches
the dimensionality of tform.
Data Types: single | double
v — y-coordinates of points after transformation m-by-n or
m-by-n-by-p
numeric array
y-coordinates of points after transformation, returned
as an m-by-n or
m-by-n-by-p
numeric array. The size of v matches the size of
u.
Data Types: single | double
w — z-coordinates of points after transformation m-by-n-by-p
numeric array
z-coordinates of points after transformation, returned
as an m-by-n-by-p
numeric array. The size of w matches the size of
u.
Data Types: single | double
U — Coordinates of points after transformation numeric array
Coordinates of points after transformation, returned as a numeric array.
The size of U matches the size of
X.
The first column lists the x-coordinate of each point
after transformation, and the second column lists the
y-coordinate. If tform represents a
3-D geometric transformation, the third column lists the
z-coordinate of the points after
transformation.
You can also select a web site from the following list:
How to Get Best Site Performance
Select the China site (in Chinese or English) for best site performance. Other MathWorks country sites are not optimized for visits from your location.