56 bayerPattern_RGGB = 512,
65 const std::string &method=
"bilinear");
71 bayerConverterMethod eConvMethod=bilinear,
80 m_eBayerPattern = eBayerPattern;
84 m_eConvMethod = eConvMethod;
88 setBayerPattern(translateBayerPattern(pattern));
92 setConverterMethod(translateBayerConverterMethod(method));
96 static std::string translateBayerConverterMethod(bayerConverterMethod ebcm);
97 static bayerConverterMethod translateBayerConverterMethod(std::string sbcm);
99 static std::string translateBayerPattern(bayerPattern ebp);
100 static bayerPattern translateBayerPattern(std::string sbp);
111 static void convert_bayer_to_gray(
const Img8u &src,
Img8u &dst,
const std::string &pattern);
124 void nnInterpolation(
const Img8u *poBayerImg);
125 void bilinearInterpolation(
const Img8u *poBayerImg);
126 void hqLinearInterpolation(
const Img8u *poBayerImg);
127 void edgeSenseInterpolation(
const Img8u *poBayerImg);
128 void simpleInterpolation(
const Img8u *poBayerImg);
130 void nnInterpolationIpp(
const Img8u *poBayerImg);
134 void clearBorders(
icl8u *
rgb,
int sx,
int sy,
int w);
136 *iOut = *iIn = *iIn < 0 ? 0 : *iIn > 255 ? 255 : 0;
undocument this line if you encounter any issues!
Definition: Any.h:37
Class interface for un-copyable classes.
Definition: Uncopyable.h:64
static const Size null
null is w=0, h=0
Definition: Size.h:64
Ipp8u icl8u
8Bit unsigned integer type for the ICL
Definition: BasicTypes.h:64
bayerConverterMethod
Definition: BayerConverter.h:46
ICLQt_API ImgQ rgb(const ImgQ &image)
converts a given image to formatRGB
bayerPattern m_eBayerPattern
Definition: BayerConverter.h:118
bayerPattern
Definition: BayerConverter.h:55
IppiBayerGrid m_IppBayerPattern
Definition: BayerConverter.h:120
std::vector< icl8u > m_buffer
internal buffer;
Definition: BayerConverter.h:115
void setBayerPattern(bayerPattern eBayerPattern)
Definition: BayerConverter.h:79
Definition: BayerConverter.h:57
Definition: BayerConverter.h:49
Definition: BayerConverter.h:48
Size class of the ICL.
Definition: Size.h:61
bayerConverterMethod m_eConvMethod
Definition: BayerConverter.h:117
Definition: BayerConverter.h:58
Definition: BayerConverter.h:51
Utiltity class for bayer pattern conversion.
Definition: BayerConverter.h:43
ImgBase is the Image-Interface class that provides save access to underlying Img-template .
Definition: ImgBase.h:131
void setBayerPattern(const std::string &pattern)
Definition: BayerConverter.h:87
void clip(int *iIn, icl8u *iOut)
Definition: BayerConverter.h:135
#define ICLCore_API
Definition: CompatMacros.h:174
void setMethod(const std::string &method)
Definition: BayerConverter.h:91
void setConverterMethod(bayerConverterMethod eConvMethod)
Definition: BayerConverter.h:83
Definition: BayerConverter.h:50