Skip to content

This repo contains both matlab and python implementation of using TPS to perform warp given a set of correspondence points.

Notifications You must be signed in to change notification settings

AlanLuSun/TPS-Warp

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Thin-plate-spline (TPS) warp

Warp-image-TPS (python)

  • Using opencv to implement ThinPlateSpline
  • If it happens the error "cv2.createThinPlateSplineShapeTransformer() not found", please install opencv-contrib-python with the command below
pip3 install opencv-contrib-python
# or use below code image for faster download if you are in China
pip3 install opencv-contrib-python -i https://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.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published