Login  Register

Re: Finding Shortest Distance from each Particle to a Line

Posted by John Dunsmuir on Jul 23, 2013; 1:18am
URL: http://imagej.273.s1.nabble.com/Finding-Shortest-Distance-from-each-Particle-to-a-Line-tp5004083p5004084.html

Mary,
One way to proceed is to use Process->Binary->DistanceMap on the binary image of the marrow cavity so that the area outside the cavity is distance mapped.  This will provide an image where the pixel values represent the shortest distance to the cavity.  Applying the roi definitions for the holes from the manager to the distance map and  measuring the minimum value inside each roi will give an estimate of the shortest distance from the hole to the marrow.  You may need to use Analyze Particles on the holes to create a list for the roi manager.  It's a bit fussy but it should work, I haven't tried it yet. Just a thought.
John D.

Mary Cole wrote
Hello,

    I previously posted about finding a way to outline a number of holes in a cross-section of bone. I have found a way to do this, but now I want to see how far away each hole is from the marrow cavity in the center of the bone.

On ROI manager, I have a list of all of the holes in the bone. I have attached an image of these ROI overlayed on the bone image as a yellow outline (I have removed the particle labels to make it easier to see).



I would like to find a way to measure the shortest distance between each yellow outline and the marrow cavity (white space) in the center of the image. I have also used the magic wand to select the marrow cavity and draw a yellow line.

Is there a plugin that will produce a list of the shortest distance between each ROI and the marrow cavity line?

I can easily make the image into a binary image containing only each ROI and the line surrounding the marrow cavity if that is necessary. I just left the ROI overlayed on the bone to make it easier to visualize.

Thank you very much for your help!

                                                 Sincerely,
                                                 Mary Cole