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. General Programming
  3. C#
  4. Need Help: Identifying an object within a grey scale '.jpg' image

Need Help: Identifying an object within a grey scale '.jpg' image

Scheduled Pinned Locked Moved C#
data-structureshelptutorial
3 Posts 2 Posters 0 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.
  • D Offline
    D Offline
    DavidEccles
    wrote on last edited by
    #1

    Hello, I am fairly new to programming and was hoping someone might have a method for identifying an object within a grey scale '.jpg' image. The object is might lighter than the surrounding area. I am unsure how to locate the object and highlight it on the image. I thought I could create an array of pixels that are adjacent to each other and share a similar grey scale. But this method seems clunky as i need to observe every individual pixel and i am unable to find a method of observing individual pixels that does not use 'unsafe'. If anyone would be able to help me that would be fantastic. Thank you very much for your time, David

    S 1 Reply Last reply
    0
    • D DavidEccles

      Hello, I am fairly new to programming and was hoping someone might have a method for identifying an object within a grey scale '.jpg' image. The object is might lighter than the surrounding area. I am unsure how to locate the object and highlight it on the image. I thought I could create an array of pixels that are adjacent to each other and share a similar grey scale. But this method seems clunky as i need to observe every individual pixel and i am unable to find a method of observing individual pixels that does not use 'unsafe'. If anyone would be able to help me that would be fantastic. Thank you very much for your time, David

      S Offline
      S Offline
      Swati Khanna
      wrote on last edited by
      #2

      Are you trying to extract certain object from the image after converting ur colored img to gray scale?

      D 1 Reply Last reply
      0
      • S Swati Khanna

        Are you trying to extract certain object from the image after converting ur colored img to gray scale?

        D Offline
        D Offline
        DavidEccles
        wrote on last edited by
        #3

        No, the image is black and white to begin with. I think I have solved the problem now anyway. Thank you fro your time.

        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