Click or drag to resize

Cv2Demosaicing Method

main function for all demosaicing processes

Namespace:  OpenCvSharp
Assembly:  OpenCvSharp (in OpenCvSharp.dll) Version: 1.0.0
Syntax
public static void Demosaicing(
	InputArray src,
	OutputArray dst,
	ColorConversionCodes code,
	int dstCn = 0
)

Parameters

src
Type: OpenCvSharpInputArray
input image: 8-bit unsigned or 16-bit unsigned.
dst
Type: OpenCvSharpOutputArray
output image of the same size and depth as src.
code
Type: OpenCvSharpColorConversionCodes
Color space conversion code (see the description below).
dstCn (Optional)
Type: SystemInt32
number of channels in the destination image; if the parameter is 0, the number of the channels is derived automatically from src and code.
Remarks
The function can do the following transformations: - Demosaicing using bilinear interpolation #COLOR_BayerBG2BGR , #COLOR_BayerGB2BGR , #COLOR_BayerRG2BGR , #COLOR_BayerGR2BGR #COLOR_BayerBG2GRAY , #COLOR_BayerGB2GRAY , #COLOR_BayerRG2GRAY , #COLOR_BayerGR2GRAY - Demosaicing using Variable Number of Gradients. #COLOR_BayerBG2BGR_VNG , #COLOR_BayerGB2BGR_VNG , #COLOR_BayerRG2BGR_VNG , #COLOR_BayerGR2BGR_VNG - Edge-Aware Demosaicing. #COLOR_BayerBG2BGR_EA , #COLOR_BayerGB2BGR_EA , #COLOR_BayerRG2BGR_EA , #COLOR_BayerGR2BGR_EA - Demosaicing with alpha channel # COLOR_BayerBG2BGRA , #COLOR_BayerGB2BGRA , #COLOR_BayerRG2BGRA , #COLOR_BayerGR2BGRA
See Also