Hi Luis,<div><br></div><div>Thanks for the detailed answer. Meanwhile I managed to write what I wanted, but I derived it from itk<span class="Apple-style-span" style="font-family: arial, sans-serif; font-size: 13px; border-collapse: collapse; ">PDEDeformableRegistrationFilter. Maybe the result does not completely fulfill the requirements of a standard itk filter, but it seems to work.Nevertheless I will take a good look at the tutorial you proposed.</span><br>
<br><div class="gmail_quote">On Wed, Dec 2, 2009 at 1:13 AM, Luis Ibanez <span dir="ltr">&lt;<a href="mailto:luis.ibanez@kitware.com">luis.ibanez@kitware.com</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">
Hi Zoltan,<br>
<br>
If you want to package the full functionality of the classes:<br>
<br>
   * itkDemonsRegistrationFilter<br>
   * itkLinearInterpolateImageFunction<br>
   * itkWarpImageFilter<br>
<br>
<br>
you should create a new filter that derives from<br>
<br>
          itk::ImageToImageFilter<br>
<br>
 takes 2 inputs:<br>
<br>
 * The Fixed Image<br>
 * The Moving Image<br>
<br>
and produce one output:<br>
<br>
* The Resampled Image<br>
<br>
<br>
Inside the GenerateData() method of your new filter,<br>
you could pack most of the code of the example:<br>
<br>
<br>
   Insight/Examples/Registration/<br>
              DeformableRegistration2.cxx<br>
<br>
<br>
For instructions on how to write a new ITK filter,<br>
you may want to look at the Tutorial:<br>
<br>
<a href="http://www.na-mic.org/Wiki/images/b/bc/Insight-Writing-a-New-Filter.ppt" target="_blank">http://www.na-mic.org/Wiki/images/b/bc/Insight-Writing-a-New-Filter.ppt</a><br>
<br>
<br>
    Regards,<br>
<br>
<br>
            Luis<br>
