MATLAB: Draw a line on an image imageline Hello I want draw a line on an image, just by giving the coordinates of the extremities. I tryed the function line(…) but it didn't give me the right result Best Answer Pay attention of the syntax of line().line([x1,x2],[y1,y2]), not line([x1,y1],[x2,y2]);figure(1);line([0 1],[0 1]); will show a linefigure(2);line([0 0],[1 1]); won't show a line Related SolutionsMATLAB: Multiline title not fitting in figure window Can you use image instead of imshow?AxesH = axes('NextPlot', 'add', 'Visible', 'off');title({'Line 1','Line 2','Line 3'}, 'Visible', 'on')image(rand(100, 100, 3), 'Parent', AxesH);axis(AxesH, 'image') MATLAB: How do you make lines solid and/or thicker? How do you “split” an image by drawing a line at the desired location? Image Segmentation You can use imdilate() on the binaryImage1 to thicken the line before burning it into the image. Related QuestionSize error for the own image in “Automatically Detect and Recognize Text in Natural Images” codeHi all, i want to get the cropped image in another axes with the same size of the crop rectangle??Is there any way….How to combine image with mask
Best Answer