Major axis and minor axis

28 ビュー (過去 30 日間)
Pamela
Pamela 2012 年 8 月 26 日
How can I plot the major axis and minor axis for an object in an image?
  2 件のコメント
Pamela
Pamela 2012 年 9 月 1 日
I need your held please !!
Image Analyst
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
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 件のコメント
Pamela
Pamela 2012 年 9 月 9 日
編集済み: Pamela 2012 年 9 月 9 日
Hi! To study the similarity between 2 images we should use these steps???
-Calculate the mean of the input images
-Subtract the mean from the input images to obtain the mean-shifted images
-Calculate the eigenvectors and eigenvalues of the mean-shifted images
-Order the eigenvectors by their corresponding eigenvalues, in decreasing order
-Retain only the eigenvectors with the largest eigenvalues (the principal components)
-Project the mean-shifted images into the eigenspace using the retained eigenvectors
-Calculate the Euclidean distance
It's the same solution to study the asymmetry of the region?? Can this help me??
Thanks
Image Analyst
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!

Translated by