next up previous
Next: Testing on a local Up: Processing of photos Previous: Stage I - adjusting

Stage II - pattern detection, noise removal and polygon contruction

In this stage we're ready for conversion. First though, the image must be checked for flaws, which could make proper conversion impossible. A simple noise removal is also performed. All figures, which consist of less than the set (the ,,-a'' option) number of pixels, are removed from the image. Now the image is black&white, so you should remove the ,,-p'' option. To enable pattern detection and noise removal, remove the option ,,-j''. Saving the image is also unnecessary now, so remove the ,,-i'' option. Finally, we want to construct polygons, so you should remove ,,-n''.
$ ./png2xp2 {input_png_image} > {output_xp2_file}

The ,,test'' subdirectory of the source tree contains example PNG images you can try to convert.



Piotr Kamisiński 2005-05-12