기본 콘텐츠로 건너뛰기

7월, 2009의 게시물 표시

[MATLAB]3점에 의한 원의 중심 구하기...

원문 출처 : http://mathworld.wolfram.com/Circle.html 중 일부  입니다.   The equation of a circle passing through the three points for , 2, 3 (the circumcircle of the triangle determined by the points) is   (25) The center and radius of this circle can be identified by assigning coefficients of a quadratic curve   (26) where and (since there is no cross term). Completing the square gives   (27) The center can then be identified as   (28)   (29)   and the radius as   (30) where   (31)   (32)   (33)   (34) Four or more points which lie on a circle are said to be concyclic . Three points are trivially concyclic since three noncollinear points determine a circle.     아래는 원문중 원의 공식을 이용해 MATLAB과 OpenCV 행렬 함수를 이용해서 구현된 소스입니다.   학교 과제할때 참고한 공식으로 유용하게 사용했습니다.^^   관심점 3점을 추출하여 중심점을 계산하기