Remove antialias to improve tracing
Posted: 2015-05-13T03:32:37-07:00
Hi,
we are trying to trace some raster images using potrace.
So here is the flow we use :
1.get a cleaned image
2. remove white
3. get histogram
4. for x main colors: (we are limited to the number of color (print costs))
a. extract the current color
b. convert to black
c. make bitmap
d. trace with potrace & fill to the current color
5. merge files
--> we get an eps or svg with x paths , one path per color found in the main colors
this is working fine..
But here is the thing, the merged file has some white lines between each paths.
we think it's due to the antialias, because the color cyan betwee blue and green is not in the main colors so it's ignored,
thus here is my question :
Is there a way to get the 'outer pixel' of a specific color when extracting this color to another file ?
--> http://s9.postimg.org/lb6jm4u1b/Capture.png
here is the cmd we use to extract the color :
here is the original image http://s21.postimg.org/wfna00yhj/logo_multi_color.jpg
thank you in advance !
we are trying to trace some raster images using potrace.
So here is the flow we use :
1.get a cleaned image
2. remove white
3. get histogram
4. for x main colors: (we are limited to the number of color (print costs))
a. extract the current color
b. convert to black
c. make bitmap
d. trace with potrace & fill to the current color
5. merge files
--> we get an eps or svg with x paths , one path per color found in the main colors
this is working fine..
But here is the thing, the merged file has some white lines between each paths.
we think it's due to the antialias, because the color cyan betwee blue and green is not in the main colors so it's ignored,
thus here is my question :
Is there a way to get the 'outer pixel' of a specific color when extracting this color to another file ?
--> http://s9.postimg.org/lb6jm4u1b/Capture.png
here is the cmd we use to extract the color :
Code: Select all
convert xx.png -alpha set ( +clone -transparent #FF0000 ) -compose DstOut -composite yy.png
thank you in advance !