If it happens the error "cv2.createThinPlateSplineShapeTransformer() not found", please install opencv-contrib-python with the command below
pip3installopencv-contrib-python# or use below code image for faster download if you are in Chinapip3installopencv-contrib-python-ihttps://pypi.tuna.tsinghua.edu.cn/simple
There is a bug for function tps.applyTransformation() which only accepts np.float32 data type
TPS-Warp (Matlab)
see mytest.m as an example
Example
For convenience, we also provide an image named "1.jpg" for test TPS warping.
An image warping example
About
This repo contains both matlab and python implementation of using TPS to perform warp given a set of correspondence points.