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

4 ビュー (過去 30 日間)
Victor Fletcher
Victor Fletcher 2018 年 12 月 8 日
回答済み: Image Analyst 2018 年 12 月 9 日
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??

回答 (1 件)

Image Analyst
Image Analyst 2018 年 12 月 9 日
Why not simply use imgradient()?

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by