Skip to content

ccyanxyz/2d_shape_blending

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

16 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

2D Shape Blending

Implementation of paper: A Fuzzy Approach to Digital Image Warping

Compile:

​ MacOS:

  1. Install Qt and Eigen3

    brew install qt
    brew install eigen
  2. Generate .pro file

    qmake -project QT+=widgets
    
  3. 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
    
  4. Generate makefile:

    qmake
    
  5. Compile:

    make
    

Demo:

Note:

  1. Number of source polygon's vertices should >= Number of target polygon's vertices
  2. 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.

Releases

No releases published

Packages

No packages published