MCPcopy Create free account
hub / github.com/davisking/dlib / print_rgb_pixel_str

Function print_rgb_pixel_str

tools/python/src/image.cpp:16–23  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

14// ----------------------------------------------------------------------------------------
15
16string print_rgb_pixel_str(const rgb_pixel& p)
17{
18 std::ostringstream sout;
19 sout << "red: "<< (int)p.red
20 << ", green: "<< (int)p.green
21 << ", blue: "<< (int)p.blue;
22 return sout.str();
23}
24
25string print_rgb_pixel_repr(const rgb_pixel& p)
26{

Callers

nothing calls this directly

Calls 1

strMethod · 0.45

Tested by

no test coverage detected