Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

You can use addWeighted to create such an effect.

Like,

  • Load source image.

  • Create a black image with same type and channel as source.

  • Draw whatever you want on black image.

  • Use aaddWeighted, adjust alpha and beta(weight each array element) till you get the result you expected.

You can use addWeighted to create such an effect.

Like,

  • Load source image.

  • Create a black image with same type and channel as source.

  • Draw whatever you want on black image.

  • Use aaddWeighted, adjust alpha and beta(weight each array element) till you get the result you expected.desired result.