Draw lines in image
1 view (last 30 days)
Show older comments
hello How I convert the 2.png 3.png 4.png 6.png
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/168531/image.png)
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/168532/image.png)
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/168534/image.png)
convert to be like the 22.png
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/168535/image.png)
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/168537/image.png)
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/168538/image.png)
that the lines intersect each othe such a way that these lines also toch maximum whote pixels
2 Comments
Rik
on 21 Oct 2017
You need to explain what you want more clearly, because right now I don't understand what you mean, so I can't help you. Please edit your question or answer in a comment.
Image Analyst
on 21 Oct 2017
How are you determining the angles of the red lines? It does not look like you are simply fitting a few of the pixels at the end of the curve to a line with polyfit(). So how are you setting those angles?
Answers (0)
See Also
Categories
Find more on Convert Image Type in Help Center and File Exchange
Products
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!