摘要: //to Mat CxImage img; img.Load("C:\\f.jpg"); uint8_t* buf=NULL; int32_t len=0; bool rs =img.Encode(buf,len,CXIMAGE_FORMAT_BMP); cv::Mat temp2; vector buff2; buff2.resize(len); memcpy(&buff2[0],buf,len); temp2= cv::imdecode(buff2,1); cv::imshow("111",temp2); cv::waitKey(); //t 阅读全文
posted @ 2013-10-12 11:00 ahuo 阅读(2200) 评论(0) 推荐(0) 编辑