View Full Version : Distance Transform on a QImage

Franckesh

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

Franckesh

axeljaeger

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.

high_flyer

20th January 2010, 09:58

@franckesh:

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.

Powered by vBulletin® Version 4.2.5 Copyright © 2020 vBulletin Solutions Inc. All rights reserved.