Frederic:<br><br>Images can be created from raw C style pointers. Please see the classes itk::Image and itk::ImportImageContainer. Look for the methods :<br><br> Image::SetPixelContainer<br> ImportImageContainer::SetImportPointer( T *, .. )
<br><br>You can pass in a raw pointer of any data type T.<br><br>bye<br>-- <br>Karthik Krishnan<br>R&D Engineer,<br>Kitware Inc.
<br><br><div><span class="gmail_quote">On 5/14/07, <b class="gmail_sendername">Frédéric Stevens</b> <<a href="mailto:frederic.stevens@gmail.com">frederic.stevens@gmail.com</a>> wrote:</span><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
Hi,<br><br>I would like to use IDL as the graphical interface and use the filters, segmentation, etc. from ITK.<br>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.
<br><br>My problem is : how to pass the picture as an argument to the filereader of ITK ?<br>(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 :
<br>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.
<br>I would prefer a solution only needing variables without file as I said before.)<br><br>It would really help me if someone could give me a hand on this problem.<br><br>Thanks a lot in advance,<br><span class="sg"><br>
Frédéric<br></span><br>PS: sorry for my poor english, I hope you will still understand my problem.
<br>
<br>_______________________________________________<br>Insight-users mailing list<br><a onclick="return top.js.OpenExtLink(window,event,this)" href="mailto:Insight-users@itk.org">Insight-users@itk.org</a><br><a onclick="return top.js.OpenExtLink(window,event,this)" href="http://www.itk.org/mailman/listinfo/insight-users" target="_blank">
http://www.itk.org/mailman/listinfo/insight-users</a><br><br></blockquote></div><br><br clear="all"><br>