Bayer Pattern Decoding
Functional Guide | Reference: BayerToC24
////////////////////////////////////////////////////////////////////
// This code snippet shows how to perform Bayer pattern decoding. //
////////////////////////////////////////////////////////////////////
// Images constructor
EImageBW8 bayerImage;
EImageC24 dstImage;
// ...
// Source and destination images must have the same size
dstImage.SetSize(&bayerImage);
// Convert to true color with simple interpolation, default parity assumed
EasyColor::BayerToC24(&bayerImage, &dstImage);
////////////////////////////////////////////////////////////////////
// This code snippet shows how to perform Bayer pattern decoding. //
////////////////////////////////////////////////////////////////////
' EasyColor context constructor
Dim EasyColor As New EasyColor
' Images constructor
Dim bayerImage As New EImageBW8
Dim dstImage As New EImageC24
' ...
' Source and destination images must have the same size
dstImage.SetSize bayerImage.Width, bayerImage.Height
' Convert to true color with simple interpolation, default parity assumed
EasyColor.BayerToC24 bayerImage, dstImage
////////////////////////////////////////////////////////////////////
// This code snippet shows how to perform Bayer pattern decoding. //
////////////////////////////////////////////////////////////////////
// Images constructor
EImageBW8 bayerImage= new EImageBW8();
EImageC24 dstImage= new EImageC24();
// ...
// Source and destination images must have the same size
dstImage.SetSize(bayerImage);
// Convert to true color with simple interpolation, default parity assumed
EasyColor.BayerToC24(bayerImage, dstImage);
See also in the Reference