#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 written 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 writen 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 an image pixel for inspection or modification. | |
#define | QVIMAGE_PIXEL_PTR(IMAGE, Col, Row, Channel) (& (__qv_data_##IMAGE##__ [(Row)* __qv_step_##IMAGE##__ + __qv_planes_##IMAGE##__ *(Col)+(Channel)])) |
Obtains a reference to the memory location of a pixel. | |
#define | QVIMAGE_ROW_INCREMENT_PTR(IMAGE) ( __qv_step_##IMAGE##__ ) |
Obtains the increment for a row movement of a pixel. | |
#define | QVIMAGE_COL_INCREMENT_PTR(IMAGE) ( __qv_planes_##IMAGE##__ ) |
Obtains the increment for a column movement of a pixel. | |
#define | QVIMAGE_NEXT_LINE_INCREMENT_PTR(IMAGE) ( __qv_next_line_inc_##IMAGE##__ ) |
Obtains the location of the first pixel in a row, given the location of the last pixel in the upper row. | |
Typedefs | |
typedef QVImage < uChar, 1 > | QVImageUCharC1 |
typedef QVImage < uChar, 3 > | QVImageUCharC3 |
typedef QVImage < uShort, 1 > | QVImageUShortC1 |
typedef QVImage < uShort, 3 > | QVImageUShortC3 |
typedef QVImage < sShort, 1 > | QVImageSShortC1 |
typedef QVImage < sShort, 3 > | QVImageSShortC3 |
typedef QVImage < sInt, 1 > | QVImageSIntC1 |
typedef QVImage < sInt, 3 > | QVImageSIntC3 |
typedef QVImage < sFloat, 1 > | QVImageSFloatC1 |
typedef QVImage < sFloat, 3 > | QVImageSFloatC3 |
Definition in file qvimage.h.
#define QVIMAGE_COL_INCREMENT_PTR | ( | IMAGE | ) | ( __qv_planes_##IMAGE##__ ) |
Obtains the increment for a column movement of a pixel.
This macro can be used to navigate through the contents of an image given an initial pointer to its contents. See section Pixel access. for detailed usage of this macro.
#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(); \ const uInt __qv_next_line_inc_##IMAGE##__ = __qv_step_##IMAGE##__ - IMAGE.getCols();
This macro initializes an image to inspect or modify its contents using a set of pixel access macros. See section Pixel access. for detailed usage of this macro.
TYPE | Type of the image. It should be the value of first template parameter specified for the image. | |
IMAGE | Image name. |
Definition at line 40 of file qvimage.h.
Referenced by CountingSort(), FilterLocalMax(), getConnectedSetBorderContoursThreshold(), getConnectedSetBorderContourThreshold(), getLineContoursThreshold4Connectivity(), getLineContoursThreshold8Connectivity(), GetMaximalResponsePoints1(), GetMaximalResponsePoints1bis(), GetMaximalResponsePoints3(), GetMaximalResponsePoints3bis(), 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(); \ const uInt __qv_next_line_inc_##IMAGE##__ = __qv_step_##IMAGE##__ - IMAGE.getCols();
This macro initializes an image to inspect or modify its contents using a set of pixel access macros. See section Pixel access. for detailed usage of this macro.
TYPE | Type of the image. It should be the value of first template parameter specified for the image. | |
IMAGE | Image name. |
Definition at line 55 of file qvimage.h.
Referenced by FilterHessianCornerResponseImage(), FilterLocalMax(), getConnectedSetBorderContoursThreshold(), getLineContourThreshold4Connectivity(), getLineContourThreshold8Connectivity(), GetMaximalResponsePoints1(), GetMaximalResponsePoints1bis(), and QVComponentTree::QVComponentTree().
#define QVIMAGE_NEXT_LINE_INCREMENT_PTR | ( | IMAGE | ) | ( __qv_next_line_inc_##IMAGE##__ ) |
Obtains the location of the first pixel in a row, given the location of the last pixel in the upper row.
This macro can be used to navigate through the contents of an image given an initial pointer to its contents. See section Pixel access. for detailed usage of this macro.
#define QVIMAGE_PIXEL | ( | IMAGE, | |||
Col, | |||||
Row, | |||||
Channel | ) | (__qv_data_##IMAGE##__ [(Row)* __qv_step_##IMAGE##__ + __qv_planes_##IMAGE##__ *(Col)+(Channel)]) |
Access an image pixel for inspection or modification.
This macro can be used to access arbitrary pixels in an image, with a good time performance. See section Pixel access. for detailed usage of this macro.
Definition at line 100 of file qvimage.h.
Referenced by CountingSort(), FilterHessianCornerResponseImage(), FilterLocalMax(), getConnectedSetBorderContoursThreshold(), getConnectedSetBorderContourThreshold(), getLineContoursThreshold4Connectivity(), getLineContoursThreshold8Connectivity(), getLineContourThreshold4Connectivity(), getLineContourThreshold8Connectivity(), GetMaximalResponsePoints1(), GetMaximalResponsePoints1bis(), GetMaximalResponsePoints3(), GetMaximalResponsePoints3bis(), QVImage< Type, Channels >::operator==(), and QVComponentTree::QVComponentTree().
#define QVIMAGE_PIXEL_PTR | ( | IMAGE, | |||
Col, | |||||
Row, | |||||
Channel | ) | (& (__qv_data_##IMAGE##__ [(Row)* __qv_step_##IMAGE##__ + __qv_planes_##IMAGE##__ *(Col)+(Channel)])) |
Obtains a reference to the memory location of a pixel.
This macro can be used to obtain the location of arbitrary pixels in an image, with a good time performance. See section Pixel access. for detailed usage of this macro.
#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(); \ const uInt __qv_next_line_inc_##IMAGE##__ = __qv_step_##IMAGE##__ - IMAGE->getCols();
This macro initializes a pointed image to inspect its contents using a set of pixel access macros. See section Pixel access. for detailed usage of this macro.
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 70 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(); \ const uInt __qv_next_line_inc_##IMAGE##__ = __qv_step_##IMAGE##__ - IMAGE->getCols();
This macro initializes a pointed image to inspect or modify its contents using a set of pixel access macros. See section Pixel access. for detailed usage of this macro.
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. |
#define QVIMAGE_ROW_INCREMENT_PTR | ( | IMAGE | ) | ( __qv_step_##IMAGE##__ ) |
Obtains the increment for a row movement of a pixel.
This macro can be used to navigate through the contents of an image given an initial pointer to its contents. See section Pixel access. for detailed usage of this macro.