Changeset 63


Ignore:
Timestamp:
06/24/13 14:33:56 (11 years ago)
Author:
dtax
Message:

Now it should create a good MIL dataset.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • birds/createmilbirds.m

    r62 r63  
    3939        % run over blobs:
    4040        im = abs(S);
    41         thisx = zeros(Nseg,2);
     41        thisx = zeros(Nseg,3);
    4242        for j=1:Nseg
    4343                ix = (bloblab==j);
     
    5454% create a dataset
    5555a = genmil(x);
     56% add the labels one by one:
     57ll = [...
     58'BRCR - Brown Creeper            ';
     59'WIWR - Winter Wren              ';
     60'PSFL - Pacific-slope Flycatcher ';
     61'RBNU - Red-breasted Nuthatch    ';
     62'DEJU - Dark-eyed Junco          ';
     63'OSFL - Olive-sided Flycatcher   ';
     64'HETH - Hermit Thrush            ';
     65'CBCH - Chestnut-backed Chickadee';
     66'VATH - Varied Thrush            ';
     67'HEWA - Hermit Warbler           ';
     68'SWTH - Swainsons Thrush         ';
     69'HAFL - Hammonds Flycatcher      ';
     70'WETA - Western Tanager          '];
     71
     72for i=1:size(baglab,2)
     73   I = ismember(bagid,find(baglab(:,i)));
     74   a = addlabels(a,genmillabels(I',1),ll(i,:));
     75end
     76% set it to the first bird:
     77a = changelablist(a,2);
     78thisll = getlablistnames(a);
     79a = setname(a,strtrim(thisll(curlablist(a),:)));
     80
Note: See TracChangeset for help on using the changeset viewer.