Validate Labels and Output Flags

Function

Determine whether each label of the input label list appears in the standard list, and output the corresponding Boolean value list. The standard list comes from a label file set in the parameters or the input standard label list.

../../../../_images/validate_labels_by_flags.png

Sample Scenario

This Step is usually followed by the Step Filter, and the Boolean list it outputs will be used as the criterion to filter the data array.

Input and Output

../../../../_images/input_output_14.png

Parameter Descriptions

Parameter

Description

Label File Name

Set reference labels

Click to set reference labels in the JSON editor

labelFilter.json

Default values of reference labels, used as a reference label list

Parameter Tuning

Label File Name

Default setting: labelFilter.json is used as the reference label list. This file includes labels that are used to validate the input label list. If elements in the input label list appear in the reference label list, their output values in the Boolean list will be “True”.
Instruction: Click Set reference labels to open the JSON editor, as shown below.
../../../../_images/json_interface.png
Introduction of the JSON Editor:
  • List: Display the current elements

  • Toorbar:

    • icon_add: Add an element

    • icon_delete: Delete the current element

    • icon_up: Move up the current element

    • icon_down: Move down the current element

  • Directory: The directory of the current project, click icon_file to select another project.

  • JSON File Name: The current label name of the elements in the list, click icon_file to re-select the label.

Once you have completed the configuration, please click Save and then OK to save the settings.