Results 1 to 3 of 3

Thread: Distance Transform on a QImage

  1. #1
    Join Date
    Jan 2010
    Posts
    1
    Thanks
    1
    Qt products
    Qt4
    Platforms
    Windows

    Question Distance Transform on a QImage

    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

  2. #2
    Join Date
    Jan 2006
    Location
    Frankfurt
    Posts
    500
    Thanks
    1
    Thanked 52 Times in 52 Posts
    Platforms
    MacOS X Unix/X11

    Default Re: Distance Transform on a QImage

    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.
    It's nice to be important but it's more important to be nice.

  3. The following user says thank you to axeljaeger for this useful post:

    Franckesh (20th January 2010)

  4. #3
    Join Date
    Jan 2006
    Location
    Munich, Germany
    Posts
    4,714
    Thanks
    21
    Thanked 418 Times in 411 Posts
    Qt products
    Qt3 Qt4 Qt5 Qt/Embedded
    Platforms
    Unix/X11 Windows

    Default Re: Distance Transform on a QImage

    @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.
    ==========================signature=============== ==================
    S.O.L.I.D principles (use them!):
    https://en.wikipedia.org/wiki/SOLID_...iented_design)

    Do you write clean code? - if you are TDD'ing then maybe, if not, your not writing clean code.

Similar Threads

  1. Replies: 10
    Last Post: 8th October 2012, 19:18
  2. Replies: 1
    Last Post: 5th January 2010, 21:00
  3. use Latitude and longitude to calculate distance?
    By lengshuang in forum General Programming
    Replies: 6
    Last Post: 11th May 2009, 14:06
  4. pixel distance of gaps in scaleWidget
    By KosyakOFF in forum Qwt
    Replies: 1
    Last Post: 3rd November 2008, 10:02
  5. Double click distance
    By jbd in forum Qt Programming
    Replies: 3
    Last Post: 28th December 2007, 22:13

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Digia, Qt and their respective logos are trademarks of Digia Plc in Finland and/or other countries worldwide.