Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
tree: 1b686fe866
Fetching contributors…

Cannot retrieve contributors at this time

24 lines (23 sloc) 0.652 kb
%GETPERSPECTIVETRANSFORM Calculates a perspective transform from four pairs of the corresponding points
%
% T = cv.getPerspectiveTransform(src, dst)
%
% ## Input
% * __src__ 4-by-2 row vectors of coordinates of quadrangle vertices in the
% source image.
% * __dst__ 4-by-2 row vectors of the corresponding quadrangle vertices in
% the destination image.
%
% ## Output
% * __T__ 3-by-3 transformation matrix
%
% The function calculates the 3 x 3 matrix of a perspective transform so that
%
% t_i * [X_i; X_i; 1] = T * [x_i; y_i; 1];
%
% where
%
% dst(i,:) = [X_i, Y_i], src(i,:) = [x_i, y_i]
%
% See also cv.perspectiveTransform
%
Jump to Line
Something went wrong with that request. Please try again.