You can speed up erosions/dilations by aligning the pixels diagonally in memory. That way, every time you compare four new neighbors, two are equal to two of the four you have just visited. _______________________________________________ computer-go mailing list computer-go@xxxxxxxxxxxxxxxxx http://www.computer-go.org/mailman/listinfo/computer-go/