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

Function writePPM

dependency/densecrf/examples/ppm.cpp:98–109  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

96}
97
98void writePPM ( const char* filename, int W, int H, unsigned char* data )
99{
100 FILE* fp = fopen ( filename, "wb" );
101 if ( !fp )
102 {
103 printf ( "Failed to open file '%s'!\n", filename );
104 }
105 fprintf ( fp, "P6\n%d %d\n%d\n", W, H, 255 );
106 fwrite ( data, 1, W*H*3, fp );
107 fclose ( fp );
108 //*/
109}

Callers 2

mainFunction · 0.85
mainFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected