[Insight-users] An overlap invariant mutual information metric

Jessica de Ryk jessica-deryk at uiowa . edu
Tue, 25 Nov 2003 10:09:23 -0600


I have still been trying to implement the NormalizedMutualInformationMetric.
As it is, my code generates a run time error that states 'all the points
mapped to outside of the moving image'
I am using;
TranslationTransform
RegularStepGradientOptimizer
LinearInterpolateImageFunction

  unsigned int nBins = 50;
  MetricType::HistogramType::SizeType histSize;
  histSize[0] = nBins;
  histSize[1] = nBins;
  metric->SetHistogramSize(histSize);

  metric->SetPaddingValue(-1);
  metric->UsePaddingValue();

I have set optimizer->MaximizeOn();
                optimizer->SetMaximumStepLength(2.0)
                optimizer->SetMinimumStepLength(0.005)
                optimizer->SetNumberOfIterations(200)

I have set the
Any ideas what could be causing this error?
Thanks
Jess