Skip to content
Snippets Groups Projects
Commit ababc66f authored by ac's avatar ac
Browse files

moved ncd_ssf_volume from leverjs.ssf

parent 1be16581
Branches
No related tags found
No related merge requests found
% i1 and i2 are signal kymos (x,y,t,c)outdir
% we want images {t}(x,y,c)
% package to cell array by t and then pass to in memory FLI%F compressor
function ncd = ncd_ssf_volume(i1,i2)
im12 = NCD.catKymographs(i1,i2,1);
im12 = squeeze(num2cell(im12,[1,2,4]));
s12 = NCD.flifPress(im12);
im21 = NCD.catKymographs(i1,i2,2);
im21 = squeeze(num2cell(im21,[1,2,4]));
s21 = NCD.flifPress(im21);
s12 = min(s12,s21);
i1 = squeeze(num2cell(i1,[1,2,4]));
i2 = squeeze(num2cell(i2,[1,2,4]));
s1 = NCD.flifPress(i1);
s2 = NCD.flifPress(i2);
ncd = ( s12-min(s1,s2)) / (max(s1,s2));
4;
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment