About Sobel operator in Image Processing
-
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
-
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)