Created
November 22, 2012 12:02
-
-
Save seaslee/4130800 to your computer and use it in GitHub Desktop.
computer the number of 1->0 and 0->1 transitions in binary string
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| %use in computer the lbp descriptor | |
| j = bitset(bitshift(i,1,samples),1,bitget(i,samples)) %rotate left; cyclic shift | |
| numt = sum(bitget(bitxor(i,j),1:samples)) %number of 1->0 and | |
| %0->1 transitions | |
| %in binary string | |
| %x is equal to the | |
| %number of 1-bits in | |
| %XOR(x,Rotate left(x)) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment