The OpenCVSource class uses OpenCV to read images from cameras or files.
More...
#include <opencvsource.h>
|
|
unsigned int | width_ |
| |
|
unsigned int | height_ |
| |
|
unsigned int | frameNr_ |
| |
The OpenCVSource class uses OpenCV to read images from cameras or files.
| iu::OpenCVSource::OpenCVSource |
( |
unsigned int |
camId = 0, |
|
|
bool |
gray = true |
|
) |
| |
OpenCVSource constructor. Initialize the camera camId.
- Parameters
-
| camId | id of camera to initialize |
| gray | if true, capture 8-bit grayscale, otherwise 24-bit RGB |
| iu::OpenCVSource::OpenCVSource |
( |
const std::string & |
filename, |
|
|
bool |
gray = true |
|
) |
| |
OpenCVSource constructor to read from a video file.
- Parameters
-
| filename | video file name |
| gray | if true, capture 8-bit grayscale, otherwise 24-bit RGB |
| unsigned int iu::OpenCVSource::getCurrentFrameNr |
( |
| ) |
|
|
inlinevirtual |
get frame index. Upon camera initilaization, the counter is set to 0
- Returns
Implements iu::VideoSource.
| unsigned int iu::OpenCVSource::getHeight |
( |
| ) |
|
|
inlinevirtual |
| cv::Mat iu::OpenCVSource::getImage |
( |
| ) |
|
|
virtual |
| unsigned int iu::OpenCVSource::getWidth |
( |
| ) |
|
|
inlinevirtual |
The documentation for this class was generated from the following file:
- /home/christian/workdir/postdoc/projects/mobile-vision-private/software/libs/mobilevision/imageutilities/include/iu/iuio/opencvsource.h