Thanks a lot to both of you for very helpful hints. I am going to evaluate both solutions. best regards, Dominik -- Dominik Szczerba, Ph.D. Computer Vision Lab CH-8092 Zurich http://www.vision.ee.ethz.ch/~domi