Documentation Portal      

What are you looking for?

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

BayerToC24

Which API shall we display?

© 2018 EURESYS s.a.  -  About Documentation  -  Open Source Licenses  -  Open eVision 2.5.1.1107