Borrar filtros
Borrar filtros

Info

La pregunta está cerrada. Vuélvala a abrir para editarla o responderla.

how to add text/number in an image as it is the part of the image?

1 visualización (últimos 30 días)
Sakolo
Sakolo el 17 de Sept. de 2020
Cerrada: MATLAB Answer Bot el 20 de Ag. de 2021
I am aware the piece of code which Matlab teams have been provided here. My question is using this peice of code in my script.
I have this image which I created from a matlab code. In this image there are some pixels with certain spacing equaled to 1.This image will be read by a device and shown on the camera. Then I can move the whole pattern in x and y. I have 200 images in end from this shifting all are the same pattern as you see in the image but different position in x and y and I can define the pattern number in the loop that pattern is moving.
What I would like to do is:
add number for each and every pattern so that I can specified each pattern with its nnumber, like pattern1, has the 1 on all of the white pixels, pattern 2 has the number 2 on all of the white pixels, and so on.
Has anyone done something similar? Or has someone understood my problem?

Respuestas (1)

Walter Roberson
Walter Roberson el 17 de Sept. de 2020
Computer Vision Toolbox, use the insertText() function. You can specify the position and color and font and font size; it writes into the array you pass in.

La pregunta está cerrada.

Etiquetas

Community Treasure Hunt

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

Start Hunting!

Translated by