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

Function apply_implicit_color_diff

libop/image/ImageSearchAlgorithms.cpp:42–48  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

40}
41
42void apply_implicit_color_diff(std::vector<color_df_t> &colors, double sim) {
43 const color_t implicit_df = sim_to_color_diff(sim);
44 for (auto &it : colors) {
45 if (!has_color_diff(it.df))
46 it.df = implicit_df;
47 }
48}
49
50std::vector<color_df_t> prepared_color_dfs(const std::vector<color_df_t> &colors, double sim) {
51 std::vector<color_df_t> prepared = colors;

Callers 2

prepared_color_dfsFunction · 0.85
prepared_point_color_dfsFunction · 0.85

Calls 2

sim_to_color_diffFunction · 0.85
has_color_diffFunction · 0.85

Tested by

no test coverage detected