January 2018
Intermediate to advanced
268 pages
6h 20m
English
As we discussed earlier, we are defining control points. We just need three points to get the affine transformation matrix. We want the three points in src_points to be mapped to the corresponding points in dst_points. We are mapping the points as shown in the following image:

To get the transformation matrix, we have a function called in OpenCV. Once we have the affine transformation matrix, we use the function to apply this matrix to the input image.
Following is the input image:

If you run the preceding code, the output ...
Read now
Unlock full access