Results 1 to 3 of 3

Thread: identifying the position of a circle in image

  1. #1
    Join Date
    Jan 2012
    Posts
    20
    Thanks
    3

    Default identifying the position of a circle in image

    Hi all,

    i have an image of a car with bulbs (a circle) , now i want to make the bulbs on or off (painting the circle) by painting red and green based on some condition, but i am failing to understand to get the boundary position of the bulbs to fill the area in order to paint using
    Qt Code:
    1. image.setpixel(int x, int y, QRGB);
    To copy to clipboard, switch view to plain text mode 

    could someone please suggest me some idea on this how to get the boundary position.

    thanks and regards,
    satya

  2. #2
    Join Date
    Mar 2009
    Location
    Brisbane, Australia
    Posts
    7,729
    Thanks
    13
    Thanked 1,610 Times in 1,537 Posts
    Qt products
    Qt4 Qt5
    Platforms
    Unix/X11 Windows
    Wiki edits
    17

    Default Re: identifying the position of a circle in image

    Not sure what this has to do with Qt.

    If it is single static image then the problem is best solved by use your image editor to determine the centre and radius of the circular headlight areas and coding that into your program.

    If this has to work with arbitrary images then you are after edge detection, segmentation or similar algorithms. You might find something you can use in OpenCv. It is not trivial: not all headlights are round, not all cars have visible headlights, not all images contain cars etc.

  3. #3
    Join Date
    Jan 2012
    Posts
    20
    Thanks
    3

    Default Re: identifying the position of a circle in image

    Quote Originally Posted by ChrisW67 View Post
    Not sure what this has to do with Qt.
    If it is single static image then the problem is best solved by use your image editor to determine the centre and radius of the circular headlight areas and coding that into your program.
    yes it is a single static image. may be i am not clear in my question.

    thanks and regards,
    satya

Similar Threads

  1. Replies: 7
    Last Post: 25th October 2009, 07:03
  2. Identifying signal emitter
    By alan lenton in forum Qt Programming
    Replies: 4
    Last Post: 7th October 2009, 17:16
  3. Identifying QThreads
    By TheGrimace in forum Newbie
    Replies: 2
    Last Post: 18th March 2008, 16:39
  4. Replies: 1
    Last Post: 3rd October 2007, 07:34
  5. Identifying file when filename is not enough
    By drhex in forum Qt Programming
    Replies: 4
    Last Post: 9th November 2006, 20:44

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.