Line of controlled thickness in image
Show older comments
Hey!
I have a grayscale image (I) and I would like to plot a line with a controlled thickness in it.
I know the coordinates of the line x=[x0,xf], y=[y0,yf], and lets say the thickness I want is "t", in pixels.
I can do
imshow (I)
line(x,y, 'LineWidth', linewidthvalue)
But the line here has a width that depends on how much I zoom in in the image, since in 'LineWidth' the width is defined by 1/72 inches, not in pixels. Is there any way to change that, namely, to fix the width of the line to a certain number of pixels?
Thanks in advance :)
Accepted Answer
More Answers (0)
Categories
Find more on Images in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!