This program allows you to morph a 2D image as shown in the screenshots section below. The implementation of the warper is based on subdivision of the mesh underlying a polygon around the image and generalized barycentric coordinates.
In order to run the program, do the following:
- Install macports, then open terminal and type:
sudo port install qt5-mac
sudo port install qt5-creator-mac
- Open warpit.pro and edit the paths to the corresponding folders on the lines 26 and 34-35.
- Install Qt 5 and Qt Creator from here, when installing choose the version with Open GL.
- Open warpit.pro and edit the paths to the corresponding folders on the lines 29 and 38-39.
First method (open terminal):
cd path_to/warpit/
mkdir bin
cd bin
qmake ..
make -j7
open warpit.app
Second method (go the project folder):
a. Configure the file warpit.pro with Qt Creator (just open it and follow the instructions)
b. Choose Release vesion in the left bottom corner
c. Build and run the program (cmd + R)
a. Go to the project folder
b. Configure the file warpit.pro with Qt Creator (just open it and follow the instructions)
c. Choose Release version in the left bottom corner
d. Build and run the program (ctrl + R)
NOTE: The program can crash if you choose too many subdivision steps due to the lack of the available memory!
Main window with the loaded texture
Load the target polygon and morph the image
An example with the shown mesh on the target polygon
If you find any bugs, please report them to me, and I will try to fix them as soon as possible!