[Insight-users] Question on cost function of registration

Alexander.Wang zjjywmy at 163.com
Thu Dec 21 10:11:07 EST 2006


 
Dan,
 
Have you ever written your own class. It's my first time to do this work. Could you give me some advice, especially on the build step. A cmake file is needed, I think, but I find few information about this. Or is there any tutorial available that I have missed? Thanks.
 
Regards.
Alex
 在2006-12-21,"Daniel Mace" <dlm19 at duke.edu> 写道:

Alex,

The class you probably want to extend is the itk::ImageToImageMetric
(for pixel metrics) class. There are also other classes (point to Image,
point to point metrics), that might be more appropriate. Check out here
for the full list of metric classes:
http://smsc.cnes.fr/PLEIADES/OTB/Doxygen/html/classitk_1_1CostFunction.html

The easiest class to look at to understand the code would probably be
the itk::MeanSquaresImageToImageMetric. Depending on your metric, it's
usually not too difficult to write your own metric class; The only
method I tend to change is the GetValue() method. Since the similarity
metric is already in ITK, the simplest approach would be to cut and
paste that class and modify the GetValue() method to add in your
deformation term.

Cheers,
Dan

Alexander.Wang wrote:
> Hi all,
> I am working on deformable registration, and want to try a new cost
> function when implementing registration. The cost funtion includes a
> similarity term and a deformation term. I only find the Metric
> representing similarity provided in ITK, maybe I missed something.
> Could anyone tell me how to implement this type of cost function? Do I
> need to write a derived class of metric? Any information or reference
> is appreciated.
> Thanks in advance!
> Alexander Wang
>
>
>
> 昨 天 和 女 友 b u y 疯 了 ! ! !
> 年 末 万 种 精 品大 促 销 , 8 0 万 大 奖 天 天 送 ( 绝 对 保 真 )
> <http://adtaobao.allyes.com/main/adfclick?db=adtaobao&bid=600,597,58&cid=29985,198,1&sid=32501&show=ignore&url=http://www.taobao.com/theme/lucky_new_year/index.php>
>
> ------------------------------------------------------------------------
>
> _______________________________________________
> Insight-users mailing list
> Insight-users at itk.org
> http://www.itk.org/mailman/listinfo/insight-users
>   

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://public.kitware.com/pipermail/insight-users/attachments/20061221/e83ca7da/attachment.htm


More information about the Insight-users mailing list