Recover Affine Transform

Recently, I wrote code for the following:

Allow the user to mark n corresponding points on two images and recover the best affine transform using these control points.



It basically stores the coordinates of points clicked by the user for the first image.


It basically stores the coordinates of points clicked by the user for the second image.
After getting the coordinates, X =,B) is performed to get the required six values, followed by applying the recovered matrix to the original image.


I have tested 3 transformations namely rotation, translation and scaling.
The sequence of output images is as follows:
1. original input image.
2. transformed input image.
3. output of applying recovered matrix using corresponding points on the original input image.




Code can be accessed using this repository.





MS Thesis Student, CVGL, LUMS

Love podcasts or audiobooks? Learn on the go with our new app.

Recommended from Medium

Discovering NLU in Cloud Pak for Data

Getting model predictions from Vertex AI and how it compares to AI Platform

10: Image (Chromaticity) Segmentation

News in Quantum Machine Learning

Five Basic Concepts in Machine Learning - Which One You Want to Know?

Intelligent computing in Snowflake

Top NLP Trends and Predictions 2022: is NeuralSpace set up for the future of NLP?

Dynamic RCNN — Towards High-Quality Object Detection via Dynamic Training

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store
Talha Hanif Butt

Talha Hanif Butt

MS Thesis Student, CVGL, LUMS

More from Medium

Getting Started with a Psychotherapist

5 Ways to Become Fluent in French

The Anti-Pep Pep Talk

The image shows a wave coming onto the shore of a beach from the top left of the frame. The beach is comprised of smoother, rounder Michigan rocks and there are weathered sticks of some kind of brush standing upright on the shore near the middle right of the frame. The sky is overcast with a stormy blue hue.

Optimising happiness