Represents a GenTL buffer.
More...
#include <EGrabber.h>
Create a Buffer object encapsulating a GenTL buffer.
- Parameters
-
void push |
( |
Internal::EGrabberBase & |
grabber | ) |
|
Push the GenTL buffer back to the data stream input fifo.
- Parameters
-
grabber | the grabber managing the underlying GenTL buffer to push back |
Get buffer information.
- Template Parameters
-
- Parameters
-
Get the user pointer provided when the GenTL buffer was announced (if any)
void saveToDisk |
( |
Internal::EGrabberBase & |
grabber, |
|
|
const std::string & |
filepath, |
|
|
int64_t |
index = -1 , |
|
|
const ge::ImageSaveToDiskParams * |
params = 0 |
|
) |
| |
Save the buffer content to disk.
- Parameters
-
grabber | the grabber managing the underlying GenTL buffer to save to disk |
filepath | path or path pattern
- path of the new image file, the file extension determines the file format
- path pattern where a group characters 'N' is replaced by the value of index:
- if index is 5, N becomes 5
- if index is 9, NN becomes 09
- if index is 10, NN becomes 10
for (size_t i = 0; i < 20; ++i) { buffer[i]->saveToDisk(grabber, "images/buffer.NNN.jpeg", i); }
|
index |
- if index >= 0, enable pattern substitution with given index value
- if index < 0, disable pattern substitution
|
params | optional parameters (see GenTL::EuresysCustomGenTL::ImageSaveToDiskParams) |
- Precondition
- the parent directory must exist
- Note
- buffer informations (address, width, height, format) are automatically queried
-
no buffer conversion will be applied before writing the image file, please use the RGBConverter if needed
- See also
- EuresysImage.h
The documentation for this class was generated from the following file: