Code for Image Abstraction (cartoon-ification)

Download the Source Code

******************** Requires ***************************

- opencv 2.4.x

********************* USAGE ******************************

Command line format:

image_abstraction [options]

Options:

-I <image_file_name> use image.

-V <video_file_name> use file source.

-h Print this help message

-H Use histogram equalization

-q quantization levels (int)

-n neighborbood size (int)

-p # pyramid downsample (int)

-c color sigma (float)

-s spacial sigma (float)

-e output edge strength (float 0-1)

-t edge threshold (float 0-1)

-O save images

Examples:

./image_abstraction -V <video_file>

./image_abstraction -I <image.jpg>

Examples:

Original

parameters: n=20, s=5, c=5, e=0.6, t=0.3, q=5

Original

parameters: n=10, s=3.0, c=3.0, t=0.2, q=5

./image_abstraction -p 1 -V white-lilies.mp4 -O

Original n=15,s=5,c=5,p=0 n=15,s=3,c=3,p=1

Original n=15, s=3.0, c=3.0, t=0.2

website statistics