Library/ManagedCuda/NPP/NPPImage_8uC4.cs
/// <summary>
/// 4 channel 8-bit unsigned in place color twist with 4x4 matrix and an additional constant vector addition.
/// An input 4x4 color twist matrix with floating-point coefficient values with an additional constant vector addition
/// is applied within ROI.  For this particular version of the function the result is generated as shown below.
///  \code
///      dst[0] = aTwist[0][0]		/// src[0] + aTwist[0][1]		/// src[1] + aTwist[0][2]		/// src[2] + aTwist[0][3]		/// src[3] + aConstants[0]
///      dst[1] = aTwist[1][0]		/// src[0] + aTwist[1][1]		/// src[1] + aTwist[1][2]		/// src[2] + aTwist[1][3]		/// src[3] + aConstants[1]
///      dst[2] = aTwist[2][0]		/// src[0] + aTwist[2][1]		/// src[1] + aTwist[2][2]		/// src[2] + aTwist[2][3]		/// src[3] + aConstants[2]
///      dst[3] = aTwist[3][0]		/// src[0] + aTwist[3][1]		/// src[1] + aTwist[3][2]		/// src[2] + aTwist[3][3]		/// src[3] + aConstants[3]
///  \endcode
/// </summary>
/// <param name="twistMatrix">The color twist matrix with floating-point coefficient values [4,4].</param>
/// <param name="aConstants">fixed size array of constant values, one per channel [4]</param>
4 channel 8-bit unsigned in place color twist with 4x4 matrix and an additional constant vector addition.
An input 4x4 color twist matrix with floating-point coefficient values with an additional constant vector addition
is applied within ROI.  For this particular version of the function the result is generated as shown below.
4 channel 8 - bit unsigned in place color twist with 4x4 matrix and an additional constant vector addition . An input 4x4 color twist matrix with floating - point coefficient values with an additional constant vector addition is applied within ROI . For this particular version of the function the result is generated as shown below .
public void ColorTwistC(float[,] twistMatrix, float[] aConstants)
		{
			status = NPPNativeMethods.NPPi.ColorTwist.nppiColorTwist32fC_8u_C4IR(_devPtr, _pitch, _sizeRoi, twistMatrix, aConstants);
			Debug.WriteLine(String.Format("{0:G}, {1}: {2}", DateTime.Now, "nppiColorTwist32fC_8u_C4IR", status));
			NPPException.CheckNppStatus(status, this);
		}
public void ColorTwistC ( float [ , ] twistMatrix , float [ ] aConstants ) { status = NPPNativeMethods . NPPi . ColorTwist . nppiColorTwist32fC_8u_C4IR ( _devPtr , _pitch , _sizeRoi , twistMatrix , aConstants ) ; Debug . WriteLine ( String . Format ( " " , DateTime . Now , " " , status ) ) ; NPPException . CheckNppStatus ( status , this ) ; }
4 channel 8-bit unsigned in place color twist with 4x4 matrix and an additional constant vector addition.
4 channel 8 - bit unsigned in place color twist with 4x4 matrix and an additional constant vector addition .
twistMatrix
float[,]
The color twist matrix with floating-point coefficient values [4,4].
The color twist matrix with floating - point coefficient values [ 4 4 ] .
aConstants
float[]
fixed size array of constant values, one per channel [4]
fixed size array of constant values one per channel [ 4 ]