SyB3R - Synthetic Benchmark for 3D Reconstruction
|
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 |
Reads the hdr images from cycles, bakes all post processing effects into them and stores them as jpg files.
syb3r::synthesis::ImagePostprocessor::ImagePostprocessor | ( | ) |
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.
inputImage | The image to process |
output | The 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.
dataset | All images of this dataset will be processed |
outputPath | Path to a directory (without trailing slash) where the images are to be stored. |
outputFilenames | Vector 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. |
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.