Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/HiLab-git/SimpleCRF
/ getColor
Function
getColor
dependency/densecrf/examples/common.cpp:32–34 ·
view source on GitHub ↗
Source
from the content-addressed store, hash-verified
30
int nColors = 0;
31
int colors[255];
32
int getColor( const unsigned char * c ){
33
return c[0] + 256*c[1] + 256*256*c[2];
34
}
35
void putColor( unsigned char * c, int cc ){
36
c[0] = cc&0xff; c[1] = (cc>>8)&0xff; c[2] = (cc>>16)&0xff;
37
}
Callers
1
getLabeling
Function · 0.85
Calls
no outgoing calls
Tested by
no test coverage detected