Commit 9a1a2d9a authored by Turnhout, M.C. van's avatar Turnhout, M.C. van
Browse files

add analyseevents to analyseFoV

parent 594cdf38
function [BF, fluo, ncel] = DMA_analyseFoV(imname, param)
function [BF, fluo, ncel, dcel] = DMA_analyseFoV(imname, param)
if nargin < 2, param = DMA_labconfig; param.dir = pwd; end
if nargin < 1
......@@ -144,6 +144,9 @@ save(strcat(name,'.obA'), 'obA', '-ascii');
% save results to file with friendlier format?
DMA_writecsv(fullfile(param.dir, imname), ncel, param);
fprintf('\t* analysing events for %s\n', fullfile(param.dir, imname));
dcel = DMA_analyseevents(imname, param);
% close screen output
fprintf('\tanalysis done for %s -->\n\n', fullfile(param.dir, imname));
......@@ -119,6 +119,8 @@ for d = 1:numel(dois)
dcel((param.nchan-1)*(d-1)+1:(param.nchan-1)*d, 2:end) = dcr;
fprintf('\t* saving results in %s\n', fullfile(param.dir, param.odir, ...
% save dcel explicitely as integers
fid = fopen(fullfile(fpath, strcat(imname(1:end-4), '.dcel')), 'w');
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment