Hi. I have around 5000 images in a folder, the names of the images are Combined_1, Combined_2, .... Combined_5000. I want to draw four horizontal lines at positions on all the images using a loop.
Line #1: (X1,Y1)=(0,800) px and (X2,Y2)=(1024,800)px
Line #2: (X1,Y1)=(0,700) px and (X2,Y2)=(1024,700)px
Line #3: (X1,Y1)=(0,600) px and (X2,Y2)=(1024,600)px
Line #4: (X1,Y1)=(0,500) px and (X2,Y2)=(1024,500)px
The coordinates are in pixel units. I would appreciate if, someone can help me with a detailed code with explanation which has options to change the line type, thickness and color.
1 Comment
Direct link to this comment
https://es.mathworks.com/matlabcentral/answers/496144-draw-horizontal-lines-using-for-loop-on-set-of-images#comment_777040
Direct link to this comment
https://es.mathworks.com/matlabcentral/answers/496144-draw-horizontal-lines-using-for-loop-on-set-of-images#comment_777040
Sign in to comment.