[Insight-users] Question on cost function of registration

Daniel Mace dlm19 at duke.edu
Wed Dec 20 22:20:29 EST 2006


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
>   



More information about the Insight-users mailing list