MCPcopy Create free account
hub / github.com/MasteringOpenCV/code / blendImage

Function blendImage

Chapter8_FaceRecognition/ImageUtils_0.7.cpp:1946–2035  ·  view source on GitHub ↗

Blend color images 'image1' and 'image2' using an 8-bit alpha-blending mask channel. Equivalent to this operation on each pixel: imageOut = image1 * (1-(imageAlphaMask/255)) + image2 * (imageAlphaMask/255) So if a pixel in imageAlphMask is 0, then that pixel in imageOut will be image1, or if imageAlphaMask is 255 then imageOut is image2, or if imageAlphaMask was 200 then imageOut would be: image1

Source from the content-addressed store, hash-verified

source not stored for this graph (policy: none)

Callers

nothing calls this directly

Calls 2

cvSizeFunction · 0.85
printImageInfoFunction · 0.70

Tested by

no test coverage detected