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

Home » Public Forums » archive » Re: Generate 3D Surface out of Points in Space
Show: Today's Messages :: Show Polls :: Message Navigator
E-mail to friend 
Switch to threaded view of this topic Create a new topic Submit Reply
Re: Generate 3D Surface out of Points in Space [message #39807] Wed, 23 June 2004 10:21 Go to next message
Karl Schultz is currently offline  Karl Schultz
Messages: 341
Registered: October 1999
Senior Member
"Tukee10" <turgutkaracay@hotmail.com> wrote in message
news:b599c09a391226a337d5f4fe4e8672fd@localhost.talkaboutpro gramming.com...
> Hi everybody. I have 50 sliced images, that represent a splitting blood
> vessel. I went through the slices and extracted the contours of the blood
> vessel with the function CONTOURS. Now I have many points that lie on the
> surface of the vessel. I would like to reconstruct the 3d surface of the
> vessel out of these points. Is there any function or procedure that is
> able to do that?

Surface reconstruction is a hard problem. If you google around you will see
that quite a few people have spent much of their lives working on small
parts of the problem.

That being said, if your data has certain constraints, then the job can be
done.

In your case, are the images such that the blood vessels are a very distinct
color, or otherwise distinguishable from the rest of the image? If so, you
can stack the images into a volume and then run ISOSURFACE to generate a
surface. You would need to determine what isovalue to use that selects the
pixels representing the vessels the best. You might consider running some
image filtering tools to sharpen or clean up the images to make it as close
to "on-off" as possible with respect to the blood vessel pixels.

I think that this is your best shot, given what I know about your data.

Karl
Re: Generate 3D Surface out of Points in Space [message #39817 is a reply to message #39807] Tue, 22 June 2004 16:30 Go to previous messageGo to next message
Tukee10 is currently offline  Tukee10
Messages: 7
Registered: June 2004
Junior Member
Hello David.
Thanks for the reply.
I tried your method of creating a mesh structure out of MRI slices before,
but it failed, because the ComputeMesh-method doesn`t work as soon as you
get two contours on one plane.

Best,

Tukee.
Re: Generate 3D Surface out of Points in Space [message #39819 is a reply to message #39817] Tue, 22 June 2004 16:19 Go to previous messageGo to next message
David Fanning is currently offline  David Fanning
Messages: 11724
Registered: August 2001
Senior Member
Tukee10 writes:

> Hi everybody. I have 50 sliced images, that represent a splitting blood
> vessel. I went through the slices and extracted the contours of the blood
> vessel with the function CONTOURS. Now I have many points that lie on the
> surface of the vessel. I would like to reconstruct the 3d surface of the
> vessel out of these points. Is there any function or procedure that is
> able to do that?

You can see a general approach to this problem in this
article:

http://www.dfanning.com/graphics_tips/mesh.html

As someone else discovered earlier this week, this method
works well if you data is "well behaved". You are completely
on your own if your data is not so well behaved. That is
to say, blood vessels make me nervous. :-(

Cheers,

David

--
David Fanning, Ph.D.
Fanning Software Consulting, Inc.
Coyote's Guide to IDL Programming: http://www.dfanning.com/
Re: Generate 3D Surface out of Points in Space [message #39945 is a reply to message #39807] Thu, 24 June 2004 09:33 Go to previous message
siliconcube is currently offline  siliconcube
Messages: 11
Registered: June 2004
Junior Member
I had the same problem and this board did a great job helping me
figure out where i went wrong. I had 85 SEM image slices, instead of
having contours I just cleared the background noise leaving me with
whatever it is I was looking at. Then I reduced resolution (otherwise
IDL would give me problems with lack of memory and i have a 5GB of DDR
Ram installed), my image files went from 1.8MB each to about 60KB each
and i ran the code (slightly modified) from Dr. Fanning's website
which he posted in the earlier message and everythign worked out
pretty darn well =D.

Good luck
Aleks
"Karl Schultz" <kschultz_no_spam@rsinc.com> wrote in message news:<10djeuf4dhht95b@corp.supernews.com>...
> "Tukee10" <turgutkaracay@hotmail.com> wrote in message
> news:b599c09a391226a337d5f4fe4e8672fd@localhost.talkaboutpro gramming.com...
>> Hi everybody. I have 50 sliced images, that represent a splitting blood
>> vessel. I went through the slices and extracted the contours of the blood
>> vessel with the function CONTOURS. Now I have many points that lie on the
>> surface of the vessel. I would like to reconstruct the 3d surface of the
>> vessel out of these points. Is there any function or procedure that is
>> able to do that?
>
> Surface reconstruction is a hard problem. If you google around you will see
> that quite a few people have spent much of their lives working on small
> parts of the problem.
>
> That being said, if your data has certain constraints, then the job can be
> done.
>
> In your case, are the images such that the blood vessels are a very distinct
> color, or otherwise distinguishable from the rest of the image? If so, you
> can stack the images into a volume and then run ISOSURFACE to generate a
> surface. You would need to determine what isovalue to use that selects the
> pixels representing the vessels the best. You might consider running some
> image filtering tools to sharpen or clean up the images to make it as close
> to "on-off" as possible with respect to the blood vessel pixels.
>
> I think that this is your best shot, given what I know about your data.
>
> Karl
Re: Generate 3D Surface out of Points in Space [message #39946 is a reply to message #39817] Thu, 24 June 2004 00:57 Go to previous message
Beat.Schmutz is currently offline  Beat.Schmutz
Messages: 6
Registered: October 2003
Junior Member
> I tried your method of creating a mesh structure out of MRI slices before,
> but it failed, because the ComputeMesh-method doesn`t work as soon as you
> get two contours on one plane.
>

I had the same problem, so I used SHADE_VOLUME instead. I filled the
extracted contours with black (0), created a volume with the stacked
contours and then set VALUE and LOW in SHADE_VOLUME to zero. This
worked well for the 3D reconstruction of a bone (distal Femur)
surface. I don't know whether it will work in your case.

Cheers,

Beat
  Switch to threaded view of this topic Create a new topic Submit Reply
Previous Topic: Random Access Text (like getline)
Next Topic: Motley MGH_NCDF_SAVE problem

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

Current Time: Wed Oct 08 15:37:06 PDT 2025

Total time taken to generate the page: 0.00630 seconds