[Insight-users] IDL and ITK

Frédéric Stevens frederic.stevens at gmail.com
Mon May 14 09:29:02 EDT 2007


Hi,

I would like to use IDL as the graphical interface and use the filters,
segmentation, etc. from ITK.
I read the pictures from IDL and I intend to pass a variable containing the
picture to a filereader or something like that in ITK. Then i want to apply
filters or other things and return the modified picture to IDL.

My problem is : how to pass the picture as an argument to the filereader of
ITK ?
(Knowing that I don't want to directly read it from a file since
modifications had already been applied on the original picture in IDL. Of
course, if there is no possibility, I would save the modified picture of IDL
in a file on the hard drive before using ITK's file reader. But even for
this easier solution, I still don't know how to do that :
I tried to use reader->SetFileName taking the "BrainT1Slice.png" as the
filename. But when i use my DLM in IDL, when it executes the function, it
doesn't find the picture: i don't know in which directory to put it. I have
tried to put it in the IDL directory, the project directory but none worked.
I would prefer a solution only needing variables without file as I said
before.)

It would really help me if someone could give me a hand on this problem.

Thanks a lot in advance,

Frédéric

PS: sorry for my poor english, I hope you will still understand my problem.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://public.kitware.com/pipermail/insight-users/attachments/20070514/6d80b8ac/attachment.htm


More information about the Insight-users mailing list