comp.lang.idl-pvwave archive
Messages from Usenet group comp.lang.idl-pvwave, compiled by Paulo Penteado

Home » Public Forums » archive » contouring the CT slice
Show: Today's Messages :: Show Polls :: Message Navigator
E-mail to friend 
Return to the default flat view Create a new topic Submit Reply
Re: contouring the CT slice [message #35017 is a reply to message #34921] Sun, 04 May 2003 16:27 Go to previous message
David Fanning is currently offline  David Fanning
Messages: 11724
Registered: August 2001
Senior Member
Murat Maga (maga@mail.utexas.edu) writes:

> I have serial cross sections of some long bones, which I would like to
> calculate centroids and mass moments of inertia for each slice.
> The steps I have managed to do so far:
> 1.) Read the stack as a three dimensional volume:
> 2.) Calculate a threshold for segmenting the data
> 3.) Get the internal and external contours with contours function.
>
> The problem, when I look at the values of PATH_XY with PATH_DATA_COORDS
> option, those are combined points of two contours. So sorting them out
> becomes quite tricky.

Tricky, maybe, but certainly not impossible. You will
probably need the information in PATH_INFO to do it
correctly.

> The reason I need those points, I have somebody else's fortran routine
> to calculate moments based on individual points and it needs two
> separate inputs...

Say what!? How do you expect the contours to help here?

> So the first question what else I can use other than contour procedure
> to get the coordinates of external and internal contours? And what may
> be a better way to approach this problem?

You could try using ISOCONTOUR, but I think this approach
is probably fine.

Cheers,

David

--
David W. Fanning, Ph.D.
Fanning Software Consulting, Inc.
Phone: 970-221-0438, E-mail: david@dfanning.com
Coyote's Guide to IDL Programming: http://www.dfanning.com/
Toll-Free IDL Book Orders: 1-888-461-0155
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: Re: egg timer
Next Topic: sec : U Re: checking for Demo mode

-=] Back to Top [=-
[ Syndicate this forum (XML) ] [ RSS ] [ PDF ]

Current Time: Sat Oct 11 22:08:17 PDT 2025

Total time taken to generate the page: 1.44092 seconds