magnitude and direction
이전 댓글 표시
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
Walter Roberson
2013년 3월 29일
Please start a new Question for this problem.
답변 (3개)
Junaid
2012년 2월 6일
3 개 추천
what do you mean by direction of images. I hope you are talking about gradient value and direction (orientation) ?
댓글 수: 3
munch kitty
2012년 2월 6일
Rupali
2012년 2월 6일
i want to know how to divide image into blocks ????????
munch kitty
2012년 2월 8일
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
munch kitty
2012년 2월 8일
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
Lee
2013년 3월 25일
Hi Junaid, may I know why parameter YX is calculated?
ANIMA V A
2015년 11월 24일
0 개 추천
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
카테고리
도움말 센터 및 File Exchange에서 Neighborhood and Block Processing에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!