#include <OpenCVImageAdapter.h>
Inheritance diagram for OpenCVImageAdapter:

Public Member Functions | |
| OpenCVImageAdapter (IplImage *im) | |
| virtual | ~OpenCVImageAdapter () |
| virtual double | getPixel (int row, int column, int channel) const |
| virtual void | setPixel (double value, int row, int column, int channel) |
Protected Member Functions | |
| template<typename T> | |
| double | getPixelT (int row, int column, int channel) const |
| template<typename T> | |
| void | setPixelT (double value, int row, int column, int channel) |
| double | getPixeldoNothing (int row, int column, int channel) const |
| void | setPixeldoNothing (double value, int row, int column, int channel) |
Protected Attributes | |
| IplImage * | mIplImage |
| double(OpenCVImageAdapter::* | getPixelfptr )(int row, int column, int channel) const |
| void(OpenCVImageAdapter::* | setPixelfptr )(double value, int row, int column, int channel) |
The OpenCVImageAdapter class is inherited from the OvImageAdapter and provides a wrapper around OpenCV's IplImage allowing the OpenVis3D library functions to access the dimensions and datatype of the image, and provides get and set methods to alter image pixels.
| OpenCVImageAdapter::OpenCVImageAdapter | ( | IplImage * | im | ) |
to prevent the default constructor from being used
| OpenCVImageAdapter::~OpenCVImageAdapter | ( | ) | [virtual] |
Destructor.
| double OpenCVImageAdapter::getPixel | ( | int | row, | |
| int | column, | |||
| int | channel | |||
| ) | const [virtual] |
Returns a pixel value at a particular row, column and color channel.
| row | row of the image | |
| column | column of the image | |
| channel | channel of the image |
Implements OvImageAdapter.
| double OpenCVImageAdapter::getPixeldoNothing | ( | int | row, | |
| int | column, | |||
| int | channel | |||
| ) | const [protected] |
Dummy function for use when internal IplImage pointer is null or data type unknown.
| row | row of the image | |
| column | column of the image | |
| channel | channel of the image |
| double OpenCVImageAdapter::getPixelT | ( | int | row, | |
| int | column, | |||
| int | channel | |||
| ) | const [protected] |
Internal template function to handle any image datatype. Returns a pixel value at a particular row, column and color channel.
| row | row of the image | |
| column | column of the image | |
| channel | channel of the image |
| void OpenCVImageAdapter::setPixel | ( | double | value, | |
| int | row, | |||
| int | column, | |||
| int | channel | |||
| ) | [virtual] |
Sets a pixel value at a particular row, column and color channel.
| value | value to be set | |
| row | row of the image | |
| column | column of the image | |
| channel | channel of the image |
Implements OvImageAdapter.
| void OpenCVImageAdapter::setPixeldoNothing | ( | double | value, | |
| int | row, | |||
| int | column, | |||
| int | channel | |||
| ) | [protected] |
Dummy function for use when internal IplImage pointer is null or data type unknown.
| value | value to be set | |
| row | row of the image | |
| column | column of the image | |
| channel | channel of the image |
| void OpenCVImageAdapter::setPixelT | ( | double | value, | |
| int | row, | |||
| int | column, | |||
| int | channel | |||
| ) | [protected] |
Internal template function to handle any image datatype. Sets a pixel value at a particular row, column and color channel.
| value | value to be set | |
| row | row of the image | |
| column | column of the image | |
| channel | channel of the image |
double(OpenCVImageAdapter::* OpenCVImageAdapter::getPixelfptr)(int row, int column, int channel) const [protected] |
function pointer used to store getpixel function appropriate for image datatype
IplImage* OpenCVImageAdapter::mIplImage [protected] |
saved pointer to OpenCV IplImage object
void(OpenCVImageAdapter::* OpenCVImageAdapter::setPixelfptr)(double value, int row, int column, int channel) [protected] |
function pointer used to store setpixel function appropriate for image datatype
1.4.7