MeasureObjectsNeighbors question


Is it possible to measure the distance between two neighbors but just for those objects inside the same parent?

Thanks a lot.


I can’t think of any way to do this in CellProfiler but it’s easy enough post-analysis as long as you are happy with centroid-centroid measurements. If you go to the spreadsheet output for the children objects you have their X,Y co-ordinates list as well as which parent the belong to. So if you split them by parent then you can to calculate the distances between the centroids in Excel or R or another program of your choosing.


1 Like

HI Laura,

Thanks a lot for your email. That’s excellent. It’s what I’m doing. It would be great if Cell Profiler would provide you with this information without more calculations, but as you said, it is easy enough to do it. I wanted to know if I was missing something in CellProfiler.

Again, thanks a lot for the help. I appreciate it.