<< cv_orb ComputerVision cv_pyrdown >>

ComputerVision >> ComputerVision > cv_prespective_transform

cv_prespective_transform

Provides Transformation

Calling Sequence

img_ret=cv_prespective_transform(p1,p2,p3,p4,)

Arguments

p1 /term>

Input Image can be grayscale or rgb

p1

point 1, must be list : example [1,1]

p2

point 2, must be list : example [1,1]

p3

point 3, must be list : example [1,1]

p4

point 4, must be list : example [1,1]

img_ret

return image after transformation

Description

Prespective transform

For perspective transformation, you need a 3x3 transformation matrix. Straight lines will remain straight even after the transformation. To find this transformation matrix, you need 4 points on the input image and corresponding points on the output image. Among these 4 points, 3 of them should not be collinear. Then transformation matrix can be found by this function

Examples

img_ret=cv_prespective_transform(input_image,[1,2],[4,5],[5,6],[2,4])

See Also


Report an issue
<< cv_orb ComputerVision cv_pyrdown >>