Library/ManagedCuda/NPP/NPPImage_16sC4.cs
/// <summary>
/// 3 channel planar 8-bit unsigned inplace color twist.
/// An input color twist matrix with floating-point pixel values is applied
/// within ROI.
/// </summary>
/// <param name="srcDest0">Source / Destination image (Channel 0)</param>
/// <param name="srcDest1">Source / Destinationimage (Channel 1)</param>
/// <param name="srcDest2">Source / Destinationimage (Channel 2)</param>
/// <param name="twistMatrix">The color twist matrix with floating-point pixel values [3,4].</param>
3 channel planar 8-bit unsigned inplace color twist.
An input color twist matrix with floating-point pixel values is applied
within ROI.
3 channel planar 8 - bit unsigned inplace color twist . An input color twist matrix with floating - point pixel values is applied within ROI .
public static void ColorTwist(NPPImage_16sC1 srcDest0, NPPImage_16sC1 srcDest1, NPPImage_16sC1 srcDest2, float[,] twistMatrix)
		{
			CUdeviceptr[] src = new CUdeviceptr[] { srcDest0.DevicePointerRoi, srcDest1.DevicePointerRoi, srcDest2.DevicePointerRoi };
			NppStatus status = NPPNativeMethods.NPPi.ColorTwist.nppiColorTwist32f_16s_IP3R(src, srcDest0.Pitch, srcDest0.SizeRoi, twistMatrix);
			Debug.WriteLine(String.Format("{0:G}, {1}: {2}", DateTime.Now, "nppiColorTwist32f_16s_IP3R", status));
			NPPException.CheckNppStatus(status, null);
		}
public static void ColorTwist ( NPPImage_16sC1 srcDest0 , NPPImage_16sC1 srcDest1 , NPPImage_16sC1 srcDest2 , float [ , ] twistMatrix ) { CUdeviceptr [ ] src = new CUdeviceptr [ ] { srcDest0 . DevicePointerRoi , srcDest1 . DevicePointerRoi , srcDest2 . DevicePointerRoi } ; NppStatus status = NPPNativeMethods . NPPi . ColorTwist . nppiColorTwist32f_16s_IP3R ( src , srcDest0 . Pitch , srcDest0 . SizeRoi , twistMatrix ) ; Debug . WriteLine ( String . Format ( " " , DateTime . Now , " " , status ) ) ; NPPException . CheckNppStatus ( status , null ) ; }
3 channel planar 8-bit unsigned inplace color twist.
3 channel planar 8 - bit unsigned inplace color twist .
srcDest0
NPPImage_16sC1
Source / Destination image (Channel 0)
Source / Destination image ( Channel 0 )
srcDest1
NPPImage_16sC1
Source / Destinationimage (Channel 1)
Source / Destinationimage ( Channel 1 )
srcDest2
NPPImage_16sC1
Source / Destinationimage (Channel 2)
Source / Destinationimage ( Channel 2 )
twistMatrix
float[,]
The color twist matrix with floating-point pixel values [3,4].
The color twist matrix with floating - point pixel values [ 3 4 ] .