MCPcopy Create free account
hub / github.com/MITK/MITK / TupleToColor

Function TupleToColor

Wrapping/Python/mitk/MultiLabelSegmentation.cpp:51–58  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

49{
50
51Color TupleToColor(const std::tuple<float, float, float>& t)
52{
53 Color c;
54 c.SetRed(std::get<0>(t));
55 c.SetGreen(std::get<1>(t));
56 c.SetBlue(std::get<2>(t));
57 return c;
58}
59
60std::tuple<float, float, float> ColorToTuple(const Color& c)
61{

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected