MCPcopy Create free account
hub / github.com/HiLab-git/SimpleCRF / putColor

Function putColor

dependency/densecrf/examples/common.cpp:35–37  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

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}
38// Produce a color image from a bunch of labels
39unsigned char * colorize( const VectorXs & labeling, int W, int H ){
40 unsigned char * r = new unsigned char[ W*H*3 ];

Callers 1

colorizeFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected