how to display openCV Mat image at UWP C++ App Window - c++

how to display openCV Mat type image in UWP APP with C++?
i want to make image processing app by UWP C++ with openCV
for example, read 2 images and overlay them and display the result image at UWP APP window
i am dealing with the image using cv::Mat structure and i assume that in xaml using tag to display the result image
i try searching using some keywords(ex, uwp, c++, openCV, MAT, Bitmapimage, .etc) but i could not find appropriate solution
is there any solution? or other proper approach?

Related

How to open an image weather is it a TIFF,JPG and PNG and how to display it in Visual C++?

I want to display an image using an MFC application. I am struggling to create image control. I was used Activex image 2.0 for opening an image.

C++ displaying an image with SDL2 with different formats than .bmp

I am trying to display an image in SDL2 and the only guide I found was a guide about how to display a .bmp image. What I would like to do is displaying an image or setting a temporary image as a background. For example if I press LEFT_KEY the program should proceed to the next image. Any relevant guides or any examples you can share? It is not needed to set the image as a background (stretched), my goal is to display an image and being able to scroll through other images by pressing a key.
Use SDL_Image:
https://www.libsdl.org/projects/SDL_image/
Example:
Loading PNGs with SDL_image

OpenCV processing with a web application

I am planning on creating a web application that uses OpenCV for image processing. The image processing would be comparing a user uploaded picture with pictures I would have in a database. I would rather the user upload an image instead a similar upload method to this instead via a webcam.
I would like to know how can I do the processing using the OpenCV library? And what would I need to be able to connect my OpenCV processing to my web application?
If you want to load image from web use VideoCapture class open image as we open video file. See the example below.
VideoCapture cap;
if(!cap.open("http://docs.opencv.org/trunk/_downloads/opencv-logo.png")){
cout<<"Cannot open image"<<endl;
return -1;
}
Mat src;
cap>>src;
imshow("src",src);
imwrite("image.jpg",src);
waitKey();
Or use Portable Native Client as OpenCV now ported to Google Chrome NaCl and PNaCl, See OpenCV news more details
You could take the webcam shots and upload them, and then compare them like traditional image files (from the filesystem and/or database).
A modern way of taking the shots would be to use WebRTC:
http://css.dzone.com/articles/face-detection-using-html5
Other alternatives will probably involve Macromedia Flash or similar stuff.

Create a video slideshow from images using ffmpeg programmatically

Is there any way to create a video slideshow from images using ffmpeg without using the exe?? ie, I have to do this with the dll and lib they give.
Please give me suggestions.

how to change the background colour of CImage object in mfc?

I have an windows app which contains some dialogs. the dialogs have been built using mfc. I am drawing some images (.png) on every dialog using CImage::Draw() method. I want to mention that I am not using any picture contol on the dialog to render these images instead I am loading them at runtime using some handle.till this everything is ok. now when the image is loaded the background of those images are coming as white. the images in the resource file does not have the white background. my question is how to change the background of these images while drawing them on the dialog? I want the background of the image similar to the color of default dialog which i am using.
One more question the .png images are not rendering well(the images are scattered) in the dialogs of windows server 2008 R2 machine. what could be the possible remedy for this?
any help will be appreciated.
Your PNG images are obviously not 32-bit. You need an alpha channel and a transparent background. Open your images in e.g. Paint.NET. I bet your background is white there too! Regarding the image quality, are you stretching your images on draw?
Edit: For 8-bit imagers, I believe a call to SetTransparentColor is required. For 32-bit images, perhaps this function will do: TransparentBlt