首页 > TAG信息列表 > Bayer

Basler相机Bayer格式转Qt RGB888

无论什么品牌的相机,Bayer转RGB都涉及到插值,因此建议使用官方SDK里的函数进行转换。针对Basler相机,代码如下: void BaslerCamera::toQImage(CGrabResultPtr ptrGrabResult, QImage &OutImage) { int width = static_cast<int>(ptrGrabResult->GetWidth()); int height = static_