p4loop8c.m 1.6 KB

123456789101112131415161718192021222324252627282930313233343536
  1. %% CALLED BY par4Gbl_Main8c.m %%
  2. function[p4L4,...
  3. TmpexpScanIntens4,TmpFexpScanSpots4,TmpFexpScanBMtp4,TmpanlZoneRefs4,Tmpsbdg4]= ...
  4. p4loop8c(parMat,tptLength,numScans,selScanNumLst,SWsingleSc,Fflg,PTmapPos,optCirMask,diaExt,doCircle,cirPixA,cirMask,width, ...
  5. TmpexpScanIntens00,TmpFexpScanSpots00,TmpFexpScanBMtp00,TmpanlZoneRefs00,~,tifFileLstP4,pathname,ImParMat, ...
  6. numRows,numCols,scLst,easyResultsDir,projectScansDir, p4L00,TmpexpScanIntens4,TmpFexpScanSpots4,TmpFexpScanBMtp4,TmpanlZoneRefs4, Tmpsbdg00, Tmpsbdg4)
  7. p4L0=p4L00;
  8. TmpexpScanIntens0=TmpexpScanIntens00;
  9. TmpFexpScanSpots0=TmpFexpScanSpots00;
  10. TmpFexpScanBMtp0=TmpFexpScanBMtp00;
  11. TmpanlZoneRefs0=TmpanlZoneRefs00;
  12. Tmpsbdg0= Tmpsbdg00;
  13. % for scCount=1:numScans
  14. if SWsingleSc==1
  15. parforArg=0;
  16. else
  17. parforArg=inf;
  18. end
  19. % for (scCount=1:numScans)
  20. parfor (scCount=1:numScans,parforArg)
  21. scCount % for debugging
  22. p4L0=cell(18,1);
  23. [p4L3,TmpexpScanIntens3,TmpFexpScanSpots3,TmpFexpScanBMtp3,TmpanlZoneRefs3,Tmpsbdg3]= ...
  24. par4GblFnc8c(parMat,tptLength,numScans,selScanNumLst,SWsingleSc,Fflg,PTmapPos,optCirMask,diaExt,doCircle,cirPixA,cirMask,width, ...
  25. TmpexpScanIntens0,TmpFexpScanSpots0,TmpFexpScanBMtp0,TmpanlZoneRefs0,scCount,tifFileLstP4,pathname,ImParMat, ...
  26. numRows,numCols, scLst,easyResultsDir,projectScansDir, p4L0,Tmpsbdg0);
  27. p4L4(:,scCount)=p4L3; % (:,scCount);
  28. TmpexpScanIntens4(scCount)=TmpexpScanIntens3;
  29. TmpFexpScanSpots4(scCount)=TmpFexpScanSpots3;
  30. TmpFexpScanBMtp4(scCount)=TmpFexpScanBMtp3;
  31. TmpanlZoneRefs4(scCount)=TmpanlZoneRefs3;
  32. Tmpsbdg4(scCount)=Tmpsbdg3;
  33. end