I am referencing this link -> Converting a SoftwareBitmap or WriteableBitmap to cv::Mat in c++/cx
But every time I try to put this into the code it shows me this error...enter image description here
You can see the background highlighted part.. where I have used this conversion part in the code....
and this is the reference link for code https://github.com/Microsoft/Windows-universal-samples/blob/master/Samples/CameraGetPreviewFrame/cpp/MainPage.xaml.cpp