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>
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_16uC3 dest, NppiBayerGridPosition eGrid, InterpolationMode eInterpolation)
		{
			status = NPPNativeMethods.NPPi.ColorDebayer.nppiCFAToRGB_16u_C1C3R(_devPtr, _pitch, _sizeOriginal, new NppiRect(_pointRoi, _sizeRoi), dest.DevicePointerRoi, dest.Pitch, eGrid, eInterpolation);
			Debug.WriteLine(String.Format("{0:G}, {1}: {2}", DateTime.Now, "nppiCFAToRGB_16u_C1C3R", status));
			NPPException.CheckNppStatus(status, this);
		}
public void CFAToRGB ( NPPImage_16uC3 dest , NppiBayerGridPosition eGrid , InterpolationMode eInterpolation ) { status = NPPNativeMethods . NPPi . ColorDebayer . nppiCFAToRGB_16u_C1C3R ( _devPtr , _pitch , _sizeOriginal , new NppiRect ( _pointRoi , _sizeRoi ) , dest . DevicePointerRoi , dest . Pitch , eGrid , eInterpolation ) ; 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_16uC3
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