<br>
<br>
---------------------------------------------------<br>
<div><div></div><div class="h5">On Sun, Nov 29, 2009 at 4:57 AM, Zoltan Seress &lt;<a href="mailto:seress.zoltan@gmail.com">seress.zoltan@gmail.com</a>&gt; wrote:<br>
&gt; Hi,<br>
&gt; Nothing new strategy, I just want to combine that 3 filters in one. So the<br>
&gt; answers are:<br>
&gt;<br>
&gt; On Sun, Nov 29, 2009 at 10:14 AM, Karthik Krishnan<br>
&gt; &lt;<a href="mailto:karthik.krishnan@kitware.com">karthik.krishnan@kitware.com</a>&gt; wrote:<br>
&gt;&gt;<br>
&gt;&gt; What exactly is your goal ? Are you simply trying to encapsulate the<br>
&gt;&gt; combined functionality of demons registration and the final resampling<br>
&gt;&gt; using the resulting vector field into a single filter ?<br>
&gt;<br>
&gt; Yes.<br>
&gt;<br>
&gt;&gt;<br>
&gt;&gt; Or are you<br>
&gt;&gt; trying to implement a new registration strategy ?<br>
&gt;<br>
&gt; No.<br>
&gt;&gt;<br>
&gt;&gt; On Fri, Nov 27, 2009 at 2:31 PM, Zoltan Seress &lt;<a href="mailto:seress.zoltan@gmail.com">seress.zoltan@gmail.com</a>&gt;<br>
&gt;&gt; wrote:<br>
&gt;&gt; &gt; Hi,<br>
&gt;&gt; &gt; Sorry for the first letter! It was an accident.<br>
&gt;&gt; &gt; I would like to write a composite filter, which<br>
&gt;&gt; &gt;<br>
&gt;&gt; &gt; encapsulates itkDemonsRegistrationFilter, itkLinearInterpolateImageFunction<br>
&gt;&gt; &gt; and itkWarpImageFilter (at least for now). Should I derivate it<br>
&gt;&gt; &gt; from itkPDEDeformableRegistrationFilter (parent<br>
&gt;&gt; &gt; of itkDemonsRegistrationFilter) or itkImageToImageFilter (parent<br>
&gt;&gt; &gt; of itkWarpImageFilter)? Actually I have more questions, but that is the<br>
&gt;&gt; &gt; first to start.<br>
&gt;&gt; &gt; On Fri, Nov 27, 2009 at 8:23 PM, Zoltan Seress &lt;<a href="mailto:seress.zoltan@gmail.com">seress.zoltan@gmail.com</a>&gt;<br>
&gt;&gt; &gt; wrote:<br>
&gt;&gt; &gt;&gt;<br>
&gt;&gt; &gt;&gt; Dear Listmembers!<br>
&gt;&gt; &gt;&gt;<br>
&gt;&gt; &gt;&gt; --<br>
&gt;&gt; &gt;&gt; Zoli<br>
&gt;&gt; &gt;<br>
&gt;&gt; &gt;<br>
&gt;&gt; &gt;<br>
&gt;&gt; &gt; --<br>
&gt;&gt; &gt; Zoli<br>
&gt;&gt; &gt;<br>
&gt;&gt; &gt; _____________________________________<br>
&gt;&gt; &gt; Powered by <a href="http://www.kitware.com" target="_blank">www.kitware.com</a><br>
&gt;&gt; &gt;<br>
&gt;&gt; &gt; Visit other Kitware open-source projects at<br>
&gt;&gt; &gt; <a href="http://www.kitware.com/opensource/opensource.html" target="_blank">http://www.kitware.com/opensource/opensource.html</a><br>
&gt;&gt; &gt;<br>
&gt;&gt; &gt; Kitware offers ITK Training Courses, for more information visit:<br>
&gt;&gt; &gt; <a href="http://www.kitware.com/products/protraining.html" target="_blank">http://www.kitware.com/products/protraining.html</a><br>
&gt;&gt; &gt;<br>
&gt;&gt; &gt; Please keep messages on-topic and check the ITK FAQ at:<br>
&gt;&gt; &gt; <a href="http://www.itk.org/Wiki/ITK_FAQ" target="_blank">http://www.itk.org/Wiki/ITK_FAQ</a><br>
&gt;&gt; &gt;<br>
&gt;&gt; &gt; Follow this link to subscribe/unsubscribe:<br>
&gt;&gt; &gt; <a href="http://www.itk.org/mailman/listinfo/insight-users" target="_blank">http://www.itk.org/mailman/listinfo/insight-users</a><br>
&gt;&gt; &gt;<br>
&gt;&gt; &gt;<br>
&gt;<br>
&gt;<br>
&gt;<br>
&gt; --<br>
&gt; Zoli<br>
&gt;<br>
&gt; _____________________________________<br>
&gt; Powered by <a href="http://www.kitware.com" target="_blank">www.kitware.com</a><br>
&gt;<br>
&gt; Visit other Kitware open-source projects at<br>
&gt; <a href="http://www.kitware.com/opensource/opensource.html" target="_blank">http://www.kitware.com/opensource/opensource.html</a><br>
&gt;<br>
&gt; Kitware offers ITK Training Courses, for more information visit:<br>
&gt; <a href="http://www.kitware.com/products/protraining.html" target="_blank">http://www.kitware.com/products/protraining.html</a><br>
&gt;<br>
&gt; Please keep messages on-topic and check the ITK FAQ at:<br>
&gt; <a href="http://www.itk.org/Wiki/ITK_FAQ" target="_blank">http://www.itk.org/Wiki/ITK_FAQ</a><br>
&gt;<br>
&gt; Follow this link to subscribe/unsubscribe:<br>
&gt; <a href="http://www.itk.org/mailman/listinfo/insight-users" target="_blank">http://www.itk.org/mailman/listinfo/insight-users</a><br>
&gt;<br>
&gt;<br>
</div></div></blockquote></div><br><br clear="all"><br>-- <br>Zoli<br>
</div>