Search found 25 matches

by ducdanganhit
03 Jul 2019, 05:16
Forum: General Discussion
Replies: 16
Views: 417

Re: [C++, OpenCV] Display image CV::Mat queue as video in XAML

On Ubuntu 16.04, I've tried to use WrapTexture to load an image to texture using code below: But glGenerateMipmap(GL_TEXTURE_2D); is not found. I include these headers: #include <GL/gl.h> #include <GL/glut.h> InitializeComponent(); cv::Mat image = cv::imread("./1.jpg"); _image = FindName<Image>("img...
by ducdanganhit
02 Jul 2019, 11:41
Forum: General Discussion
Replies: 4
Views: 481

Re: [C++] Setting ImageSource to Runtime generated RGBA Information

Awesome works well. GLuint TextureID = 0; glGenTextures(1, &TextureID); glBindTexture(GL_TEXTURE_2D, TextureID); glTexParameteri(GL_TEXTURE_2D, GL_TEXTURE_MIN_FILTER, GL_LINEAR); glTexParameteri(GL_TEXTURE_2D, GL_TEXTURE_MAG_FILTER, GL_LINEAR); glTexParameteri(GL_TEXTURE_2D, GL_TEXTURE_WRAP_S, GL_C...
by ducdanganhit
01 Jul 2019, 11:11
Forum: General Discussion
Replies: 16
Views: 417

Re: [C++, OpenCV] Display image CV::Mat queue as video in XAML

Do we have any example using OpenGL in Noesis?
I got some problems of integrating Noesis to use OpenGL :(
by ducdanganhit
19 Jun 2019, 11:57
Forum: General Discussion
Replies: 16
Views: 417

Re: [C++, OpenCV] Display image CV::Mat queue as video in XAML

guess you would like to use cbimtmap ..
Do you have any example or more suggestion? Thanks you :)
by ducdanganhit
19 Jun 2019, 11:44
Forum: General Discussion
Replies: 16
Views: 417

Re: [C++, OpenCV] Display image CV::Mat queue as video in XAML

It seems that the program could not find implementation of WrapTexture . does libNoesisApp.so or libNoesis.so contain WrapTexture implementation? Thank you! If you search inside the code you will find the implementation in the D3D11RenderDevice.cpp file. Hi, D3D11RenderDevice.cpp includes D3D11Rend...
by ducdanganhit
17 Jun 2019, 09:14
Forum: General Discussion
Replies: 9
Views: 286

Re: CMakeList for c++ project with NoesisGUI

Sorry! I forgot to upload this CMake project:
You can find the simplest example here: https://github.com/ducdanganhit/hello-noesis-gui

In this version, you have to copy these libs into system.
by ducdanganhit
17 Jun 2019, 05:21
Forum: General Discussion
Replies: 16
Views: 417

Re: [C++, OpenCV] Display image CV::Mat queue as video in XAML

For example, If you are using D3D11 you can create a texture using an external handle with WrapTexture : struct NS_RENDER_D3D11RENDERDEVICE_API D3D11Factory { static Noesis::Ptr<Noesis::Texture> WrapTexture(ID3D11Texture2D* texture, uint32_t width, uint32_t height, uint32_t levels, bool isInverted)...
by ducdanganhit
17 Jun 2019, 04:41
Forum: General Discussion
Replies: 5
Views: 153

Re: Custom project with Application Framework

I think this will help u: viewtopic.php?f=3&t=1710
by ducdanganhit
14 Jun 2019, 09:49
Forum: General Discussion
Replies: 16
Views: 417

Re: [C++, OpenCV] Display image CV::Mat queue as video in XAML

I tried to convert from cv::Mat to ID3D11Texture2D* but got an error: Main.cpp:58: undefined reference to `NoesisApp::D3D11Factory::WrapTexture(ID3D11Texture2D*, unsigned int, unsigned int, unsigned int, bool)' This is my code: cv::Mat img = cv::imread("./photo_2018-12-25_23-49-35.jpg"); ID3D11Textu...
by ducdanganhit
13 Jun 2019, 08:59
Forum: General Discussion
Replies: 4
Views: 129

Re: Include header files - Link .so Files in Linux

I see. Thank you jsantos