#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 |
Definition in file qvimage.h.
#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();
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..
TYPE | Type of the image. It should be the value of first template parameter specified for the image. | |
IMAGE | Image name. |
Definition at line 38 of file qvimage.h.
Referenced by CountingSort(), FilterLocalMax(), QVImage< Type, Channels >::operator==(), and 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();
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..
TYPE | Type of the image. It should be the value of first template parameter specified for the image. | |
IMAGE | Image name. |
Definition at line 50 of file qvimage.h.
Referenced by draw(), FilterLocalMax(), and 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..
Definition at line 87 of file qvimage.h.
Referenced by CountingSort(), draw(), FilterLocalMax(), QVImage< Type, Channels >::operator==(), and 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();
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..
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. |
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();
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..
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. |