iVS3D v2.0.0
Loading...
Searching...
No Matches
Factory Class Reference

The Factory class is responsible for creating and destroying as well as managing a single object of the ImageGatherer and FlowCalculator class. It creates the hardware specified type of each of these classes. (CPU or CUDA) More...

#include <factory.h>

Public Member Functions

std::tuple< ImageGatherer *, FlowCalculator *, KeyframeSelector * > createComponents (std::vector< uint > futureFrames, Reader *reader, bool useCuda, double threshold)
 createComponents creates all neccessary components for the sample process (ImageGatherer, FlowCalculator, KeyframeSelector)
 
std::tuple< ImageGatherer *, FlowCalculator *, KeyframeSelector * > createComponents (std::vector< uint > futureFrames, Reader *reader, bool useCuda, double threshold)
 createComponents creates all neccessary components for the sample process (ImageGatherer, FlowCalculator, KeyframeSelector)
 

Detailed Description

The Factory class is responsible for creating and destroying as well as managing a single object of the ImageGatherer and FlowCalculator class. It creates the hardware specified type of each of these classes. (CPU or CUDA)

Author
Dominic Zahn
Date
2022/4/5

Member Function Documentation

◆ createComponents() [1/2]

std::tuple< ImageGatherer *, FlowCalculator *, KeyframeSelector * > Factory::createComponents ( std::vector< uint >  futureFrames,
Reader reader,
bool  useCuda,
double  threshold 
)

createComponents creates all neccessary components for the sample process (ImageGatherer, FlowCalculator, KeyframeSelector)

Parameters
futureFramesas list of all frames that will be requested from the imageGatherer in the future
readeris the object which the imageGatherer uses to extract the images
useCudadefines the implementation which should be used (CPU or CUDA)
selectorNamename of the selected KeyframeSelector
selectorSettingsparameters from ui, which will be used to select Keyframes
Returns
as an std::tuple containing one of each components {ImageGatherer, FlowCalculator, KeyframeSelector}

◆ createComponents() [2/2]

std::tuple< ImageGatherer *, FlowCalculator *, KeyframeSelector * > Factory::createComponents ( std::vector< uint >  futureFrames,
Reader reader,
bool  useCuda,
double  threshold 
)

createComponents creates all neccessary components for the sample process (ImageGatherer, FlowCalculator, KeyframeSelector)

Parameters
futureFramesas list of all frames that will be requested from the imageGatherer in the future
readeris the object which the imageGatherer uses to extract the images
useCudadefines the implementation which should be used (CPU or CUDA)
selectorNamename of the selected KeyframeSelector
selectorSettingsparameters from ui, which will be used to select Keyframes
Returns
as an std::tuple containing one of each components {ImageGatherer, FlowCalculator, KeyframeSelector}

The documentation for this class was generated from the following files: