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

Home » Public Forums » archive » Re: VTK + IDL
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: VTK + IDL [message #40666 is a reply to message #40663] Wed, 25 August 2004 07:59 Go to previous messageGo to previous message
Chris Lee is currently offline  Chris Lee
Messages: 101
Registered: August 2003
Senior Member
In article <da6f35c7.0408241737.7a23a499@posting.google.com>, "Hee Chun"
<chun.42@osu.edu> wrote:


> Hello,
> I learned from the previous post(from Mike) that: 'OpenGL doesn't have
> the scientific analysis capabilities of IDL and IDL
> doesn't have the graphics constructs of OpenGL'. But I need both
> analysis capabilities and graphics display for the medical image data
> sets.
> Is there any way to interface between VTK and IDL using DLM? If there
> is, Is it very hard to implement it? What kinds of problems do I need to
> consider? Where is the good starting point at least to open the 3d
> object rendered by VTK on the draw window of IDL? Any
> tips/suggestions/advices will be greatly appreciated. Thanks.
> HC

IDL can do a lot of what VTK appears to do. I.e generate 2d and 3d
images/plots. If you wanted to draw a surface for example, you would you
SHADE_SURF

;make some data
x=(findgen(100)-50.)#replicate(1,100)
y=transpose(x)
r=sqrt(x^2+y^2)
r=r*10.*!pi/180.
d=(cos(r)*exp(-r^2/50.))

;draw the data
shade_surf, d, ax=50.

IDL works a bit differently to VTK, instead of making analytic functions
and sampling them (this is what MATLAB does, right?), you make the
data first (or read the data) and make the function out of the data.

IDL is VTK with added data analysis. PV-WAVE, the poor ,
disowned sibling of IDL, uses VTK as the graphics backend (hidden beneath
layers of API). If you want to draw some 3d objects in IDL you can,
you'll probably need to learn the object graphics part of IDL, which
probably isn't any harder than learning the VTK API.

Have a look at the idldemo if you're still unsure. There are a few 3d
isosurface and medical mri images there to play with. Have a look at
David's website, http://dfanning.com/ , the IDL programs section has some
imaging examples.

Chris.
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: save an IDLanROI to file? (newbie question)
Next Topic: TVimage and PlotS

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

Current Time: Sat Oct 11 08:14:54 PDT 2025

Total time taken to generate the page: 1.11824 seconds