Implementation of paper: A Fuzzy Approach to Digital Image Warping
MacOS:
-
Install Qt and Eigen3
brew install qt brew install eigen
-
Generate .pro file
qmake -project QT+=widgets
-
Edit .pro file, add the header files location of Eigen to INCLUDEPATH, use brew info eigen to see where eigen is. Note: there is a space between '.' and eigen header files' path:
INCLUDEPATH += . /usr/local/Cellar/eigen/3.3.5/include/eigen3
-
Generate makefile:
qmake
-
Compile:
make
Demo:
Note:
- Number of source polygon's vertices should >= Number of target polygon's vertices
- You may get wrong points mapping if you draw 2 polygons in the opposite direction. e.g. draw the source polygon clockwise and the target polygon anti-clockwise.