How can i find co-ordinates (x,y) of white lines in the image?
이전 댓글 표시
I have image with black background and white lines. How to find co-ordinates (x,y) of white lines on that image?
댓글 수: 2
William
2015년 11월 30일
how is the data representing black and white. 0's and 1's?. What format is the image in?
LAKSHMANAN ADAIKKAPPAN
2015년 11월 30일
답변 (2개)
Thorsten
2015년 11월 30일
[y, x] = ind2sub(size(I), find(I > 0));
Walter Roberson
2015년 11월 30일
0 개 추천
You will have difficulty finding the location of the lines. JPG images cannot handle sharp edges, so although the data may look like it is just white and black, you will find that it has a number of other values as well, similar to as if the image had been anti-aliased. JPG is a poor format for image analysis.
카테고리
도움말 센터 및 File Exchange에서 Convert Image Type에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!