magnitude and direction
3 ビュー (過去 30 日間)
古いコメントを表示
how to calculate the magnitude and direction value of the images in matlab?(code)
2 件のコメント
Qura
2013 年 3 月 29 日
Hi! I want to construct histogram of gradient magnitude and gradient direction for each image gradient.angle are quantized by 45 Please help
回答 (3 件)
Junaid
2012 年 2 月 6 日
what do you mean by direction of images. I hope you are talking about gradient value and direction (orientation) ?
3 件のコメント
Junaid
2012 年 2 月 6 日
I think you want to compute the SIFT right ?
Anyway to divide the image into blocks, you can use following tip
in case you have difficulty you can share your code.
To find the gradient magnitude and orientation, the following code may help you.
angle = 360;
[GradientX,GradientY] = gradient(double(img));
Gr = sqrt((GradientX.*GradientX)+(GradientY.*GradientY));
index = GradientX == 0;
GradientX(index) = 1e-5;
YX = GradientY./GradientX;
A = ((atan2(GradientY,GradientX)+pi)*180)/pi;
A contains the orientation of each pixel.
3 件のコメント
mano
2012 年 2 月 8 日
i found the gradient and magnitude but i want to how to found gradient magnitude histogram?if u know help me
ANIMA V A
2015 年 11 月 24 日
How to compute gradient in three different directions? Can any one help me i need to compute the gradient in 3 different directions for an image please help me
0 件のコメント
参考
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!