[Insight-users] Question about itkImageGaussianModelEstimator

Jimmy Wong good_piggy at msn.com
Tue Jul 5 00:05:27 EDT 2005


Dear all,

In itkImageGaussianModelEstimator.txx, line 219, the code is

//-----------------------------------------------------------------------------------
  if(classIndex > 0)
      {
      m_NumberOfSamples[classIndex][0] +=1;
      InputImagePixelType inImgVec = inIt.Get();

      for(unsigned int band_x = 0; band_x < VectorDimension; band_x++)
        {
        m_Means[classIndex][band_x] += inImgVec[band_x];
        for(unsigned int band_y = 0; band_y <= band_x; band_y++ )
          {
          m_Covariance[classIndex][band_x][band_y] += inImgVec[band_x] * 
inImgVec[band_y];
          }
        }
      }
    }// end for

//---------------------------------------------------------------------

If the condition is classIndex > 0, will we lost one class?

Thanks in advance.

Zhimin

_________________________________________________________________
Get an advanced look at the new version of MSN Messenger. 
http://messenger.msn.com.sg/Beta/Default.aspx



More information about the Insight-users mailing list