![]()  | 
  
    Imaging Control 4 C++ Library 1.4.0
    
   | 
 
Contains functions for using ic4::ImageBuffer objects using OpenCV. More...
Static Public Member Functions | |
| static cv::Mat | wrap (const ic4::ImageBuffer &buffer, ic4::Error &err=ic4::Error::Default()) | 
Wraps the passed image buffer in an OpenCV cv::Mat.   | |
| static bool | canWrap (const ic4::ImageBuffer &buffer) | 
| Checks whether wrap can work on the image buffer's pixel format.   | |
| static cv::Mat | copy (const ic4::ImageBuffer &buffer, ic4::Error &err=ic4::Error::Default()) | 
Creates a copy of the image buffer and stores it in an OpenCV cv::Mat.   | |
Contains functions for using ic4::ImageBuffer objects using OpenCV.
The OpenCV interop support functions are declared in ic4interop/interop-OpenCV.h. 
      
  | 
  inlinestatic | 
Checks whether wrap can work on the image buffer's pixel format.
| [in] | buffer | An image buffer | 
true, if the contents of the image buffer can be wrapped in an OpenCV cv::Mat, otherwise false.cv::Mat is only possible if the pixel format is one of the following:Mono8 or any Bayer8 formatMono16 or any Bayer16 formatBGRa8, BGR8 or BGRa16 YCbCr422_8 or YUV422_8 
      
  | 
  inlinestatic | 
Creates a copy of the image buffer and stores it in an OpenCV cv::Mat. 
| [in] | buffer | An image buffer | 
| [out] | err | Reference to an error handler. See Error Handling for details. | 
cv::Mat containing a copy of the image data from the passed image buffer. 
      
  | 
  inlinestatic | 
Wraps the passed image buffer in an OpenCV cv::Mat. 
| [in] | buffer | An image buffer | 
| [out] | err | Reference to an error handler. See Error Handling for details. | 
cv::Mat using the image buffer's memory as pixel storagecv::Mat is only possible if the pixel format is one of the following:Mono8 or any Bayer8 formatMono16 or any Bayer16 formatBGRa8, BGR8 or BGRa16 YCbCr422_8 or YUV422_8