-
Notifications
You must be signed in to change notification settings - Fork 0
/
SC_Retrieve_Features.m
29 lines (25 loc) · 1011 Bytes
/
SC_Retrieve_Features.m
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
function [feats, names, slfnames] = SC_Retrieve_Features(method)
%function sc_yeastfeatcalc(har_intbins, downsamplerate,featset)
%SC_YEASTFEATCALC A function for cell/field feature calculation
% 22-Nov-2005 Initial write T. Zhao
% 09-Aug-2006 Modified S.C. Chen
imglist = load(method.procfilesmatname);
nprocfiles = length(imglist.procfiles{1});
if method.celllevel == 1
resultdir180feat = [method.resultdir filesep method.thresmethod 'feat_b256_d1'];
resultdir = [method.resultdir filesep method.thresmethod 'feat_b' num2str(method.har_intbins) '_d' num2str(method.downsamplerate)];
segdirpath = [method.resultdir filesep 'handseg'];
else
fprintf(1,'error\n');
end
feats = [];
for n=1:nprocfiles
featFileName = ['Cell' num2str(n) '_features'];
resultfile = [resultdir filesep featFileName '.mat'];
if exist(resultfile)
tmp = load(resultfile);
feats = [feats; tmp.feats];
end
end
names = tmp.names;
slfnames = tmp.slfnames;