How do you input a number into a binary shape.

1 visualización (últimos 30 días)
jason
jason el 11 de Nov. de 2014
Comentada: jason el 11 de Nov. de 2014
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.

Respuesta aceptada

Guillaume
Guillaume el 11 de Nov. de 2014
Editada: Guillaume el 11 de Nov. de 2014
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 comentario
jason
jason el 11 de Nov. de 2014
I used inserttext,it was giving me the same problem.

Iniciar sesión para comentar.

Más respuestas (0)

Etiquetas

Community Treasure Hunt

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

Start Hunting!

Translated by