Measure Distance to segmentaion boundary from centroid at arbitrary angles

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
4 messages Options
Reply | Threaded
Open this post in threaded view
|

Measure Distance to segmentaion boundary from centroid at arbitrary angles

Nick Rubert
Hi listserve,


I'd like to measure the straight line distance from the centroid of a
segmentation to the segmentation boundary for arbitrary angles.  Ideally
this would be a command I could script, so that I could find something like
the maximum distance from the centroid to a segmentation boundary by
iterating over many angles.  ANy ideas would be greatly appreciated.

Thanks,

Nick
Reply | Threaded
Open this post in threaded view
|

Re: Measure Distance to segmentaion boundary from centroid at arbitrary angles

Gabriel Landini
On Friday 04 Dec 2009  10:17:56 you wrote:
> I'd like to measure the straight line distance from the centroid of a
> segmentation to the segmentation boundary for arbitrary angles.  Ideally
> this would be a command I could script, so that I could find something like
> the maximum distance from the centroid to a segmentation boundary by
> iterating over many angles.  ANy ideas would be greatly appreciated.

Your problem might no have single solution. For very irregular objects, there
might be many boundary points at a given angle.

Here is the principle via ROIs:
Get the ROI of the segmented region
Get the coordinates of the ROI
Get the centroid of the region
For all boundary points:
- Compute the angle between the centroid to that point and your reference
line.  If this is the desired angle (you will have to quantise/bin the value):
- - Use Pythagoras theorem from to compute the distance between the centroid
and the boundary point.

G.
Reply | Threaded
Open this post in threaded view
|

Re: Measure Distance to segmentaion boundary from centroid at arbitrary angles

Gabriel Landini
On Friday 04 Dec 2009  10:49:41 you wrote:


I meant:
> - - Use Pythagoras theorem to compute the distance between the centroid
> and the boundary point.

G.
Reply | Threaded
Open this post in threaded view
|

Re: Measure Distance to segmentaion boundary from centroid at arbitrary angles

Thomas Boudier
In reply to this post by Nick Rubert
Hi,

It is implemented in 3D in my 3D library :

http://imagejdocu.tudor.lu/doku.php?id=plugin:morphology:3d_binary_morphological_filters:start

however there is no implementation in plugins yet.

Can you be a bit more specific and give an example image ?

Thomas


Nick Rubert a écrit :

> Hi listserve,
>
>
> I'd like to measure the straight line distance from the centroid of a
> segmentation to the segmentation boundary for arbitrary angles.  Ideally
> this would be a command I could script, so that I could find something like
> the maximum distance from the centroid to a segmentation boundary by
> iterating over many angles.  ANy ideas would be greatly appreciated.
>
> Thanks,
>
> Nick
>
>

--
   /**********************************************************/
      Thomas Boudier, MCU Université Pierre et Marie Curie,
      IFR 83. Bat B 7ème étage, porte 706D, Jussieu.
      Tel : 01 44 27 20 13  Fax : 01 44 27 22 91
/*******************************************************/