Skip to content

Instantly share code, notes, and snippets.

@ewyuanzhang
ewyuanzhang / CvMat2SoftwareBitmap.cpp
Created April 8, 2021 04:21
How to convert OpenCV Mat to SoftwareBitmap with C++/WinRT
#include "pch.h"
#include <winrt/Windows.Security.Cryptography.h>
using namespace winrt;
using namespace winrt::Windows::Storage::Streams;
using namespace winrt::Windows::Graphics::Imaging;
using namespace std;
#include <opencv2/core/core.hpp>
#include <opencv2/highgui/highgui.hpp>
using namespace cv;