<div dir="ltr">Have you checked whether your images are physically overlapping?<div><br></div><div>You could also try to change the number of MI samples to avoid accidentally sampling only from homogeneous regions.</div><div>
<br></div><div>Best of luck,</div><div>Tobias</div></div><div class="gmail_extra"><br><br><div class="gmail_quote">2014-08-26 15:31 GMT+02:00 jan <span dir="ltr"><<a href="mailto:jan.bergmeier@imes.uni-hannover.de" target="_blank">jan.bergmeier@imes.uni-hannover.de</a>></span>:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Hi,<br>
<br>
my attempt with the identity transform would be this:<br>
<br>
    typedef itk::IdentityTransform< double, 2 > TransformType;<br>
    typedef itk::MutualInformationImageToImageMetric< UChar2DImageType,<br>
UChar2DImageType > MetricType;<br>
<div class=""><br>
    TransformType::Pointer transform = TransformType::New();<br>
    MetricType::Pointer metric = MetricType::New();<br>
<br>
</div><div class="">    metric->SetFixedImage( fixedImage );<br>
    metric->SetMovingImage( movingImage );<br>
</div>    metric->GetValue( transform->GetParameters() );<br>
<br>
For me it's the same problem. The program crashes when I use GetValue(). It<br>
seems to me as if the parameters need to be OptimizerParameters....<br>
<br>
Thanks,<br>
Jan<br>
<br>
<br>
<br>
--<br>
View this message in context: <a href="http://itk-insight-users.2283740.n2.nabble.com/MutualInformationImageToImageMetric-without-transformation-tp7586081p7586120.html" target="_blank">http://itk-insight-users.2283740.n2.nabble.com/MutualInformationImageToImageMetric-without-transformation-tp7586081p7586120.html</a><br>

<div class="HOEnZb"><div class="h5">Sent from the ITK Insight Users mailing list archive at Nabble.com.<br>
_____________________________________<br>
Powered by <a href="http://www.kitware.com" target="_blank">www.kitware.com</a><br>
<br>
Visit other Kitware open-source projects at<br>
<a href="http://www.kitware.com/opensource/opensource.html" target="_blank">http://www.kitware.com/opensource/opensource.html</a><br>
<br>
Kitware offers ITK Training Courses, for more information visit:<br>
<a href="http://www.kitware.com/products/protraining.php" target="_blank">http://www.kitware.com/products/protraining.php</a><br>
<br>
Please keep messages on-topic and check the ITK FAQ at:<br>
<a href="http://www.itk.org/Wiki/ITK_FAQ" target="_blank">http://www.itk.org/Wiki/ITK_FAQ</a><br>
<br>
Follow this link to subscribe/unsubscribe:<br>
<a href="http://public.kitware.com/mailman/listinfo/insight-users" target="_blank">http://public.kitware.com/mailman/listinfo/insight-users</a><br>
</div></div></blockquote></div><br></div>