![]() |
ImFusion C++ SDK 4.5.0
|
#include <ImFusion/Stream/ImageStreamBuffer.h>
This class buffers the last N seconds of an image stream and provides the buffered imaged as a SharedImageSet upon request. More...
This class buffers the last N seconds of an image stream and provides the buffered imaged as a SharedImageSet upon request.
The resulting frames can be further processed, displayed, or saved (e.g. to a video file).
Example:
Public Member Functions | |
| ImageStreamBuffer (ImageStream &stream) | |
| std::unique_ptr< SharedImageSet > | freezeBuffer () |
| Returns the last N seconds (specified by setCachingTime) of the Buffer It caches the first image if the image stream data contains multiple images. | |
| void | setBufferTime (std::chrono::duration< double > duration) |
| Configure the buffer length (in seconds). | |
| std::chrono::duration< double > | bufferTime () const |
| Get the buffer length (in seconds). | |
| Public Member Functions inherited from ImFusion::SignalReceiver | |
| SignalReceiver ()=default | |
| Default constructor. | |
| SignalReceiver (const SignalReceiver &other) | |
| Copy constructor, does not copy any existing signal connections from other. | |
| SignalReceiver & | operator= (SignalReceiver rhs) |
| Assignment operator, disconnects all existing connections, does not copy any existing signal connections from rhs. | |
| virtual | ~SignalReceiver () |
| Virtual destructor disconnects from all connected signals. | |
Additional Inherited Members | |
| Protected Member Functions inherited from ImFusion::SignalReceiver | |
| void | disconnectAll () |
| Disconnects all existing connections. | |
|
threadsafe |
Returns the last N seconds (specified by setCachingTime) of the Buffer It caches the first image if the image stream data contains multiple images.
as a SharedImageSet
Can be called concurrently from any thread.
|
threadsafe |
Configure the buffer length (in seconds).
Can be called concurrently from any thread.
|
threadsafe |
Get the buffer length (in seconds).
Can be called concurrently from any thread.