draw ellipse in binary image

조회 수: 2 (최근 30일)
Niraj
Niraj 2012년 10월 12일
Hi, I have a binary image with blobs being segmented. I have used the regionprops function to find the centroid, major axis,minor axis length, and orientation of the blobs. i need to draw the ellipse on these blobs. Any suggestion how to do it? Is there any inbuilt MATLAB function which does so? Also,i need that all my 10 blobs should be of different colors.
Thanks

답변 (2개)

Matt J
Matt J 2012년 10월 12일

Sean de Wolski
Sean de Wolski 2012년 10월 12일
편집: Sean de Wolski 2012년 10월 12일
How about:
doc imellipse
(And specifically its method createMask)
  댓글 수: 1
Matt J
Matt J 2012년 10월 12일
It doesn't seem to allow arbitrary ellipse orientations. Or at least, I'm not finding a way to tilt it interactively.

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

태그

Community Treasure Hunt

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

Start Hunting!

Translated by