how to ellipse fitting to connected object?

 채택된 답변

Evan
Evan 2014년 11월 13일

0 개 추천

help regionprops
This allows you to return the orientation, major axis length, and minor axis length of binary data with regions that approximate ellipses.
The page also contains code for plotting your ellipse fits.

댓글 수: 3

Abo
Abo 2014년 11월 14일
편집: Abo 2014년 11월 25일
This image shows binary image of pigs. In red are ellipses for which I have attempted to fit to this picture. I want to fit theses ellipses to each animal, instead of an ellipse for connected animals (left one). How can I do this?
Evan
Evan 2014년 11월 14일
편집: Evan 2014년 11월 14일
Regionprops performs its operations for each connected region of true values, so it treats that cluster of three pigs as a single entity.
The way you do this likely depends on the range of scenarios that you expect from your images. I would suggest looking through the functions in the Image Processing Toolbox, particularly those that relate to Segmentation to see which ones might be useful.

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

추가 답변 (1개)

Abo
Abo 2014년 11월 25일

0 개 추천

thank you. your answers are so helpful.

질문:

Abo
2014년 11월 9일

답변:

Abo
2014년 11월 25일

Community Treasure Hunt

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

Start Hunting!

Translated by