i want to know how to implement blendlinear() function
i want to blend two images together, and i have used the addweighted and i understand how it works, but am trying to use the blendlinear function(to my own understanding it can be used to blend images) but i cant actually understand how to use it.
blendLinear ( InputArray src1, // this are Mat images and should be the same size as the src2
InputArray src2,
InputArray weights1,
InputArray weights2, // i don't actually understand this two
OutputArray dst // the destination image it should also bee the same size and type as src1
)
can you show, what you tried (code) ? it's unclear.
am talking about the blendlinear() function, this is the explanation on the website
Performs linear blending of two images:
dst(i,j)=weights1(i,j)∗src1(i,j)+weights2(i,j)∗src2(i,j) Parameters src1 It has a type of CV_8UC(n) or CV_32FC(n), where n is a positive integer.
src2 It has the same type and size as src1.
weights1 It has a type of CV_32FC1 and the same size with src1.
weights2 It has a type of CV_32FC1 and the same size with src1.
dst It is created if it does not have the same size and type with src1.
not sure, can you please explain "Weight per pixel " for me please..