Friday, October 18, 2024

Computer Vision - Transformations of Images - Affine Transformation


In affine transformation, all parallel lines in the original image will still be parallel in the output image. To find the transformation matrix, we need three points from the input image and their corresponding locations in the output image. Then
 cv.getAffineTransform will create a 2x3 matrix which is to be passed to cv.warpAffine.

Check the below example, and also look at the points I selected (which are marked in green color)



Code





Display the result of the example




Natural Language Processing service + Generative AI Chatbot + Machine Learning + Mobile App + Web App? Yes, I do provide!


Call me: +84854147015

WhatsApp: +601151992689

https://amatasiam.web.app

Email: ThomasTrungVo@Gmail.Com

No comments:

Post a Comment