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><br>Frédéric<br><br>PS: sorry for my poor english, I hope you will still understand my problem.
<br>