MCPcopy Create free account
hub / github.com/WallBreaker2/op / has_color_diff

Function has_color_diff

libop/image/ImageSearchAlgorithms.cpp:33–35  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

31}
32
33bool has_color_diff(const color_t &df) {
34 return df.b != 0 || df.g != 0 || df.r != 0;
35}
36
37bool color_matches(const color_t &color, const color_df_t &expected, double sim) {
38 const color_t df = has_color_diff(expected.df) ? expected.df : sim_to_color_diff(sim);

Callers 2

color_matchesFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected