ImageConvert.C File Reference

#include "QtUtil/ImageConvert.H"
#include "Image/Image.H"
#include "Image/Pixels.H"
#include <qimage.h>
#include <vector>
Include dependency graph for ImageConvert.C:

Go to the source code of this file.

Functions

QPixmap convertToQPixmap (const Image< PixRGB< byte > > &img)
 convert Image<PixRGB<byte> > to QPixmap
QPixmap convertToQPixmap (const Image< byte > &img)
 convert Image<byte> to QPixmap
Image< PixRGB< byte > > convertToImage (const QPixmap &qpixm)
 convert QPixmap to Image<PixRGB<byte> >

Detailed Description

Functions to convert our images to QImage or QPixmap

Definition in file ImageConvert.C.


Function Documentation

Image<PixRGB<byte> > convertToImage ( const QPixmap &  qpixm  ) 

convert QPixmap to Image<PixRGB<byte> >

Definition at line 165 of file ImageConvert.C.

References ASSERT, Image< T >::beginw(), and NO_INIT.

Referenced by QtDisplayStream::setFrameNumber().

QPixmap convertToQPixmap ( const Image< byte > &  img  ) 

convert Image<byte> to QPixmap

NOTE that it's not practical to do a conversion to QImage, because QImage doesn't own its memory so we don't have a safe place to put the temporary storage

Definition at line 118 of file ImageConvert.C.

References Image< T >::begin(), Image< T >::end(), Image< T >::getHeight(), Image< T >::getSize(), and Image< T >::getWidth().

QPixmap convertToQPixmap ( const Image< PixRGB< byte > > &  img  ) 

convert Image<PixRGB<byte> > to QPixmap

NOTE that it's not practical to do a conversion to QImage, because QImage doesn't own its memory so we don't have a safe place to put the temporary storage

Definition at line 71 of file ImageConvert.C.

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