source: birds/makemillabeled.m @ 159

Last change on this file since 159 was 64, checked in by dtax, 11 years ago

Force it to be a MIL dataset.

File size: 508 bytes
RevLine 
[64]1%   b = makemillabeld(a,classnr)
2%
3% Make the current labels the positive MIL class.
4function b = makemillabeld(a,classnr)
5
6if nargin<2
7   classnr = [];
8end
9
10llnames = getlablistnames(a);
11if ~isempty(classnr)
12   a = changelablist(a,classnr);
13   a = setname(a,strtrim(llnames(curlablist(a),:)));
14end
15
16if isempty(strmatch('millab',llnames))
17   b = addlabels(a,getlab(a),'millab');
18else
19   lab = getlab(a);
20   [thisnr,thisname] = curlablist(a);
21   a = changelablist(a,'millab');
22   b = setlabels(a,lab);
23end
24
25
26
Note: See TracBrowser for help on using the repository browser.