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"><<a href="mailto:luis.ibanez@kitware.com">luis.ibanez@kitware.com</a>></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 <<a href="mailto:seress.zoltan@gmail.com">seress.zoltan@gmail.com</a>> wrote:<br>
> Hi,<br>
> Nothing new strategy, I just want to combine that 3 filters in one. So the<br>
> answers are:<br>
><br>
> On Sun, Nov 29, 2009 at 10:14 AM, Karthik Krishnan<br>
> <<a href="mailto:karthik.krishnan@kitware.com">karthik.krishnan@kitware.com</a>> wrote:<br>
>><br>
>> What exactly is your goal ? Are you simply trying to encapsulate the<br>
>> combined functionality of demons registration and the final resampling<br>
>> using the resulting vector field into a single filter ?<br>
><br>
> Yes.<br>
><br>
>><br>
>> Or are you<br>
>> trying to implement a new registration strategy ?<br>
><br>
> No.<br>
>><br>
>> On Fri, Nov 27, 2009 at 2:31 PM, Zoltan Seress <<a href="mailto:seress.zoltan@gmail.com">seress.zoltan@gmail.com</a>><br>
>> wrote:<br>
>> > Hi,<br>
>> > Sorry for the first letter! It was an accident.<br>
>> > I would like to write a composite filter, which<br>
>> ><br>
>> > encapsulates itkDemonsRegistrationFilter, itkLinearInterpolateImageFunction<br>
>> > and itkWarpImageFilter (at least for now). Should I derivate it<br>
>> > from itkPDEDeformableRegistrationFilter (parent<br>
>> > of itkDemonsRegistrationFilter) or itkImageToImageFilter (parent<br>
>> > of itkWarpImageFilter)? Actually I have more questions, but that is the<br>
>> > first to start.<br>
>> > On Fri, Nov 27, 2009 at 8:23 PM, Zoltan Seress <<a href="mailto:seress.zoltan@gmail.com">seress.zoltan@gmail.com</a>><br>
>> > wrote:<br>
>> >><br>
>> >> Dear Listmembers!<br>
>> >><br>
>> >> --<br>
>> >> Zoli<br>
>> ><br>
>> ><br>
>> ><br>
>> > --<br>
>> > Zoli<br>
>> ><br>
>> > _____________________________________<br>
>> > Powered by <a href="http://www.kitware.com" target="_blank">www.kitware.com</a><br>
>> ><br>
>> > Visit other Kitware open-source projects at<br>
>> > <a href="http://www.kitware.com/opensource/opensource.html" target="_blank">http://www.kitware.com/opensource/opensource.html</a><br>
>> ><br>
>> > Kitware offers ITK Training Courses, for more information visit:<br>
>> > <a href="http://www.kitware.com/products/protraining.html" target="_blank">http://www.kitware.com/products/protraining.html</a><br>
>> ><br>
>> > Please keep messages on-topic and check the ITK FAQ at:<br>
>> > <a href="http://www.itk.org/Wiki/ITK_FAQ" target="_blank">http://www.itk.org/Wiki/ITK_FAQ</a><br>
>> ><br>
>> > Follow this link to subscribe/unsubscribe:<br>
>> > <a href="http://www.itk.org/mailman/listinfo/insight-users" target="_blank">http://www.itk.org/mailman/listinfo/insight-users</a><br>
>> ><br>
>> ><br>
><br>
><br>
><br>
> --<br>
> Zoli<br>
><br>
> _____________________________________<br>
> Powered by <a href="http://www.kitware.com" target="_blank">www.kitware.com</a><br>
><br>
> Visit other Kitware open-source projects at<br>
> <a href="http://www.kitware.com/opensource/opensource.html" target="_blank">http://www.kitware.com/opensource/opensource.html</a><br>
><br>
> Kitware offers ITK Training Courses, for more information visit:<br>
> <a href="http://www.kitware.com/products/protraining.html" target="_blank">http://www.kitware.com/products/protraining.html</a><br>
><br>
> Please keep messages on-topic and check the ITK FAQ at:<br>
> <a href="http://www.itk.org/Wiki/ITK_FAQ" target="_blank">http://www.itk.org/Wiki/ITK_FAQ</a><br>
><br>
> Follow this link to subscribe/unsubscribe:<br>
> <a href="http://www.itk.org/mailman/listinfo/insight-users" target="_blank">http://www.itk.org/mailman/listinfo/insight-users</a><br>
><br>
><br>
</div></div></blockquote></div><br><br clear="all"><br>-- <br>Zoli<br>
</div>