View Full Version : Distance Transform on a QImage

19th January 2010, 13:45
Hey all,

I have a binary image and I would like to preform a distance transform. The metric I want to use is the euclidean distance. How will I proceed?
Thanks in advance

19th January 2010, 22:52
What is distance transform? To do a transform in the sense of a filter, use two for-loops, iterate over x and y of the image and use the pixel-method of Qimage to get the rgb-values of that pixel.

20th January 2010, 09:58
What exactly is your question?
If you know the math you have to apply, then what is the problem you have by applying it, if you don't know the math, this is the wrong place to ask for it.