TarzaNN
TarzaNN neural network simulator
|
#include <FilterFactory.h>
Static Public Member Functions | |
static Filter * | getInstance (QString type, paramMap params) |
static void | performOperation (Filter *theFilter, QString opName, QString opValue) |
static paramMap | getDefaultParameters (QString type) |
static QString | getParamDisplayName (QString type, QString paramName) |
static QString | getParamDisplayHelp (QString type, QString paramName) |
Filter factory, creates a filter based on a dictionary of parameters. Uses the Factory design pattern
Uses the Singleton design pattern
paramMap FilterFactory::getDefaultParameters | ( | QString | type | ) | [static] |
QString FilterFactory::getParamDisplayHelp | ( | QString | type, |
QString | paramName | ||
) | [static] |
QString FilterFactory::getParamDisplayName | ( | QString | type, |
QString | paramName | ||
) | [static] |
void FilterFactory::performOperation | ( | Filter * | theFilter, |
QString | opName, | ||
QString | opValue | ||
) | [static] |
Perform operations on the filter. Operations are defined in the fp-input section of the XML file. Function is called automatically after the filter is created. Supported operations: TODO - document details
multiply - multiply all filter values with a scalar add - add a scalar to all filter values clamp - limit the maximum filter value to a scalar shift_x_percent - shift the filter along the X axis a certain percent of the size of the filter shift_y_percent - shift the filter along the Y axis a certain percent of the size of the filter shift_x_pixels - shift the filter along the X axis a certain number of pixels shift_y_pixels - shift the filter along the Y axis a certain number of pixels punch_out - set the central pixels of the filter to zero