[Insight-users] IDL and ITK

Karthik Krishnan karthik.krishnan at kitware.com
Mon May 14 09:42:19 EDT 2007


Frederic:

Images can be created from raw C style pointers. Please see the classes
itk::Image and itk::ImportImageContainer. Look for the methods :

  Image::SetPixelContainer
  ImportImageContainer::SetImportPointer( T *, .. )

You can pass in a raw pointer of any data type T.

bye
-- 
Karthik Krishnan
R&D Engineer,
Kitware Inc.

On 5/14/07, Frédéric Stevens <frederic.stevens at gmail.com> wrote:
>
> 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.
>
> _______________________________________________
> Insight-users mailing list
> Insight-users at itk.org
> http://www.itk.org/mailman/listinfo/insight-users
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://public.kitware.com/pipermail/insight-users/attachments/20070514/b0690f23/attachment.html


More information about the Insight-users mailing list