[Insight-users] DeformableRegistration8 with Normalized Mutual Information

Luis Ibanez luis.ibanez at kitware.com
Tue Jul 14 12:06:08 EDT 2009


Hi Serena,

When you say that the code

         "doesn't write anything"

do you mean that it:

A) hangs ?
B) seg faults ?
C) throws an exception ?
D) terminate without errors, but without running any iteration ?


Also,
the value of

       scales.Fill( 0.0001 );

is a bit extreme....

Why are you using such a small value ?


     Please let us know,


           Thanks


                 Luis



PS. It will be useful is you post a "diff" between
the original file and yours.

-----------------------------------------------------
On Mon, Jul 13, 2009 at 1:01 PM, Serena Fabbri <fabbri at u.washington.edu>wrote:

>
> Hi All,
>
> I am registering MRI and CT image and I use Normalized Mutual Information.
> I am using DeformableRegistration8 (BSpline Tranformtion) and I have
> replaced in the code only the line about the metric.
> So I have written:
>
>
>        const unsigned int numberOfParameters2 =
> transform->GetNumberOfParameters();
>
>        typedef MetricType::ScalesType ScalesType;
>        ScalesType scales( numberOfParameters2 );
>        scales.Fill( 0.0001 );
>        metric->SetDerivativeStepLengthScales(scales);
>
>        MetricType::HistogramType::SizeType histogramSize;
>        histogramSize[0] = 25;
>        histogramSize[1] = 25;
>        metric->SetHistogramSize( histogramSize );
>
>      optimizer->MaximizeOn();
>
> the problem is the program seems blocked  as the observer associated to
> registration pipeline doesn't write anything.
> Did i miss to write some instructions? any idea?
> I appreciate any suggestion.
>
> Thank you.
>
> Serena.
>
>
>
>
>
>
> _____________________________________
> Powered by www.kitware.com
>
> Visit other Kitware open-source projects at
> http://www.kitware.com/opensource/opensource.html
>
> Please keep messages on-topic and check the ITK FAQ at:
> http://www.itk.org/Wiki/ITK_FAQ
>
> Follow this link to subscribe/unsubscribe:
> http://www.itk.org/mailman/listinfo/insight-users
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.itk.org/pipermail/insight-users/attachments/20090714/89c303d6/attachment.htm>


More information about the Insight-users mailing list