Code for the paper "An improved Geometric Approach for Palette-based Image Decomposition and Recoloring"
The following setup steps are developed and tested on MacOS High Sierra 10.13.6 and with minimum requirements of CMake 3.12 and C++ 14 standard.
Used Libs:
$ cd <palette-refine>
$ cmake .
$ make
directly use a toy example
$ ./palette_refine
or
$./palette_refine [OPTION...] [pic] [obj] [prefix]
-p, --pic arg original picture
-o, --obj arg convex hull .obj
-f, --prefix arg prefix
-s, --sample arg number of samples
-c, --option arg center point selection method
-r, --ratio arg ratio between neighbor_point and random points
-l, --lambda arg lambda
-i, --iter arg number of iteration
-u, --unique arg unique parent of a point
-h, --help Print help