How to automatically calculate distance between two brighter points in an gray scale image?
조회 수: 2 (최근 30일)
이전 댓글 표시
In my coding task, I am having an image after thresholding step which is having 9 brighter regions. How may I find distances between these brighter regions automatically in matlab. Thanks in anticipation.
댓글 수: 1
Adam
2018년 4월 10일
Do you mean the positional distance or the colour distance? If you mean the latter then there are any number of ways to calculate the distance between 2 colours.
This being the one I have started using recently.
채택된 답변
KSSV
2018년 4월 10일
You should be having the pixel value of the spots. Use find to get the location of those pixles and then use pdist or pdist2.
댓글 수: 0
추가 답변 (0개)
참고 항목
카테고리
Help Center 및 File Exchange에서 Statistics and Machine Learning Toolbox에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!