<div>Hi!</div>
<div>&nbsp;</div>
<div>I tested&nbsp;&nbsp;deformableRegistration7.cxx or deformableRegistration8.cxx in MRI's and they work correctly. Now I would like to re adapt def8 for working with binary images.</div>
<div>&nbsp;</div>
<div>I change the metric to MatcthCardinality and the interpolator to NearestNeighbor. </div>
<div>&nbsp;</div>
<div>In the case of the metric I add the method: &nbsp;metric-&gt;MeasureMatchesOff() because the optimizer minimizes the metric, and I remove the lines of MattesMutualInformation as the number of histograms and so on. It is ok??
</div>
<div>&nbsp;</div>
<div>So, I would like to know...:</div>
<div>&nbsp;</div>
<div>1.&nbsp;Advantatges and disvantatges of each one (def7 and def8).</div>
<div>2. I have a&nbsp;problem&nbsp;because the change of metric...:</div>
<div>The initial values are:&nbsp;GetValue()= 0.0709776 and&nbsp;GetInfinityNormOfProjectedGradient()=0</div>
<div>why is 0 the norm? it stops before doing an iteration for this...</div>
<div>&nbsp;</div>
<div>Any advice?</div>
<div>&nbsp;</div>
<div>Thanks!</div>
<div>&nbsp;</div>
<div>&nbsp;</div>