Hi itk-users,<br><br>Previously (Digest Vol 68, Issue 109), I reported a problem I was having with the itk::Statistics::CovarianceSampleFilter. Although, I have not got any feedback on that issue and I could not figure it out by myself, I have overcome the problem by writing my own function to compute the covariance matrix. <br>
<br>Now, I have faced another issue when using the itk::Statistics::GaussianMixtureModelComponent and the itk::Statistics::ExpectationMaximizationMixtureModelEstimator<br><br>Attached I am sending a minimal code to illustrate the problem. For testing the code, I have downloaded two minc images (t1 and a t2 contrasts) from the brainweb projects and converted them to dicom. <br>
<br>The program call and the result are presented bellow <br><br>ferrari@ferrari-workstation:~/Desktop/Test$ bin/test t1_icbm_normal_1mm_pn3_rf20.dcm t2_icbm_normal_1mm_pn3_rf20.dcm<br>1<br>1a<br>1b<br>Segmentation fault<br>
ferrari@ferrari-workstation:~/Desktop/Test$ <br><br>
<br>Again, I really appreciate any help on clarifying these issues. Am I using the itk::Statistics::ImageToListSampleAdaptor class appropriately ?<br><br><br>Thank you very much,<br>Ricardo<br><br><br>