fast::ImageToBatchGenerator class

Converts a stream of images into stream of Batch data objects.

This is used for doing batch processing on a stream of images.

Base classes

class Streamer
Abstract base class for all Streamers.

Constructors, destructors, conversion operators

~ImageToBatchGenerator() override

Public functions

auto create(int maxBatchSize) -> std::shared_ptr<ImageToBatchGenerator>
Create instance.
void setMaxBatchSize(int size)
void loadAttributes() override

Protected functions

void execute() override
void generateStream() override

Protected variables

int m_maxBatchSize
DataChannel::pointer mParent

Function documentation

std::shared_ptr<ImageToBatchGenerator> fast::ImageToBatchGenerator::create(int maxBatchSize)

Create instance.

Parameters
maxBatchSize Maximum batch size
Returns instance

void fast::ImageToBatchGenerator::generateStream() override protected

The function producing the data stream