[Insight-users] normalized mutual information histogram image to image metric

Karthik Krishnan Karthik.Krishnan at kitware.com
Sat Jun 24 10:44:56 EDT 2006


On Tue, 2006-06-20 at 14:54 -0400, Grace Chen wrote:
> Hi there,
>  
> I try to use this metric, and I try to follow the example code by
> setting the histogram Size like this:
>  
> -----------------------------------------------------------------------------
> unsigned int nBins = 50;
> 
> MetricType::HistogramType::SizeType histSize;
> 
> histSize[0] = nBins;
> 
> histSize[1] = nBins;
> 
> histSize[2] = nBins;

> metric->SetHistogramSize(histSize);
> 
> -----------------------------------------------------------------------------
> 
> No matter what number I try...at the run time, I always get this error
> message:
> 
> "Stack around the variable 'hisSize' was corrupted"

The histogram is going to be a 2D histogram. the X axis represents
intensities in the fixed image and the Y axis represents intensities in
the moving image. 

It is not a 3D histogram, which is why you are getting that error.

HTH
-karthik
> 
> Does anyone have any idea what that means?  How should we set the
> metric then??
> 
> Thanx!!
> 
> Grace
> 
> 
> _______________________________________________
> Insight-users mailing list
> Insight-users at itk.org
> http://www.itk.org/mailman/listinfo/insight-users



More information about the Insight-users mailing list