OpenCVUtil.H File Reference

#include "Util/Types.H"
Include dependency graph for OpenCVUtil.H:

Go to the source code of this file.

Functions

IplImage * img2ipl (const Image< PixRGB< byte > > &img)
 Convert from Image<PixRGB<byte>> to IplImage.
IplImage * img2ipl (const Image< byte > &img)
 Convert from Image<byte> to IplImage.
IplImage * img2ipl (const Image< float > &img)
 Convert from Image<float> to IplImage.
Image< byteipl2gray (const IplImage *img)
 Convert to Image<byte> from IplImage, which must have depth==8 and nChannels==1.
Image< PixRGB< byte > > ipl2rgb (const IplImage *img)
 Convert to Image<PixRGB<byte>> from IplImage, which must have depth==8, nChannels==3, and dataOrder==0 (interleaved).
Image< float > ipl2float (const IplImage *img)
 Convert to Image<byte> from IplImage, which must have depth==32 and nChannels==1.

Detailed Description

OpenCV IPL image conversions

Definition in file OpenCVUtil.H.


Function Documentation

IplImage* img2ipl ( const Image< float > &  img  ) 

Convert from Image<float> to IplImage.

Definition at line 71 of file OpenCVUtil.C.

References Image< T >::getArrayPtr(), Image< T >::getHeight(), and Image< T >::getWidth().

IplImage* img2ipl ( const Image< byte > &  img  ) 

Convert from Image<byte> to IplImage.

Definition at line 59 of file OpenCVUtil.C.

References Image< T >::getArrayPtr(), Image< T >::getHeight(), and Image< T >::getWidth().

IplImage* img2ipl ( const Image< PixRGB< byte > > &  img  ) 
Image<float> ipl2float ( const IplImage *  img  ) 

Convert to Image<byte> from IplImage, which must have depth==32 and nChannels==1.

Definition at line 118 of file OpenCVUtil.C.

Image<byte> ipl2gray ( const IplImage *  img  ) 

Convert to Image<byte> from IplImage, which must have depth==8 and nChannels==1.

Definition at line 83 of file OpenCVUtil.C.

Referenced by ForegroundDetectionChannel::doInput().

Image<PixRGB<byte> > ipl2rgb ( const IplImage *  img  ) 

Convert to Image<PixRGB<byte>> from IplImage, which must have depth==8, nChannels==3, and dataOrder==0 (interleaved).

Definition at line 98 of file OpenCVUtil.C.

Generated on Sun May 8 08:42:42 2011 for iLab Neuromorphic Vision Toolkit by  doxygen 1.6.3