<div>Hi,</div>
<div>&nbsp;</div>
<div>I would like to optimize a general function which is&nbsp;a sum&nbsp;of two terms: &nbsp;(1) metric value calculated from two images, &nbsp;and (2) a potential energy term, say k1*x*x+k2*y*y.&nbsp; My goal is to optimize this function. How can I do that in ITK? Any suggestions will be appreciated.
</div>
<div>Ming</div>