Example of implementation of the pbio::IRawImage interface via OpenCV.
More...
#include <CVRawImage.h>
|
| CVRawImage () |
| Contructor.
|
|
virtual | ~CVRawImage () |
| Virtual destructor.
|
|
virtual const unsigned char * | data () const |
| Get a pointer to the image data buffer. More...
|
|
virtual int32_t | width () const |
| Get an image width. More...
|
|
virtual int32_t | height () const |
| Get an image height. More...
|
|
virtual int32_t | format () const |
| Get an image format. More...
|
|
cv::Mat & | mat () |
| Get a reference to the stored cv::Mat object. More...
|
|
const cv::Mat & | mat () const |
| Get a constant reference to the stored cv::Mat object. More...
|
|
virtual | ~IRawImage () |
| Virtual destructor.
|
|
Example of implementation of the pbio::IRawImage interface via OpenCV.
const unsigned char * pbio::CVRawImage::data |
( |
| ) |
const |
|
inlinevirtual |
Get a pointer to the image data buffer.
- Returns
- NULL, if the stored cv::Mat object is invalid
- pointer to the image data buffer, otherwise.
Implements pbio::IRawImage.
int32_t pbio::CVRawImage::format |
( |
| ) |
const |
|
inlinevirtual |
int32_t pbio::CVRawImage::height |
( |
| ) |
const |
|
inlinevirtual |
Get an image height.
- Returns
- Number of rows in the image.
Implements pbio::IRawImage.
cv::Mat & pbio::CVRawImage::mat |
( |
| ) |
|
|
inline |
Get a reference to the stored cv::Mat object.
- Returns
- Reference to the stored cv::Mat object.
const cv::Mat & pbio::CVRawImage::mat |
( |
| ) |
const |
|
inline |
Get a constant reference to the stored cv::Mat object.
- Returns
- Constant reference to the stored cv::Mat object.
int32_t pbio::CVRawImage::width |
( |
| ) |
const |
|
inlinevirtual |
Get an image width.
- Returns
- Number of columns in the image.
Implements pbio::IRawImage.