Advertisement
Guest User

Untitled

a guest
Aug 18th, 2017
52
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. for(i = 0; i < number_of_ferns; i++)
  2. {
  3.     index = 0;
  4.     for(j = 0; j < ntf; j++)
  5.     {
  6.         if (Memory.readUnsignedByte(img + tst.ind1) < Memory.readUnsignedByte(img + tst.ind2)) index++;
  7.         if (j < ntf - 1) index <<= 1;
  8.        
  9.         tst = tst.next;
  10.     }
  11.     leaves_index[i] = index;
  12. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement