- First find the contour of the diagram in the image and this will generate the coordinates of the contour. You can use this function- ‘bwboundaries’
- Identify the rightmost point of the contour and locate the point where slope is not zero, which will serve as corner point.
- Apply the ‘Mask’ operation on both sides of the corner point using the desired color. https://www.mathworks.com/matlabcentral/answers/87708-how-to-mask-an-image
Image segmentation at corner points
12 ビュー (過去 30 日間)
古いコメントを表示
How to divide the white part in the first diagram into the red and blue parts in the second diagram? Thank you for your help.


0 件のコメント
回答 (1 件)
Sachin
2023 年 4 月 14 日
Hi
I understand that you want to segment an image at corner points.
One of the potential solutions can be following -
Please refer the following documentation for finding the contour and boundary coordinates:
Using MATLAB:
Using OpenCV:
0 件のコメント
参考
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!