2.3   Describing the Parameters

Please note that the number of parameters is limited for an extension package operators as listed in the Installation Guide.

Again, the definition of dyn_threshold is used as an example. Every description of a single parameter starts with the keyword parameter and contains several slots. A slot begins with a characteristic keyword followed by a colon and is finished by a semicolon. All slots specified for the parameters of an operator are accessible online within the HALCON system using the operator get_param_info, see the Reference Manuals for details.

  parameter
    OrigImage:           input_object;
    description.english: Image to be segmented.;
    sem_type:            image;
    type_list:           byte,int2,int4,real;
    multivalue:          optional;

  parameter
    ThresholdImage:      input_object;
    description.english: Image containing the local thresholds.;
    sem_type:            image;
    type_list:           byte,int2,int4,real;
    multivalue:          optional;

  parameter
    RegionDynThresh:     output_object;
    description.english: Segmented regions.;
    sem_type:            region;
    multivalue:          optional;

  parameter
    Offset:              input_control;
    description.english: Offset added to ThresholdImage.;
    sem_type:            number;
    type_list:           integer,real;
    default_type:        real;
    default_value:       5.0;
    values:              1.0, 3.0, 5.0, 7.0, 10.0, 20.0, 30.0;
    multivalue:          false;
    assertion:           -255 < Offset && Offset < 255;
    costs_weight:        0;

  parameter
    LightDark:           input_control;
    description.english: Extract light, dark or similar areas?;
    sem_type:            string;
    type_list:           string;
    default_type:        string;
    default_value:       light;
    value_list:          dark,light,equal,not_equal;
    multivalue:          false;
    costs_weight:        0;

The minimum of information needed for every parameter is its name and type, its default type, its semantic type, the number of values allowed (multivalue), and, if the operator should be automatically parallelized, the “costs weight” of input control parameters and the “postprocessing” of output control parameters, see below.