C++ project for reconstructing images using Bézier curves and color diffusion constrained by those curves.
Inspired by the work of Orzan et al.. Vectorization algorithms are adapted from this repository.
- Image reconstruction with Bézier curves
- Color diffusion along vectorized curves
- Vectorization algorithms for curve extraction
- Modern GUI with ImGui and Qt
- Uses OpenGL for rendering
All dependencies are included in the Libs
folder:
- ImGui: For the graphical user interface
- OpenCV: For edge detection (built with MSVC 2019 64-bit)
- Eigen: For vectorization and linear algebra
- Install CMake 3.25.1 or newer.
- Install Visual Studio 2022 with the MSVC C++ v143 Compiler.
- Install Qt 6.7.3 MSVC2022 64bit.
- Set the environment variable
Qt6_DIR
toC:\Qt\6.7.3\msvc2022_64
. - Clone the repository:
cmd git clone https://github.com/berkbavas/DiffusionCurveRenderer.git
- Create and enter the build directory:
cmd mkdir Build cd Build
- Run CMake:
cmd cmake ..
- Open
DiffusionCurveRenderer.sln
in Visual Studio 2022. - Build and run the project.
Vectorization.mp4
CurveEditingMode.mp4
This project is licensed under the MIT License.