Image warper (warpit) Ver. 1.0.0
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.
NOTE: This code/program has been tested only on Mac OS!
Run the code
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.
NOTE: For Windows uncomment the corresponding lines and comment the Mac OS related lines!
First method (open terminal):
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!
If you find any bugs, please report them to me, and I will try to fix them as soon as possible!