SyB3R - Synthetic Benchmark for 3D Reconstruction
Public Member Functions | Public Attributes | Protected Attributes | List of all members
syb3r::synthesis::ImagePostprocessor Class Reference

Reads the hdr images from cycles, bakes all post processing effects into them and stores them as jpg files. More...

#include <libs/Synthesis/source/syb3r/synthesis/ImagePostprocessor.h>

Public Member Functions

 ImagePostprocessor ()
 
void appendStep (ImagePostprocessorStep *step)
 Append another post processing step to the chain. More...
 
void process (const data::Image &inputImage, const std::string &output) const
 Process a single image. More...
 
void process (const data::Dataset &dataset, const std::string &outputPath, std::vector< std::string > &outputFilenames) const
 Process all images of a dataset in a multithreaded way. More...
 
void setupDefaultEOS400 ()
 
void setupOldEOS400 ()
 

Public Attributes

ImageProperties initialProperties
 The initial set of properties that the processing of each image starts with. More...
 

Protected Attributes

std::vector< std::unique_ptr< ImagePostprocessorStep > > m_ppSteps
 

Detailed Description

Reads the hdr images from cycles, bakes all post processing effects into them and stores them as jpg files.

Todo:
Put jpg compression into an exchangeable step as well.

Constructor & Destructor Documentation

syb3r::synthesis::ImagePostprocessor::ImagePostprocessor ( )
Todo:
read these from the camera!

Member Function Documentation

void syb3r::synthesis::ImagePostprocessor::appendStep ( ImagePostprocessorStep step)

Append another post processing step to the chain.

The ImagePostprocessor takes ownership of the instance.

void syb3r::synthesis::ImagePostprocessor::process ( const data::Image inputImage,
const std::string &  output 
) const

Process a single image.

Parameters
inputImageThe image to process
outputThe filename where to store the resulting jpg image
void syb3r::synthesis::ImagePostprocessor::process ( const data::Dataset dataset,
const std::string &  outputPath,
std::vector< std::string > &  outputFilenames 
) const

Process all images of a dataset in a multithreaded way.

All resulting images are stored in a single directory, the filenames are passed back as a vector of strings.

Parameters
datasetAll images of this dataset will be processed
outputPathPath to a directory (without trailing slash) where the images are to be stored.
outputFilenamesVector of strings in which the function will store the filenames of the processed images. They can be related to the images in the dataset by their indices.

Member Data Documentation

ImageProperties syb3r::synthesis::ImagePostprocessor::initialProperties

The initial set of properties that the processing of each image starts with.

The post processing steps can modify these properties to pass information to subsequent steps.


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