Rotating Mask of Sobel Opreator

16 次查看(过去 30 天)
hello,I need to get Sobel Mask in any angle I need>>How can I perfom This??

回答(1 个)

Image Analyst
Image Analyst 2020-2-22
Use imgradient(). It's the gradient so it's essentially the slope at all angles. Well not exactly but anyway, the edges it finds don't really depend on the angle of the edges like they do with the Sobel filter. Or you can use a DoG filter if your edges are smooth and rather large. It's better than Sobel which depends on the edges being on the scale of two pixels or so.

产品


版本

R2019a

Community Treasure Hunt

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

Start Hunting!

Translated by