Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. Other Discussions
  3. IT & Infrastructure
  4. Relevant to Image processing

Relevant to Image processing

Scheduled Pinned Locked Moved IT & Infrastructure
algorithmsdata-structures
2 Posts 2 Posters 1 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • K Offline
    K Offline
    Khaniya
    wrote on last edited by
    #1

    Hi I have images with white background and object is in black. Object (Polygon) is in 2D. Using Image processing I need array of p(x, y) location of object edge. As mention Image is black & white. I am looking for generalize algorithm so it can be work for any object (Polygon). Any Suggestion Thanks All

    L 1 Reply Last reply
    0
    • K Khaniya

      Hi I have images with white background and object is in black. Object (Polygon) is in 2D. Using Image processing I need array of p(x, y) location of object edge. As mention Image is black & white. I am looking for generalize algorithm so it can be work for any object (Polygon). Any Suggestion Thanks All

      L Offline
      L Offline
      Lost User
      wrote on last edited by
      #2

      As far as I know you will have to start at one corner and then traverse each pixel checking its colour. When the colour changes from white to black you have discovered a leading edge, then when it next changes from black to white, you have a trailing edge. Once you have captured all the edge points you may want to order them in some way to optimise drawing, e.g. by figuring out all the straight lines.

      MVP 2010 - are they mad?

      1 Reply Last reply
      0
      Reply
      • Reply as topic
      Log in to reply
      • Oldest to Newest
      • Newest to Oldest
      • Most Votes


      • Login

      • Don't have an account? Register

      • Login or register to search.
      • First post
        Last post
      0
      • Categories
      • Recent
      • Tags
      • Popular
      • World
      • Users
      • Groups