Major axis and minor axis
조회 수: 29 (최근 30일)
이전 댓글 표시
How can I plot the major axis and minor axis for an object in an image?
댓글 수: 2
Image Analyst
2012년 11월 10일
I've just added a section on "How do I create an ellipse" to the FAQ: http://matlab.wikia.com/wiki/FAQ#How_do_I_create_an_ellipse.3F so that might help you.
채택된 답변
Walter Roberson
2012년 8월 27일
regionprops() to get the centroid and orientation (angle). After that it becomes straight trig. The axes length is R, compute R*cos(theta), R*sin(theta), and center those displacements on the centroid.
댓글 수: 17
Image Analyst
2012년 9월 9일
Pamela, I haven't heard of that method to determine similarity. Much more common is SSIM ( http://en.wikipedia.org/wiki/SSIM) and friends, or even PSNR. Or you can use image moments: http://en.wikipedia.org/wiki/Image_moment
추가 답변 (0개)
참고 항목
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!