- 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
조회 수: 2 (최근 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
참고 항목
카테고리
Help Center 및 File Exchange에서 Image Processing Toolbox에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!