This class is intended to abstract the opening of a video, it can load image sequence and video with the same public API.
More...
|
bool | m_isSequence |
|
int | m_index |
|
string | m_path |
|
This class is intended to abstract the opening of a video, it can load image sequence and video with the same public API.
- Author
- Benjamin Gallois
- Version
- Revision
- 5.0
Contact: benja.nosp@m.min..nosp@m.gallo.nosp@m.is@f.nosp@m.asttr.nosp@m.ack..nosp@m.sh
◆ VideoReader() [1/2]
VideoReader::VideoReader |
( |
const string & |
path | ) |
|
Construct the VideoReader object from a path to a file that can be either an image from an image sequence or a movie file.
- Parameters
-
[in] | path | Path to a video or image file. |
◆ VideoReader() [2/2]
Copy constructor.
- Parameters
-
◆ getImage() [1/2]
bool VideoReader::getImage |
( |
int |
index, |
|
|
Mat & |
destination |
|
) |
| |
Get the image at selected index, always one channel.
- Parameters
-
[in] | index | Index of the image. |
[in] | destination | Mat to store the image. |
◆ getImage() [2/2]
bool VideoReader::getImage |
( |
int |
index, |
|
|
UMat & |
destination |
|
) |
| |
Get the image at selected index, always one channel.
- Parameters
-
[in] | index | Index of the image. |
[in] | destination | UMat to store the image. |
◆ getImageCount()
unsigned int VideoReader::getImageCount |
( |
| ) |
const |
Get the total number of images in the video.
- Returns
- total number of images.
◆ getNext() [1/2]
bool VideoReader::getNext |
( |
Mat & |
destination | ) |
|
Get the next image, always one channel.
- Parameters
-
[in] | destination | UMat to store the image. |
◆ getNext() [2/2]
bool VideoReader::getNext |
( |
UMat & |
destination | ) |
|
Get the next image, always one channel.
- Parameters
-
[in] | destination | UMat to store the image. |
◆ isSequence()
bool VideoReader::isSequence |
( |
| ) |
|
Is the file is an image sequence.
- Returns
- True if an image sequence, false otherwise.
The documentation for this class was generated from the following files: