필터 지우기
필터 지우기

How do you input a number into a binary shape.

조회 수: 2 (최근 30일)
jason
jason 2014년 11월 11일
댓글: jason 2014년 11월 11일
After detecting the binary shape,how do i insert a number into the center of the shape and it must be stored on the shape,so i can add it to a blank image with other detected shapes.

채택된 답변

Guillaume
Guillaume 2014년 11월 11일
편집: Guillaume 2014년 11월 11일
I assume this is related to your previous question and you're talking about writing a number in an image.
If you have the image acquisition toolbox, you can use inserttext.
If not, there's no built-in way in matlab unfortunately. You would have to display your image with imshow, write text on the figure with text and capture the content of the figure as an image with getframe which usually returns an image of a different size. See this answer by mathworks for all the details.
  댓글 수: 1
jason
jason 2014년 11월 11일
I used inserttext,it was giving me the same problem.

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

추가 답변 (0개)

태그

Community Treasure Hunt

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

Start Hunting!

Translated by