MCPcopy 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

30int nColors = 0;
31int colors[255];
32int getColor( const unsigned char * c ){
33 return c[0] + 256*c[1] + 256*256*c[2];
34}
35void putColor( unsigned char * c, int cc ){
36 c[0] = cc&0xff; c[1] = (cc>>8)&0xff; c[2] = (cc>>16)&0xff;
37}

Callers 1

getLabelingFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected