MCPcopy Create free account
hub / github.com/creatale/node-dv / GetMatchColorFor

Function GetMatchColorFor

deps/tesseract/classify/intproto.cpp:1512–1524  ·  view source on GitHub ↗

* @param Evidence evidence value to return color for * @return Color which corresponds to specified Evidence value. * @note Globals: none * @note Exceptions: none * @note History: Thu Mar 21 15:24:52 1991, DSJ, Created. */

Source from the content-addressed store, hash-verified

1510 * @note History: Thu Mar 21 15:24:52 1991, DSJ, Created.
1511 */
1512ScrollView::Color GetMatchColorFor(FLOAT32 Evidence) {
1513 assert (Evidence >= 0.0);
1514 assert (Evidence <= 1.0);
1515
1516 if (Evidence >= 0.90)
1517 return ScrollView::WHITE;
1518 else if (Evidence >= 0.75)
1519 return ScrollView::GREEN;
1520 else if (Evidence >= 0.50)
1521 return ScrollView::RED;
1522 else
1523 return ScrollView::BLUE;
1524} /* GetMatchColorFor */
1525
1526/**
1527 * This routine returns (in Fill) the specification of

Callers 2

DisplayIntFeatureFunction · 0.85
DisplayIntProtoFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected