필터 지우기
필터 지우기

curvature direction

조회 수: 1 (최근 30일)
Nithyakalyani.
Nithyakalyani. 2012년 3월 21일
i want to find curvature direction in a circle image.can anyone help me with matlab code to find the direction of curvature as clockwise or counterclockwise.
  댓글 수: 2
Jan
Jan 2012년 3월 21일
A circle does not have a direction. Please post a picture to explain, how the orientation could be detected.
Nithyakalyani.
Nithyakalyani. 2012년 3월 21일
ridges in the fingerprint image is the image i have considered

댓글을 달려면 로그인하십시오.

채택된 답변

Matt Kindig
Matt Kindig 2012년 3월 21일
Is the circle actually part of an image, or do you have the coordinates of the circle? If you have the coordinates, it's just a matter of calculating the sign of the cross product.
cp = cross( [x(2)-x(1), y(2)-y(1), 0], [x(3)-x(1), y(3)-y(1), 0])
direction = sign(cp); %+1 if counterclockwise, -1 if clockwise
  댓글 수: 4
Matt Kindig
Matt Kindig 2012년 3월 21일
It's not clear to me then how you define clockwise or counterclockwise in your image. Given only an image, how can you tell which direction in which?
Nithyakalyani.
Nithyakalyani. 2012년 3월 22일
actually i have considered fingerprint image..i need to find the ridge curvature direction..thats why i askd dis question

댓글을 달려면 로그인하십시오.

추가 답변 (1개)

Matt Kindig
Matt Kindig 2012년 3월 22일
It sounds like you mean you want to find the curvature itself (using a technique like shown here: http://en.wikipedia.org/wiki/Curvature. This has nothing to do with the clockwise/counterclockwise direction.
As myself and Jan Simon have requested, can you post an example of your fingerprint image? We can't make code recommendations without knowing what kind of image your are working with.
  댓글 수: 2
Nithyakalyani.
Nithyakalyani. 2012년 3월 23일
i dono how to post an image..kindly say me how to do dat
Jan
Jan 2012년 3월 23일
Just search in this forum. It is explained e.g. in the "Markup help" link on this page, and at http://www.mathworks.com/matlabcentral/answers/243-how-do-i-post-a-picture-with-my-question .

댓글을 달려면 로그인하십시오.

카테고리

Help CenterFile Exchange에서 Get Started with Image Processing Toolbox에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by