Skip to content

Commit

Permalink
unNorm
Browse files Browse the repository at this point in the history
  • Loading branch information
scott committed Mar 28, 2017
1 parent 73be588 commit 049d133
Showing 1 changed file with 4 additions and 6 deletions.
10 changes: 4 additions & 6 deletions unNormCLASSES.m
Original file line number Diff line number Diff line change
Expand Up @@ -22,18 +22,16 @@
for t=1:svca4.nFrames
PET_t = PET(:,:,:,t);
vals = PET_t(indMASK) - mean(PET_t(indMASK));
vals2(t) = std(vals(:));
frameSTD(t) = std(vals(:));
frameMean(t) = mean(PET_t(indMASK));
frameSTD(t) = std(vals(:));
frameS(t) = std(PET_t(indMASK));

end

CLASSES = squeeze(nanmean(svca4.classes_it00,1));

repMean = repmat(frameMean,4,1,1);
repSTD = repmat(frameS,4,1,1);
repSTD = repmat(frameSTD,4,1,1);
indCLASSES(:,:,fi) = (CLASSES.*repSTD)+repMean;
figure; plot(svca4.PET_standardEndTimes,indCLASSES(:,:,fi)')
end

meanCLASSES = squeeze(nanmean(indCLASSES,3));
leg = {'GM' 'WM' 'Blood' 'HSB-thalamus'};

0 comments on commit 049d133

Please sign in to comment.