A tutorial on the use of OpenCV remap function
The code of this repository demonstrates the use of the remap function. It creates a waving flag effect by applying the remap function on the axes of an image.
The code is explained here
I have added python versions of the same code. Here is what they are doing
Stay away from this one! This is just to indicate how slow matrix operations can be without the use of numpy
This one uses numpy operations for creating the mapping arrays with the for loops and it is really fast
Like the previous one but uses fixed point representation for the mapping arrays. This makes remap faster
I have timed and compared all the operations above and details are provided [here]