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
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
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 个)

类别

Help CenterFile 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!

Translated by