G'MIC - GREYC's Magic for Image Computing: A Full-Featured Open-Source Framework for Image Processing
GREYC CNRS ENSICAEN UNICAEN

A Full-Featured Open-Source Framework for Image Processing



Latest stable version: 3.3.5        Current pre-release: 3.3.6 (2024/04/19)

Reference

Table of Contents  ▸  List of Commands  ▸  Input / Output  ▸  parse_gui◀  gmd2ascii    |    pass  ▶

parse_gui

Arguments:

Description:

Parse selected filter definitions and generate info about filters in selected output mode.

outputmode can be { gmicol | images | json | list | print | strings | update | zart }.

It is possible to define a custom output mode, by implementing the following commands
(outputmode must be replaced by the name of the custom user output mode):
. parse_gui_outputmode : A command that outputs the parsing information with a custom format.
. parse_gui_parseparams_outputmode (optional): A simple command that returns 0 or 1. It tells the parser whether parameters of matching filter must be analyzed (slower) or not.
. parse_gui_trigger_outputmode (optional): A command that is called by the parser just before parsing the set of each matching filters.

Here is the list of global variables set by the parser, accessible in command parse_gui_outputmode:

$_nb_filters: Number of matching filters.
$_nongui (stored as an image): All merged lines in the file that do not correspond to #@gui lines.

For each filter #F (F in range [0,$_nb_filters-1]):
$_fF_name : Filter name.
$_fF_path : Full path.
$_fF_locale : Filter locale (empty, if not specified).
$_fF_command : Filter command.
$_fF_command_preview : Filter preview command (empty, if not specified).
$_fF_zoom_factor : Default zoom factor (empty, if not specified).
$_fF_preview_accuracy : Preview accuracy (can be { 0:does not support zoom in/out | 1:support zoom in/out | 2:pixel-perfect }).
$_fF_input_mode : Default preferred input mode (empty, if not specified).
$_fF_hide : Path of filter hid by current filter (for localized filters, empty if not specified).
$_fF_nb_params : Number of parameters.

For each parameter #P of the filter #F (P in range [0,$_fF_nb_params-1]):
$_fF_pP_name : Parameter name.
$_fF_pP_type : Parameter type.
$_fF_pP_responsivity : Parameter responsivity (can be { 0 | 1 }).
$_fF_pP_visibility : Parameter visibility.
$_fF_pP_propagation : Propagation of the parameter visibility.
$_fF_pP_nb_args : Number of parameter arguments.

For each argument #A of the parameter #P (A in range [0,$_fF_pP_nb_args-1]):
$_fF_pP_aA : Argument value

Default parameters: filter_name=* and output_format=print.
G'MIC - GREYC's Magic for Image Computing: A Full-Featured Open-Source Framework for Image Processing

G'MIC is an open-source software distributed under the CeCILL free software licenses (LGPL-like and/or
GPL-compatible). Copyrights (C) Since July 2008, David Tschumperlé - GREYC UMR CNRS 6072, Image Team.