C++ Winform에서 OpenCV Mat 영상을 Picture box에 출력하기 위한 Image(=Bitmap)으로 변환하는 코드
cv::Mat img = cv::imread(path);
Bitmap^ bmp = gcnew System::Drawing::Bitmap(
img.cols, img.rows, img.steps,
System::Drawing::Imaging::PixelFormat::Format24bppRgb,
(System::IntPtr)img.ptr());
'UI > C++ CLR' 카테고리의 다른 글
C++ CLR 에서 비동기 작업 생성하기 (0) | 2021.05.12 |
---|