Custon Mapped Parameter

You can select one or more parameters of the Steps as variables, and map the variables with JavaScript codes. The following instructions are based on the Procedure 3D Matching.

  1. Right-click on the Prodcedure and select Edit Procedure Parameters in the context menu.

    ../../../../../_images/custom_mapped_parameter1.png
  2. Click on + to open the Add a New Parameter window and select the type Custom Mapping Parameter. Click on OK to confirm.

    ../../../../../_images/custom_mapped_parameter2.png
  3. A new matching output number (output_num) parameter will be used as the example in this section. Enter the parameter name in the Add a New Parameter window and click on OK.

    ../../../../../_images/custom_mapped_parameter3.png
  4. Click on +, check the corresponding parameter in the Select Step Properties window as shown in the figure below, and then click on OK after checking.

    ../../../../../_images/custom_mapped_parameter4.png
  5. The added parameters are shown in the figure below.

    ../../../../../_images/custom_mapped_parameter5.png
  6. Assuming that the maximum number of detected poses in each point cloud of 3D Coarse Matching is set to be 3 times as that of 3D Fine Matching, and the above mapping relationship can be achieved by modifying the JavaScript script.

    outputSize = 3* output_num + 0
    candidateTopNum = 1 * output_num + 0
    

After modifying the value of output_num, you can click on Test to verify whether the mapping relationship has taken effect, as shown in the figure below.

../../../../../_images/custom_mapped_parameter6.png

Click on Apply to apply the settings. Now you can see a new customized output_num parameter in Step Parameter panel.

../../../../../_images/custom_mapped_parameter7.png