예제 #1
1
 private static extern void cudaDemosaicing(IntPtr src, IntPtr dst, DemosaicTypes code, int dcn, IntPtr stream);
예제 #2
0
 private static extern void cudaDemosaicing(IntPtr src, IntPtr dst, DemosaicTypes code, int dcn, IntPtr stream);
예제 #3
0
 /// <summary>
 /// Converts an image from Bayer pattern to RGB or grayscale.
 /// </summary>
 /// <param name="src">Source image (8-bit or 16-bit single channel).</param>
 /// <param name="dst">Destination image.</param>
 /// <param name="code">Color space conversion code (see the description below).</param>
 /// <param name="dcn">Number of channels in the destination image. If the parameter is 0, the number of the channels is derived automatically from src and the code .</param>
 /// <param name="stream">Stream for the asynchronous version.</param>
 public static void Demosaicing(IInputArray src, IOutputArray dst, DemosaicTypes code, int dcn = -1, Stream stream = null)
 {
     using (InputArray iaSrc = src.GetInputArray())
         using (OutputArray oaDst = dst.GetOutputArray())
             cudaDemosaicing(iaSrc, oaDst, code, dcn, stream);
 }
예제 #4
0
 /// <summary>
 /// Converts an image from Bayer pattern to RGB or grayscale.
 /// </summary>
 /// <param name="src">Source image (8-bit or 16-bit single channel).</param>
 /// <param name="dst">Destination image.</param>
 /// <param name="code">Color space conversion code (see the description below).</param>
 /// <param name="dcn">Number of channels in the destination image. If the parameter is 0, the number of the channels is derived automatically from src and the code .</param>
 /// <param name="stream">Stream for the asynchronous version.</param>
 public static void Demosaicing(IInputArray src, IOutputArray dst, DemosaicTypes code, int dcn = -1, Stream stream = null)
 {
    using (InputArray iaSrc = src.GetInputArray())
    using (OutputArray oaDst = dst.GetOutputArray())
       cudaDemosaicing(iaSrc, oaDst, code, dcn, stream);
 }