Hello, I am struggling to draw a slope or line over image. For your reference I have drawn that slope manually using imline function in matlab. But I want to draw the same automatically. I need to find the coordinate points automatically to make the line.
Can you please help me out. Any help is much appreciated.
I have added two images such as manual and manually marked slope or line highlighted with red below.