Skip to content
Snippets Groups Projects
Commit 17a57b02 authored by ac_fx's avatar ac_fx
Browse files

SSF channel_distance use SSF.loadImage

parent 47f69f64
Branches
No related tags found
No related merge requests found
...@@ -2,11 +2,15 @@ ...@@ -2,11 +2,15 @@
% ERK_CHANNEL = 1; % ERK_CHANNEL = 1;
% AKT_CHANNEL = 2; % AKT_CHANNEL = 2;
% VELOCITY_CHANNEL = 4; % VELOCITY_CHANNEL = 4;
function res = channel_distances(flist,classList,channel1,channel2,clipLimits) function res = channel_distances(flist,classList,channel1,channel2,clipLimits,tClip)
res=table(); res=table();
if ~exist('tClip','var')
tClip = [];
end
if ~exist('clipLimits','var') || isempty(clipLimits) if ~exist('clipLimits','var') || isempty(clipLimits)
clipLimits = SSF.getClipLimits(flist,[channel1,channel2]); clipLimits = SSF.getClipLimits(flist,[channel1,channel2],0,tClip);
end end
parfor ff = 1:length(flist) parfor ff = 1:length(flist)
...@@ -15,8 +19,8 @@ parfor ff = 1:length(flist) ...@@ -15,8 +19,8 @@ parfor ff = 1:length(flist)
nr = table(); nr = table();
strDB = fullfile(flist(ff).folder,flist(ff).name); strDB = fullfile(flist(ff).folder,flist(ff).name);
im1 = leversc.loadImage(strDB,1,channel1); im1 = SSF.loadImage(strDB,channel1,0,tClip);
im2= leversc.loadImage(strDB,1,channel2); im2= SSF.loadImage(strDB,channel2,0,tClip);
im1 = SSF.quantize8(im1,clipLimits{ff,1}); im1 = SSF.quantize8(im1,clipLimits{ff,1});
im2 = SSF.quantize8(im2,clipLimits{ff,2}); im2 = SSF.quantize8(im2,clipLimits{ff,2});
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment