Library/ManagedCuda/NPP/NPPImage_16uC1.cs
/// <summary>
/// Grayscale Color Filter Array to RGB Color Debayer conversion. Generates one RGB color pixel for every grayscale source pixel.<para/>
/// Source and destination images must have even width and height.  Missing pixel colors are generated using bilinear interpolation
/// with chroma correlation of generated green values (eInterpolation MUST be set to 0). eGrid allows the user to specify the Bayer grid 
/// registration position at source image location oSrcROI.x, oSrcROI.y relative to pSrc.
/// </summary>
/// <param name="dest">Destination image</param>
/// <param name="eGrid">enumeration value specifying bayer grid registration position at location oSrcROI.x, oSrcROI.y relative to pSrc.</param>
/// <param name="eInterpolation">MUST be <see cref="InterpolationMode.Undefined"/></param>
/// <param name="nAlpha">constant alpha value to be written to each destination pixel</param>
Grayscale Color Filter Array to RGB Color Debayer conversion. Generates one RGB color pixel for every grayscale source pixel.
Source and destination images must have even width and height.  Missing pixel colors are generated using bilinear interpolation
with chroma correlation of generated green values (eInterpolation MUST be set to 0). eGrid allows the user to specify the Bayer grid
registration position at source image location oSrcROI.x, oSrcROI.y relative to pSrc.
Grayscale Color Filter Array to RGB Color Debayer conversion . Generates one RGB color pixel for every grayscale source pixel . Source and destination images must have even width and height . Missing pixel colors are generated using bilinear interpolation with chroma correlation of generated green values ( eInterpolation MUST be set to 0 ) . eGrid allows the user to specify the Bayer grid registration position at source image location oSrcROI . x oSrcROI . y relative to pSrc .
public void CFAToRGB(NPPImage_16uC4 dest, NppiBayerGridPosition eGrid, InterpolationMode eInterpolation, ushort nAlpha)
		{
			status = NPPNativeMethods.NPPi.ColorDebayer.nppiCFAToRGBA_16u_C1AC4R(_devPtr, _pitch, _sizeOriginal, new NppiRect(_pointRoi, _sizeRoi), dest.DevicePointerRoi, dest.Pitch, eGrid, eInterpolation, nAlpha);
			Debug.WriteLine(String.Format("{0:G}, {1}: {2}", DateTime.Now, "nppiCFAToRGBA_16u_C1AC4R", status));
			NPPException.CheckNppStatus(status, this);
		}
public void CFAToRGB ( NPPImage_16uC4 dest , NppiBayerGridPosition eGrid , InterpolationMode eInterpolation , ushort nAlpha ) { status = NPPNativeMethods . NPPi . ColorDebayer . nppiCFAToRGBA_16u_C1AC4R ( _devPtr , _pitch , _sizeOriginal , new NppiRect ( _pointRoi , _sizeRoi ) , dest . DevicePointerRoi , dest . Pitch , eGrid , eInterpolation , nAlpha ) ; Debug . WriteLine ( String . Format ( " " , DateTime . Now , " " , status ) ) ; NPPException . CheckNppStatus ( status , this ) ; }
Grayscale Color Filter Array to RGB Color Debayer conversion.
Grayscale Color Filter Array to RGB Color Debayer conversion .
dest
NPPImage_16uC4
None
eGrid
NppiBayerGridPosition
enumeration value specifying bayer grid registration position at location oSrcROI.x, oSrcROI.y relative to pSrc.
enumeration value specifying bayer grid registration position at location oSrcROI . x oSrcROI . y relative to pSrc .
eInterpolation
InterpolationMode
None
nAlpha
ushort
constant alpha value to be written to each destination pixel
constant alpha value to be written to each destination pixel