class Input::ImageSourceBuffer
Represents a source of image data, used as input to or output from Vision AI operations.
Members
ImageSourceBuffer
Syntax: public inline ImageSourceBuffer ( const CallbackFunction_Type callback );
Constructor that takes an optional callback function to write a new image.
Parameters
callback
A callback function that will be invoked when a new image is needed
Supported for usage with ImageAnalyzer, but without a callback. Call this constructor without arguments. Then call GetWriter() on the resulting object to get an ImageWriter.
~ImageSourceBuffer
Syntax: public inline virtual ~ImageSourceBuffer ( );
Destructs an instance of the ImageSourceBuffer class.
GetWriter
Syntax: public inline std::shared_ptr< ImageWriter > GetWriter ( );
Gets the ImageWriter associated with this ImageSourceBuffer.
Returns
An ImageWriter as std::shared_ptr
Use the ImageWriter's Write method to write an image to the internal buffer.
CloseWriter
Syntax: public inline void CloseWriter ( );
Closes the ImageSourceBuffer for writing.
CallbackFunction_Type
Syntax: typedef CallbackFunction_Type;