Changeset 75


Ignore:
Timestamp:
07/10/13 09:30:42 (11 years ago)
Author:
dtax
Message:

Add the image moment features.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • birds/createmilbirds_19cl.m

    r72 r75  
    115115        imagfeats(j,7) = quantile(seg(:),1);
    116116         
     117           seg = absim.*ix;
     118        momentfeat = [moments(seg,[1;0],[0;1],1,0) ...
     119           moments(seg,[2;1;0],[0;1;2],1,0) ...
     120           moments(seg,[2,1,0],[0,1,2],1,1) ...
     121           hu_moments(seg) zernike_moments(seg)];
    117122       
    118123                % don't forget:
     
    121126       
    122127        end
    123         x{i} = [maskfeats absfeats realfeats imagfeats];
     128        x{i} = [maskfeats absfeats realfeats imagfeats momentfeat];
    124129
    125130        %Get the labels right for the training bags:
Note: See TracChangeset for help on using the changeset viewer.