analyzePixel.m 638 B

1234567891011121314151617181920212223242526
  1. %reset random generator
  2. rng shuffle
  3. %add nrrd processing capability
  4. addpath('nrrd_read_write_rensonnet')
  5. [cax,cm]=loadTime(path,patientID);
  6. segmFile=fullfile(path,patientID,sprintf('%s_Segmentation.txt',patientID));
  7. %v0=loadPixels(segm,patientID);
  8. v0=dlmread(segmFile);
  9. data=loadSPECTdata(path,patientID,cm);
  10. sigma2=str2num(sigma2);
  11. na=7;
  12. fcenters=extractCenters(data,v0,sigma2,na);
  13. %this will write out fitPar
  14. [globalPar, cPars] = fitCentersPixel(path, patientID, cax, cm, fcenters,sigma2);
  15. %[globalPar, cPars, xa, U]=fitFromClusters(path,cax, cm, data, nclass,realizationId);
  16. disp('DynamicPixelAnalysis done');
  17. quit;
  18. %writeData