iLab Neuromorphic Robotics Toolkit  0.1
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
Functions for Image conversions to OpenCV

Inter-operatibility functions to convert back and forth between NRT's Image class and OpenCV or other libraries, thereby allowing one to use the many available OpenCV and other algorithms from within NRT.

See Also
Image conversions to OpenCV and other libraries

Functions

template<class PixType >
Image< PixType > nrt::copyIpl2Image (IplImage const *const iplimage)
 Copy an OpenCV IplImage to an nrt::Image.
 
template<class PixType >
IplImage * nrt::copyImage2Ipl (Image< PixType > const img)
 Copy an nrt::Image to an OpenCV IplImage. More...
 
template<class PixType >
Image< PixType > nrt::copyCvMat2Image (cv::Mat iplimage)
 Copy a cv::Mat to an nrt::Image.
 
template<class PixType >
cv::Mat nrt::copyImage2CvMat (Image< PixType > const img)
 Copy an nrt::Image to a cv::Mat.
 

Function Documentation

template<class PixType >
IplImage * nrt::copyImage2Ipl ( nrt::Image< PixType > const  img)
inline

Copy an nrt::Image to an OpenCV IplImage.

Warning
The user is responsible for free()'ing the resulting IplImage

Definition at line 193 of file OpenCVImpl.H.

References nrt::Image< T, Flags >::col_begin(), nrt::Image< T, Flags >::col_end(), nrt::Image< T, Flags >::height(), nrt::Image< T, Flags >::pod_begin(), and nrt::Image< T, Flags >::width().