Skip to content

Latest commit

 

History

History
42 lines (34 loc) · 1.24 KB

README.md

File metadata and controls

42 lines (34 loc) · 1.24 KB

multi-band-blending

Multi-band blending using the Gaussian and Laplacian pyramids. If you change the shape of the mask, various synthesis is possible.

multiBlending

 multiBlending(img1,img2,Mask,deep)

img1 & img2

8bit, 3-Channel Color image

Mask

8bit, 3-Channel Binary image

deep

Pyramid depth

Result

img1

apple

img2

orange

Mask

mask

result

result

getMask

getMask(img)

if your Mask Image Not binary, you can use this function to make binary Mask.

Example

Input

testMask

Output

binaryMask

Reference

https://docs.opencv.org/4.x/dc/dff/tutorial_py_pyramids.html