]> Gitweb @ Texas Instruments - Open Source Git Repositories - git.TI.com/gitweb - apps/qt-opencv-opencl-opengl-multithreaded.git/blob - MatToQImage.h
Fix demo compilation issue
[apps/qt-opencv-opencl-opengl-multithreaded.git] / MatToQImage.h
1 /************************************************************************/
2 /* qt-opencv-opencl-opengl-multithreaded:                                             */
3 /* A multithreaded OpenCV application using the Qt framework.           */
4 /*                                                                      */
5 /* MatToQImage.h                                                        */
6 /*                                                                      */
7 /* Nick D'Ademo <nickdademo@gmail.com>                                  */
8 /*                                                                      */
9 /* Copyright (c) 2012-2013 Nick D'Ademo                                 */
10 /*                                                                      */
11 /* Permission is hereby granted, free of charge, to any person          */
12 /* obtaining a copy of this software and associated documentation       */
13 /* files (the "Software"), to deal in the Software without restriction, */
14 /* including without limitation the rights to use, copy, modify, merge, */
15 /* publish, distribute, sublicense, and/or sell copies of the Software, */
16 /* and to permit persons to whom the Software is furnished to do so,    */
17 /* subject to the following conditions:                                 */
18 /*                                                                      */
19 /* The above copyright notice and this permission notice shall be       */
20 /* included in all copies or substantial portions of the Software.      */
21 /*                                                                      */
22 /* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,      */
23 /* EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF   */
24 /* MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND                */
25 /* NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS  */
26 /* BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN   */
27 /* ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN    */
28 /* CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE     */
29 /* SOFTWARE.                                                            */
30 /*                                                                      */
31 /************************************************************************/
33 #ifndef MATTOQIMAGE_H
34 #define MATTOQIMAGE_H
36 // Qt
37 #include <QtGui/QImage>
38 // OpenCV
39 #include <opencv/cv.h>
40 #include <opencv/highgui.h>
42 using namespace cv;
44 QImage MatToQImage(const Mat&);
46 #endif // MATTOQIMAGE_H