Histogram computation from gradient image.

2 次查看(过去 30 天)
Hello everyone
I want to compute the histogram using image gradient.let say that I have an image
Img=imread(myimage);
[gx gy]=edge(Img,'sobel');
Mag=sqrt(gx,gy);
Dir=atan2(gy,gx);
now I want to compute the orientation bins using 12 orientations each covering 30degree.
how can I do it.After that I need to sum(Img,Dir) from 1 to number of bins 12.
Any help is appreciated.

回答(0 个)

类别

Help CenterFile Exchange 中查找有关 Images 的更多信息

Community Treasure Hunt

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

Start Hunting!

Translated by