fast::ImagesToSequence class

Process object for converting a stream of images to a Sequence data object.

This process object converts a stream of images to a stream of sequences of a given size. If the sequence size is X, for the first execute, the added item will be copied X times in the sequence. New images are added to the end/back of the sequence, while the first/oldest image, is removed.

Base classes

class ProcessObject
Abstract base class for all process objects.

Public functions

auto create(int sequenceSize) -> std::shared_ptr<ImagesToSequence>
Create instance.
void loadAttributes() override

Protected functions

void execute() override

Protected variables

int m_sequenceSize
std::deque<std::shared_ptr<Image>> m_queue

Function documentation

std::shared_ptr<ImagesToSequence> fast::ImagesToSequence::create(int sequenceSize)

Create instance.

Parameters
sequenceSize Set size of sequence
Returns instance