how eccentricity work?
조회 수: 4 (최근 30일)
이전 댓글 표시
hi everyone
for regionprps command we have a property that call eccentricity. I searched and studied matlab help about this. but I don't understand how this code work? for example if we have these ellipse :
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/152562/image.jpeg)
Is ImgLabel(1).Eccentricity and ImgLabel(2).Eccentricity equal for these objects? why? these objects are like each other but you can imagine that one of them rotated. I mean that is it important that our object be Horizontal or vertical ? thanks
댓글 수: 0
채택된 답변
Image Analyst
2015년 12월 10일
First of all, MATLAB calls white objects as foreground, not black objects. So you'd have to invert your images or call imclearborder() to remove the white surround.
After that it fits each blob to an ellipse, and whatever the eccentricity of the fitted ellipse is, that's what it gives you. It does not depend on the "orientation" (angle) of the ellipse.
댓글 수: 0
추가 답변 (0개)
참고 항목
카테고리
Help Center 및 File Exchange에서 Image Segmentation and Analysis에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!