예제 #1
0
 /// <summary>
 /// Makes multi-channel GpuMat out of several single-channel GpuMats
 /// </summary>
 /// <param name="srcArr">Pointer to an array of single channel GpuMat pointers</param>
 /// <param name="dst">The multi-channel gpuMat</param>
 /// <param name="stream">Use a Stream to call the function asynchronously (non-blocking) or IntPtr.Zero to call the function synchronously (blocking).</param>
 public static void Merge(VectorOfGpuMat srcArr, IOutputArray dst, Stream stream = null)
 {
    using (OutputArray oaDst = dst.GetOutputArray())
       cudaMerge(srcArr, oaDst, stream);
 }
예제 #2
0
 /// <summary>
 /// Copies each plane of a multi-channel GpuMat to a dedicated GpuMat
 /// </summary>
 /// <param name="src">The multi-channel gpuMat</param>
 /// <param name="dstArray">Pointer to an array of single channel GpuMat pointers</param>
 /// <param name="stream">Use a Stream to call the function asynchronously (non-blocking) or IntPtr.Zero to call the function synchronously (blocking).</param>
 public static void Split(IInputArray src, VectorOfGpuMat dstArray, Stream stream = null)
 {
    using (InputArray iaSrc = src.GetInputArray())
       cudaSplit(iaSrc, dstArray, stream);
 }