Tools

Along with the framework itself, the normal distributions of f.r.e.e. contains several tools. These tools allow the utilization of different features of f.r.e.e as well as realize features by using the f.r.e.e. framework. The source code of these tools can be found in the application sub directory. In the following the tools will be briefly introduced.

freeAdapt

This tool can be used to generate adapted setups by utilizing a given generic setup as template and an adaptation element or list. FreeAdapt will generate one adapted setup for each adaptation element. These adapted setups will be saved in a specified project path. The pattern for the filename creation of adapted setups can be specified by the user.
Usage
freeAdapt <setup-file> <adaptation-list> [options]

Command line options:
Example:
freeAdapt generic.fre cases.ial -an adaptedSetup
Executing freeAdapt will adapt the generic setup stored in "generic.fre" with each adaptation in "cases.ial" and store the adapted setups in the current working directory. The file names will be "adaptedSetup_1.fre", "adaptedSetup_2.fre" and so on.
Adapted setup name pattern
The file name of adapted setups will be generated using following pattern:
<setup-name>_<adaptation-suffix>
<Setup-name> is the name of the generic setup (not the file name!) or can be specified by the command line option -an. <Adaptation-suffix> is by default the index of the adaptation in the adaptation list. Using the command line option -ad, freeAdapt will use the description tag of each adaptation instead. See above for an example.

freeCL

This is one of the central tools in the tool set. FreeCL is the command line processor of f.r.e.e.. It allows the goal driven processing of setup files. Therefore the user can specify the result media of the setup that should be generated. Via backward chaining the data for the chosen result media will be gathered and processed. By default all result media will be generated. The whole setup processing can be logged and stored for further analysis.
Media drain
Because freeCL processes setups goal driven, the setups need to specify all result media that they offer. This is done via a media drain component added to the setup and linked to all offered result media. The media drain must always have the id MediaFinal. FreeCL searches by default for this media drain and computes all linked media. By use of the -sm flag the media that should be computed can be selected explicitly.
Usage
freeCL <free-setup-file> [options]

Command line options:
Example:

freeDiag

This tool is used to get information about the controllers available on the system. You can list all controllers or search for controllers and the location of their associated dynamic linked library. The tools also allows the view the basic profile of a controller with its parameters, media io and sub components.
Usage
freeDiag [<ControllerID>] [options]

Command line options:
Example:
freeDiag Media -l
This will produce a list of all controllers which have a controller id that matches or contain the search string "Media" (e.g. "Media Container", "Media Drain" or "Intensity 2D Image Media"). The list contains the location of the DLL and the status of the controller.

freeDiag "Binary Threshold 2D Image Filter"
This will show the profile of the controller "Binary Threshold 2D Image Filter".

freeEval

This tool is used to evaluate a setup file by using an adaptation list serving as test case set and a setup defining the metric that should measure the quality. Results of the evaluation will be stored in an evaluation statistic file. The structure depends like the measure on the chosen metric. The evaluation metric can arbitrarily be defined via a setup (further information see paragraph "Evaluation metric").
Evaluation metric
The metric used for the evaluation is defined in an extra setup file (metric setup). Every metric can be used, as long as the metric is derived from SetupOptimizationMetric (controller id: SetupOptimizationMetricBase). The component id of the evaluation metric in the setup has to be "EvaluationMetric". If these requirements are met, the setup/metric can be used to evaluate the target setup.
Usage
freeEval <metric-setup-file> <target-setup-file> <adaptation-list> [options]

Command line options:
Example:
freeEval metric.fre reg.fre cases.ial -pp ./result -pn demo
Executing freeEval with these parameters will evaluate reg.fre with the adaptation list cases.ial by using the evaluation metric defined in metric.fre. The result file will be demo.txt.

freeSO

This tool is used to optimize a target setup file by a user defined optimizing strategy. The optimizing strategy is defined by an optimization setup that defines all components that will be used for the optimization of the target setup. The optimization setup normally also defines the target setup and an adaptation list that is used as training set for the optimization.
Optimization progress and results of the setup optimization evaluation will be stored in a statistic file. The structure of the file depends on the chosen optimzation strategy and the used evaluation metric (further information see paragraph "Setup Optimization").
Setup Optimization
Every setup optimization is driven by a setup optimization processor. Therefor an optimization setup must contain such a processor as a component with ID "Setup Optimization". For more information about setup optimization itself see feature description. A setup optimization process always has a metric (derived from SetupOptimizationMetric) to evaluate the quality of a setup, an optimizer (derived from SetupOptimizationOptimizer) and a setup transform (based on SetupTransform). Usually the target setup and the adaptation list are set as parameters in the optimization setup, but it is also possible to define both via command line options.
Usage
freeSO <optimization-setup-file> [options]

Command line options:
Example:
freeSO SetOp.fre -pn demo -s target.fre
Executing freeSO with these parameters will optimize target.fre with the adaptation list and optimization strategy defined in SetOp.fre. The result file will be demo_stat.xml.

Generated at Sat Oct 13 18:17:03 2007 for f.r.e.e. - Flexible Registration and Evaluation Engine by doxygen 1.5.3 written by Dimitri van Heesch, © 1997-2000