MATLAB Answers

0

Applying Prewitt Filters to an image and then using them to calculate an image gradient

Asked by Victor Fletcher on 8 Dec 2018 at 12:45
Latest activity Answered by Image Analyst
on 9 Dec 2018 at 0:40
I have applied a prewitt filter to an image with the following kernel [-1 -1 -1;0 0 0;1 1 1].
I would like to use the output as a way of calculating the image gradient.
THis is done by calculating (z7+z8+z9)-(z1+z2+z3) for the entire image.
How do I compute this for the entire image??

  0 Comments

Sign in to comment.

1 Answer

Answer by Image Analyst
on 9 Dec 2018 at 0:40

Why not simply use imgradient()?

  0 Comments

Sign in to comment.