Back to home page

EIC code displayed by LXR

 
 

    


File indexing completed on 2025-01-18 09:30:01

0001 //---------------------------------------------------------------------------//
0002 // Copyright (c) 2013-2014 Kyle Lutz <kyle.r.lutz@gmail.com>
0003 //
0004 // Distributed under the Boost Software License, Version 1.0
0005 // See accompanying file LICENSE_1_0.txt or copy at
0006 // http://www.boost.org/LICENSE_1_0.txt
0007 //
0008 // See http://boostorg.github.com/compute for more information.
0009 //---------------------------------------------------------------------------//
0010 
0011 #ifndef BOOST_COMPUTE_INTEROP_OPENCV_HIGHGUI_HPP
0012 #define BOOST_COMPUTE_INTEROP_OPENCV_HIGHGUI_HPP
0013 
0014 #include <opencv2/highgui/highgui.hpp>
0015 
0016 #include <boost/compute/interop/opencv/core.hpp>
0017 
0018 namespace boost {
0019 namespace compute {
0020 
0021 inline void opencv_imshow(const std::string &winname,
0022                           const image2d &image,
0023                           command_queue &queue = system::default_queue())
0024 {
0025     const cv::Mat mat = opencv_create_mat_with_image2d(image, queue);
0026 
0027     cv::imshow(winname, mat);
0028 }
0029 
0030 } // end compute namespace
0031 } // end boost namespace
0032 
0033 #endif // BOOST_COMPUTE_INTEROP_OPENCV_HIGHGUI_HPP