請問怎么把mat格式資料轉換為bitmap或hbitmap,在網上找了段代碼好像不好用,請問這應該怎么弄
int nChannels = (_mat.type() >> 3) - CV_8U + 1;
int iSize = _mat.cols*_mat.rows*nChannels;
_hBmp = CreateBitmap(_mat.cols, _mat.rows, 1, nChannels*8, _mat.data);
uj5u.com熱心網友回復:
試試保存檔案,讀取檔案
uj5u.com熱心網友回復:
你是要顯示嗎?https://blog.csdn.net/youyingbo/article/details/80688202
轉載請註明出處,本文鏈接:https://www.uj5u.com/gongcheng/46928.html
標籤:圖形處理/算法
