src/qvcore/qvimage.h File Reference

File from the QVision library. More...

#include <QMetaType>
#include <qvcore/qvimagebuffer.h>

Go to the source code of this file.

Classes

class  QVGenericImage
 Base class for QVImage objects. More...
class  QVImage< Type, Channels >
 Image representation class for the QVision. More...

Defines

#define QVIMAGE_INIT_READ(TYPE, IMAGE)
 Initializes image to be read with macro QVIMAGE_PIXEL.
#define QVIMAGE_INIT_WRITE(TYPE, IMAGE)
 Initializes image to be write or read with macro QVIMAGE_PIXEL.
#define QVIMAGE_PTR_INIT_READ(TYPE, IMAGE)
 Initializes pointed image to be read with macro QVIMAGE_PIXEL.
#define QVIMAGE_PTR_INIT_WRITE(TYPE, IMAGE)
 Initializes pointed image to be write or read with macro QVIMAGE_PIXEL.
#define QVIMAGE_PIXEL(IMAGE, Col, Row, Channel)   (__qv_data_##IMAGE##__ [(Row)* __qv_step_##IMAGE##__ + __qv_planes_##IMAGE##__ *(Col)+(Channel)])
 Access pixel from image previously initialized with macros QVIMAGE_INIT_READ, QVIMAGE_INIT_WRITE, QVIMAGE_PTR_INIT_READ, or QVIMAGE_PTR_INIT_WRITE.

Typedefs

typedef QVImage
< uChar, 1 > 
QVImageUCharC1
typedef QVImage
< uChar, 3 > 
QVImageUCharC3
typedef QVImage
< sFloat, 1 > 
QVImageSFloatC1
typedef QVImage
< sFloat, 3 > 
QVImageSFloatC3
typedef QVImage
< sShort, 1 > 
QVImageSShortC1
typedef QVImage
< sShort, 3 > 
QVImageSShortC3


Detailed Description

File from the QVision library.

Author:
PARP Research Group. University of Murcia, Spain.

Definition in file qvimage.h.


Define Documentation

#define QVIMAGE_INIT_READ ( TYPE,
IMAGE   ) 

Value:

const TYPE * __qv_data_##IMAGE##__ = IMAGE.getReadData();               \
        const uInt __qv_step_##IMAGE##__ = IMAGE.getStep()/sizeof(TYPE);        \
        const uChar __qv_planes_##IMAGE##__  = IMAGE.getChannels();
Initializes image to be read with macro QVIMAGE_PIXEL.

This macro defines variables that will be used with macro QVIMAGE_PIXEL, to read pixels in a given image. An example of use of this macro can be found in section Using macros QVIMAGE_INIT_*, and QVIMAGE_PIXEL..

Parameters:
TYPE Type of the image. It should be the value of first template parameter specified for the image.
IMAGE Image name.
See also:
QVIMAGE_PIXEL

Definition at line 38 of file qvimage.h.

Referenced by qvdta::CountingSort(), qvdta::FilterLocalMax(), QVImage< Type, Channels >::operator==(), and qvdta::QVComponentTree::QVComponentTree().

#define QVIMAGE_INIT_WRITE ( TYPE,
IMAGE   ) 

Value:

TYPE * __qv_data_##IMAGE##__ = IMAGE.getWriteData();                    \
        const uInt __qv_step_##IMAGE##__ = IMAGE.getStep()/sizeof(TYPE);        \
        const uChar __qv_planes_##IMAGE##__  = IMAGE.getChannels();
Initializes image to be write or read with macro QVIMAGE_PIXEL.

This macro defines variables that will be used with macro QVIMAGE_PIXEL, to access pixels in a given image. An example of use of this macro can be found in section Using macros QVIMAGE_INIT_*, and QVIMAGE_PIXEL..

Parameters:
TYPE Type of the image. It should be the value of first template parameter specified for the image.
IMAGE Image name.
See also:
QVIMAGE_PIXEL

Definition at line 50 of file qvimage.h.

Referenced by qvdta::draw(), qvdta::FilterLocalMax(), and qvdta::QVComponentTree::QVComponentTree().

#define QVIMAGE_PIXEL ( IMAGE,
Col,
Row,
Channel   )     (__qv_data_##IMAGE##__ [(Row)* __qv_step_##IMAGE##__ + __qv_planes_##IMAGE##__ *(Col)+(Channel)])

Access pixel from image previously initialized with macros QVIMAGE_INIT_READ, QVIMAGE_INIT_WRITE, QVIMAGE_PTR_INIT_READ, or QVIMAGE_PTR_INIT_WRITE.

This macro can be used to access arbitrary pixels of an image, with a good time performance. An example of use of this macro can be found in section Using macros QVIMAGE_INIT_*, and QVIMAGE_PIXEL..

See also:
QVIMAGE_INIT_READ

QVIMAGE_INIT_WRITE

QVIMAGE_PTR_INIT_READ

QVIMAGE_PTR_INIT_WRITE.

Definition at line 87 of file qvimage.h.

Referenced by qvdta::CountingSort(), qvdta::draw(), qvdta::FilterLocalMax(), QVImage< Type, Channels >::operator==(), and qvdta::QVComponentTree::QVComponentTree().

#define QVIMAGE_PTR_INIT_READ ( TYPE,
IMAGE   ) 

Value:

const TYPE * __qv_data_##IMAGE##__ = IMAGE->getReadData();              \
        const uInt __qv_step_##IMAGE##__ = IMAGE.getStep()/sizeof(TYPE);        \
        const uChar __qv_planes_##IMAGE##__  = IMAGE->getChannels();
Initializes pointed image to be read with macro QVIMAGE_PIXEL.

This macro defines variables that will be used with macro QVIMAGE_PIXEL, to read pixels in a given image. An example of use of this macro can be found in section Using macros QVIMAGE_INIT_*, and QVIMAGE_PIXEL..

Parameters:
TYPE Type of the image. It should be the value of first template parameter specified for the image.
IMAGE Name of the pointer variable that points to the image.
See also:
QVIMAGE_PIXEL

Definition at line 62 of file qvimage.h.

Referenced by QVImage< Type, Channels >::operator==().

#define QVIMAGE_PTR_INIT_WRITE ( TYPE,
IMAGE   ) 

Value:

TYPE * __qv_data_##IMAGE##__ = IMAGE->getWriteData();                   \
        const uInt __qv_step_##IMAGE##__ = IMAGE.getStep()/sizeof(TYPE);        \
        const uChar __qv_planes_##IMAGE##__  = IMAGE->getChannels();
Initializes pointed image to be write or read with macro QVIMAGE_PIXEL.

This macro defines variables that will be used with macro QVIMAGE_PIXEL, to access pixels in a given image. An example of use of this macro can be found in section Using macros QVIMAGE_INIT_*, and QVIMAGE_PIXEL..

Parameters:
TYPE Type of the image. It should be the value of first template parameter specified for the image.
IMAGE Name of the pointer variable that points to the image.
See also:
QVIMAGE_PIXEL

Definition at line 74 of file qvimage.h.


Generated on Wed Jan 16 18:41:29 2008 for QVision by  doxygen 1.5.3