How to generate mex for openCV's 'imdecode' for CPU and GPU?
8 visualizzazioni (ultimi 30 giorni)
Mostra commenti meno recenti
I want to generate mex funtion for 'imdecode'.
First for CPU and then for GPU(GPU, if possible).
I have already downloaded 'OpenCV Interface Support'. But it lacks in some libraries. E.g. mexOpenCV.m shows..
% Libraries that are not included:
% opencv_highgui, opencv_imgcodecs, opencv_videoio, opencv_cudacodec
And I think, openCV's 'imdecode' contains in "opencv_highgui, opencv_imgcodecs".
How can this libraries be added permanently in MATLAB?
and
Is it possible to avail GPU performance benefits for this particular purpose?
Thank you
0 Commenti
Risposte (2)
Hitesh Kumar Dasika
il 18 Gen 2019
Some libraries are not included because of dependency on other third party libraries. The functionality offered by these libraries can also be found in Image processing toolbox as well. You can make use of that.
2 Commenti
Hitesh Kumar Dasika
il 21 Gen 2019
You can make use of the below mentioned MATLAB function to load a C library into MATLAB and use it.
Joss Knight
il 19 Gen 2019
You can just download and use OpenCV yourself, and link in whatever libraries you need on the compile line. This blog post gives an example; it's a bit out of date because it uses MEX instead of MEXCUDA (so now you don't need to copy across the mex options file) but it's a workflow you can follow.
2 Commenti
cui,xingxing
il 26 Set 2020
Which static library file do I need to specify when I use ocvMxArrayToImage_uint8()? libmat.lib, libmx.lib, libmex.lib, libeng.lib? These 4 library files are not enough, these libraries are located in "C:\Program Files\MATLAB\R2020b\extern\lib\win64\microsoft", there are so many I don’t know which one to choose? thanks!
Vedere anche
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!