Library/ManagedCuda/NPP/NPPImage_16sC3.cs
/// <summary>
/// 3 channel planar 8-bit unsigned color twist.
/// An input color twist matrix with floating-point pixel values is applied
/// within ROI.
/// </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="dest0">Destination image (Channel 0)</param>
/// <param name="dest1">Destination image (Channel 1)</param>
/// <param name="dest2">Destination image (Channel 2)</param>
/// <param name="twistMatrix">The color twist matrix with floating-point pixel values [3,4].</param>
3 channel planar 8-bit unsigned color twist.
An input color twist matrix with floating-point pixel values is applied
within ROI.
3 channel planar 8 - bit unsigned color twist . An input color twist matrix with floating - point pixel values is applied within ROI .
public static void ColorTwist(NPPImage_16sC1 src0, NPPImage_16sC1 src1, NPPImage_16sC1 src2, NPPImage_16sC1 dest0, NPPImage_16sC1 dest1, NPPImage_16sC1 dest2, float[,] twistMatrix)
		{
			CUdeviceptr[] src = new CUdeviceptr[] { src0.DevicePointerRoi, src1.DevicePointerRoi, src2.DevicePointerRoi };
			CUdeviceptr[] dst = new CUdeviceptr[] { dest0.DevicePointerRoi, dest1.DevicePointerRoi, dest2.DevicePointerRoi };
			NppStatus status = NPPNativeMethods.NPPi.ColorTwist.nppiColorTwist32f_16s_P3R(src, src0.Pitch, dst, dest0.Pitch, src0.SizeRoi, twistMatrix);
			Debug.WriteLine(String.Format("{0:G}, {1}: {2}", DateTime.Now, "nppiColorTwist32f_16s_P3R", status));
			NPPException.CheckNppStatus(status, null);
		}
public static void ColorTwist ( NPPImage_16sC1 src0 , NPPImage_16sC1 src1 , NPPImage_16sC1 src2 , NPPImage_16sC1 dest0 , NPPImage_16sC1 dest1 , NPPImage_16sC1 dest2 , float [ , ] twistMatrix ) { CUdeviceptr [ ] src = new CUdeviceptr [ ] { src0 . DevicePointerRoi , src1 . DevicePointerRoi , src2 . DevicePointerRoi } ; CUdeviceptr [ ] dst = new CUdeviceptr [ ] { dest0 . DevicePointerRoi , dest1 . DevicePointerRoi , dest2 . DevicePointerRoi } ; NppStatus status = NPPNativeMethods . NPPi . ColorTwist . nppiColorTwist32f_16s_P3R ( src , src0 . Pitch , dst , dest0 . Pitch , src0 . SizeRoi , twistMatrix ) ; Debug . WriteLine ( String . Format ( " " , DateTime . Now , " " , status ) ) ; NPPException . CheckNppStatus ( status , null ) ; }
3 channel planar 8-bit unsigned color twist.
3 channel planar 8 - bit unsigned color twist .
src0
NPPImage_16sC1
Source image (Channel 0)
Source image ( Channel 0 )
src1
NPPImage_16sC1
Source image (Channel 1)
Source image ( Channel 1 )
src2
NPPImage_16sC1
Source image (Channel 2)
Source image ( Channel 2 )
dest0
NPPImage_16sC1
Destination image (Channel 0)
Destination image ( Channel 0 )
dest1
NPPImage_16sC1
Destination image (Channel 1)
Destination image ( Channel 1 )
dest2
NPPImage_16sC1
Destination image (Channel 2)
Destination image ( 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 ] .