Info
이 질문은 마감되었습니다. 편집하거나 답변을 올리려면 질문을 다시 여십시오.
Identifying colored sectors in an image and connecting them...
조회 수: 2 (최근 30일)
이전 댓글 표시
I was trying to identify the certain types of coloured sectors in an image and connect them with lines.
Example: (an image is attached.) This image was generated after thresholding (pixel color: 1 & 250) a greyscale image.
As it is shown, there are basically two types of 'white' patches, vertically extended and horizontally extended. Series of each is highlighted in red and blue resp. I need to identify all such series and replace them with a line connecting them vertically and horizontaly resp. The purpose of connecting them with a line is to count the no. of lines in vertical and horizontal directions and find the distance between two successive lines.
Please help. Thanks in advance.![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/220388/image.jpeg)
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/220388/image.jpeg)
댓글 수: 0
답변 (0개)
이 질문은 마감되었습니다.
참고 항목
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!