Add lines to image

12 vues (au cours des 30 derniers jours)
Anas Altarifi
Anas Altarifi le 28 Avr 2020
Modifié(e) : Ameer Hamza le 28 Avr 2020
I have an image and i want to add lines with specified length to this image,
how can i add five/ seven / multipllinse to an image ?

Réponses (1)

Ameer Hamza
Ameer Hamza le 28 Avr 2020
Modifié(e) : Ameer Hamza le 28 Avr 2020
See insertShape(): https://www.mathworks.com/help/releases/R2020a/vision/ref/insertshape.html from computer vision toolbox. You can use a for loop to add several lines over an image. Example:
img = insertshape(img, 'Line', [x_start y_start x_end y_end]);

Tags

Community Treasure Hunt

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

Start Hunting!

Translated by