next up previous
Next: Stage II - pattern Up: Processing of photos Previous: Processing of photos

Stage I - adjusting the image-processing parameters

First of all, the ,,-p'' option is required. The program will smooth out the image with the Gaussian 5x5 mask (sigma = 1.4) and extract edges with the Sobel masks. In this stage you'll probably not get the desired effect at once, so use the option ,,-j'' to disable pattern detection and noise removal, which usually takes most of the total operating time of the program. Secondly, disable polygon construction (set ,,-n'') - we're not sure the image is already good enough. The last thing you should set is the name of the file, where the processed image will be saved (,,-i'').
$ ./png2xp2 -p -j -n -i {processed_png_image} {input_png_image}

When this is finished, view the output image and decide whether it's what you want. If not, adjust the treshold parameter and run again.

When you're done adjusting, you can edit the image with your favourite graphics editor, removing all the stuff you don't want in the map.



Piotr Kamisiński 2005-05-12