#include "Image/OpenCVUtil.H"
#include "Image/Image.H"
#include "Image/Pixels.H"
#include "Util/log.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< byte > | ipl2gray (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. |
OpenCV IPL image conversions
Definition in file OpenCVUtil.C.
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().
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().
Convert from Image<PixRGB<byte>> to IplImage.
Definition at line 47 of file OpenCVUtil.C.
Referenced by HeliPose::displayExtrinsic(), ObjDetChannel::doInput(), ForegroundDetectionChannel::doInput(), getBiasedSMap(), HeliPose::getExtrinsic(), getLucasKanadeOpticFlow(), VisualTracker::setTargets(), VisualTracker::trackObjects(), and VisualTracker::trackTemplObject().
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.
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().
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.