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
CODE PROJECT For Those Who Code
  • Home
  • Articles
  • FAQ
Community
  1. Home
  2. General Programming
  3. C / C++ / MFC
  4. About Sobel operator in Image Processing

About Sobel operator in Image Processing

Scheduled Pinned Locked Moved C / C++ / MFC
tutorial
3 Posts 3 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.
  • S Offline
    S Offline
    Sweety08
    wrote on last edited by
    #1

    How to apply the sobel operator to each image and display the edge images

    D C 2 Replies Last reply
    0
    • S Sweety08

      How to apply the sobel operator to each image and display the edge images

      D Offline
      D Offline
      David Crow
      wrote on last edited by
      #2

      Sweety08 wrote:

      How to apply the sobel operator to each image...

      Just like you would any other filter. Do you have the filter's source code or library?

      Sweety08 wrote:

      ...and display the edge images

      Are the images on disk or in memory? Are you able to display them as is (i.e., no filter applied)?

      "One man's wage rise is another man's price increase." - Harold Wilson

      "Fireproof doesn't mean the fire will never come. It means when the fire comes that you will be able to withstand it." - Michael Simmons

      "You can easily judge the character of a man by how he treats those who can do nothing for him." - James D. Miles

      1 Reply Last reply
      0
      • S Sweety08

        How to apply the sobel operator to each image and display the edge images

        C Offline
        C Offline
        Chris Losinger
        wrote on last edited by
        #3

        for every pixel, calculate: Gx = -1 * p(x-1,y-1) + 1 * p(x+1,y-1) + -2 * p(x-1,y) + 2 * p(x+1,y) + -1 * p(x-1,y+1) + 1 * p(x+1,y+1) Gy = p(x-1,y-1) + 2 * p(x,y-1) + p(x+1,y-1) - p(x-1,y+1) - 2 * p(x,y+1) - p(x+1,y+1) + pOut(x,y) = sqrt(Gx * Gx + Gy * Gy) (this is from Wiki)

        image processing toolkits | batch image processing

        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