[−][src]Function opencv::cudaimgproc::alpha_comp
pub fn alpha_comp(
img1: &dyn ToInputArray,
img2: &dyn ToInputArray,
dst: &mut dyn ToOutputArray,
alpha_op: i32,
stream: &mut Stream
) -> Result<()>
Composites two images using alpha opacity values contained in each image.
Parameters
- img1: First image. Supports CV_8UC4 , CV_16UC4 , CV_32SC4 and CV_32FC4 types.
- img2: Second image. Must have the same size and the same type as img1 .
- dst: Destination image.
- alpha_op: Flag specifying the alpha-blending operation:
- ALPHA_OVER
- ALPHA_IN
- ALPHA_OUT
- ALPHA_ATOP
- ALPHA_XOR
- ALPHA_PLUS
- ALPHA_OVER_PREMUL
- ALPHA_IN_PREMUL
- ALPHA_OUT_PREMUL
- ALPHA_ATOP_PREMUL
- ALPHA_XOR_PREMUL
- ALPHA_PLUS_PREMUL
- ALPHA_PREMUL
- stream: Stream for the asynchronous version.
Note:
- An example demonstrating the use of alphaComp can be found at opencv_source_code/samples/gpu/alpha_comp.cpp
C++ default parameters
- stream: Stream::Null()