herbostroitel This script does simple egde following algorithm. U need .bmp grayscale file as input. This file also has to have a border of 1 white pixel at every side.