Example #1
0
 private static extern void cudaAlphaComp(IntPtr img1, IntPtr img2, IntPtr dst, AlphaCompTypes alphaOp, IntPtr stream);
Example #2
0
 private static extern void cudaAlphaComp(IntPtr img1, IntPtr img2, IntPtr dst, AlphaCompTypes alphaOp, IntPtr stream);
Example #3
0
 /// <summary>
 /// Composites two images using alpha opacity values contained in each image.
 /// </summary>
 /// <param name="img1">First image. Supports CV_8UC4 , CV_16UC4 , CV_32SC4 and CV_32FC4 types.</param>
 /// <param name="img2">Second image. Must have the same size and the same type as img1 .</param>
 /// <param name="dst">Destination image</param>
 /// <param name="alphaOp">Flag specifying the alpha-blending operation</param>
 /// <param name="stream">Stream for the asynchronous version</param>
 public static void AlphaComp(IInputArray img1, IInputArray img2, IOutputArray dst, AlphaCompTypes alphaOp,
                              Stream stream = null)
 {
     using (InputArray iaImg1 = img1.GetInputArray())
         using (InputArray iaImg2 = img2.GetInputArray())
             using (OutputArray oaDst = dst.GetOutputArray())
             {
                 cudaAlphaComp(iaImg1, iaImg2, oaDst, alphaOp, stream);
             }
 }
Example #4
0
 /// <summary>
 /// Composites two images using alpha opacity values contained in each image.
 /// </summary>
 /// <param name="img1">First image. Supports CV_8UC4 , CV_16UC4 , CV_32SC4 and CV_32FC4 types.</param>
 /// <param name="img2">Second image. Must have the same size and the same type as img1 .</param>
 /// <param name="dst">Destination image</param>
 /// <param name="alphaOp">Flag specifying the alpha-blending operation</param>
 /// <param name="stream">Stream for the asynchronous version</param>
 public static void AlphaComp(IInputArray img1, IInputArray img2, IOutputArray dst, AlphaCompTypes alphaOp,
    Stream stream = null)
 {
    using (InputArray iaImg1 = img1.GetInputArray())
    using (InputArray iaImg2 = img2.GetInputArray())
       using (OutputArray oaDst = dst.GetOutputArray())
       {
          cudaAlphaComp(iaImg1, iaImg2, oaDst, alphaOp, stream);
       }
 }