Library/ManagedCuda/NPP/NPPImage_8uC4.cs
/// <summary>
/// 4 channel 8-bit unsigned planar HLS with alpha to 4 channel 8-bit unsigned planar BGR with alpha color conversion.
/// </summary>
/// <param name="src0">Source image channel 0</param>
/// <param name="src1">Source image channel 1</param>
/// <param name="src2">Source image channel 2</param>
/// <param name="src3">Source image channel 2</param>
/// <param name="dest0">Destination image channel 0</param>
/// <param name="dest1">Destination image channel 1</param>
/// <param name="dest2">Destination image channel 2</param>
/// <param name="dest3">Destination image channel 3</param>
4 channel 8-bit unsigned planar HLS with alpha to 4 channel 8-bit unsigned planar BGR with alpha color conversion.
4 channel 8 - bit unsigned planar HLS with alpha to 4 channel 8 - bit unsigned planar BGR with alpha color conversion .
public static void HLSToBGR(NPPImage_8uC1 src0, NPPImage_8uC1 src1, NPPImage_8uC1 src2, NPPImage_8uC1 src3, NPPImage_8uC1 dest0, NPPImage_8uC1 dest1, NPPImage_8uC1 dest2, NPPImage_8uC1 dest3)
		{
			CUdeviceptr[] arraySrc = new CUdeviceptr[] { src0.DevicePointerRoi, src1.DevicePointerRoi, src2.DevicePointerRoi, src3.DevicePointerRoi };
			CUdeviceptr[] arrayDest = new CUdeviceptr[] { dest0.DevicePointerRoi, dest1.DevicePointerRoi, dest2.DevicePointerRoi, dest3.DevicePointerRoi };
			NppStatus status = NPPNativeMethods.NPPi.HLSToBGR.nppiHLSToBGR_8u_AP4R(arraySrc, src0.Pitch, arrayDest, dest0.Pitch, src0.SizeRoi);
			Debug.WriteLine(String.Format("{0:G}, {1}: {2}", DateTime.Now, "nppiHLSToBGR_8u_AP4R", status));
			NPPException.CheckNppStatus(status, null);
		}
public static void HLSToBGR ( NPPImage_8uC1 src0 , NPPImage_8uC1 src1 , NPPImage_8uC1 src2 , NPPImage_8uC1 src3 , NPPImage_8uC1 dest0 , NPPImage_8uC1 dest1 , NPPImage_8uC1 dest2 , NPPImage_8uC1 dest3 ) { CUdeviceptr [ ] arraySrc = new CUdeviceptr [ ] { src0 . DevicePointerRoi , src1 . DevicePointerRoi , src2 . DevicePointerRoi , src3 . DevicePointerRoi } ; CUdeviceptr [ ] arrayDest = new CUdeviceptr [ ] { dest0 . DevicePointerRoi , dest1 . DevicePointerRoi , dest2 . DevicePointerRoi , dest3 . DevicePointerRoi } ; NppStatus status = NPPNativeMethods . NPPi . HLSToBGR . nppiHLSToBGR_8u_AP4R ( arraySrc , src0 . Pitch , arrayDest , dest0 . Pitch , src0 . SizeRoi ) ; Debug . WriteLine ( String . Format ( " " , DateTime . Now , " " , status ) ) ; NPPException . CheckNppStatus ( status , null ) ; }
4 channel 8-bit unsigned planar HLS with alpha to 4 channel 8-bit unsigned planar BGR with alpha color conversion.
4 channel 8 - bit unsigned planar HLS with alpha to 4 channel 8 - bit unsigned planar BGR with alpha color conversion .
src0
NPPImage_8uC1
Source image channel 0
Source image channel 0
src1
NPPImage_8uC1
Source image channel 1
Source image channel 1
src2
NPPImage_8uC1
Source image channel 2
Source image channel 2
src3
NPPImage_8uC1
Source image channel 2
Source image channel 2
dest0
NPPImage_8uC1
Destination image channel 0
Destination image channel 0
dest1
NPPImage_8uC1
Destination image channel 1
Destination image channel 1
dest2
NPPImage_8uC1
Destination image channel 2
Destination image channel 2
dest3
NPPImage_8uC1
Destination image channel 3
Destination image channel 3