Hi All,<div><br></div><div>I am using Mattes Mutual Information registration to register PET / CT data and in my research I am trying to find the effect of adding two terms to my objective function which controls the effect of the gradient matching.</div>

<div><br></div><div>My question is how do I create the new metric class?</div><div><br></div><div>If you can point me to some example code it will be really helpful. The metric itself is very easy to calculate, since I have the implementation for calculating the three terms already. I just need the new metric to be say:</div>

<div><br></div><div>Mattes_MI + x +y instead of just Mattes_MI</div><div><br></div><div>also is there any easier way of doing this? any suggestions will be helpful.</div><div><br></div><div>Thanks &amp; Regards,</div><div>

Abhik.</div>