MCPcopy Create free account
hub / github.com/BinomialLLC/basis_universal / add_image

Function add_image

example_transcoding/utils.cpp:404–419  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

402}
403
404static void add_image(const imagef& src1, const imagef& src2, imagef& dst)
405{
406 dst.resize(src1);
407
408//#pragma omp parallel for
409 for (int y = 0; y < (int)dst.get_height(); y++)
410 {
411 for (uint32_t x = 0; x < dst.get_width(); x++)
412 {
413 const vec4F& s1 = src1(x, y);
414 const vec4F& s2 = src2(x, y);
415
416 dst(x, y).set(s1[0] + s2[0], s1[1] + s2[1], s1[2] + s2[2], s1[3] + s2[3]);
417 }
418 }
419}
420
421static void adds_image(const imagef& src, const vec4F& value, imagef& dst)
422{

Callers 1

compute_ssimFunction · 0.70

Calls 4

resizeMethod · 0.45
get_heightMethod · 0.45
get_widthMethod · 0.45
setMethod · 0.45

Tested by

no test coverage detected