TarzaNN
TarzaNN neural network simulator
Static Public Member Functions
FilterFactory Class Reference

#include <FilterFactory.h>

List of all members.

Static Public Member Functions

static FiltergetInstance (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)

Detailed Description

Filter factory, creates a filter based on a dictionary of parameters. Uses the Factory design pattern

Uses the Singleton design pattern


Member Function Documentation

paramMap FilterFactory::getDefaultParameters ( QString  type) [static]
Filter * FilterFactory::getInstance ( QString  type,
paramMap  params 
) [static]

Create the filter

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


The documentation for this class was generated from the following files:
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines