Hi there,I currently have set of images which I get from taking the average from a group of smaller images, I am just wondering if it is possible if I could get an array of the std deviation between the images from n2 to n1? Everytime I try I end up taking just the Overall Standard Deviation from the image
if true for n=n1:n2 stem='E:\29th April New\NEW Gain=99_No Delay_ Gate=0.02_0'; r=n-1; r=int2str(r); combinedStr=strcat(stem,r); Images=99; t=10;AvgImg =(zeros(1024,1280)); for i=t:Images; B=readimx(fullfile(combinedStr,['B000',int2str(i),'.im7'])); C=B.Frames{1}.Components{1}; V = C.Planes; Img = V{1,1}; J = imrotate(Img,-90); I2 =(flip(J,2)); FUNC=@(x)max(x(:)); I3=medfilt2(I2,[1 1]); AvgImg = AvgImg +double(I3); end figure(n-1) AverageImg = AvgImg/(Images-t); AverageImgB=90; AverageImgLII=uint16(AverageImg-AverageImgB); K=imagesc(flipud(AverageImgLII)); set(gca,'YDir','normal'); end
Best Answer