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>&nbsp; Image::SetPixelContainer<br>&nbsp; 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&amp;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> &lt;<a href="mailto:frederic.stevens@gmail.com">frederic.stevens@gmail.com</a>&gt; 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&#39;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&#39;s file reader. But even for this easier solution, I still don&#39;t know how to do that :
<br>I tried to use reader-&gt;SetFileName taking the &quot;BrainT1Slice.png&quot; as the filename. But when i use my DLM in IDL, when it executes the function, it doesn&#39;t find the picture: i don&#39;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>