Create your own Procedure

This section will show you how to package Steps to create a customized Procedure Point Cloud Processing. The Steps From Depth Map to Point Cloud, Calc Normals of Point Cloud and Filter It, and Extract 3D Points in 3D ROI are needed to create the Procedure, and the packaging should be completed with Procedure.

This section covers the following topics:

  1. Add Steps

  2. Set the Input and Output of the Procedure

  3. Edit Procedure Parameters

  4. Save the Procedure

Add Steps

  1. Locate Procedure in the Step library and drag it to the graphical programming workspace, as shown below.

    ../../../_images/package_step1.png
  2. Click on Procedure to enter the Step level, drag the Steps From Depth Map to Point Cloud, Calc Normals of Point Cloud and Filter It, and Extract 3D Points in 3D ROI into the graphical programming workspace and then connect the Steps as shown below.

    ../../../_images/package_step2.png

Set the Input and Output of the Procedure

  • Input:

    Double click on the input port of From Depth Map to Point Cloud. A short line with the number indicates that the port will be used as the input port of the Procedure.
    ../../../_images/package_step3.png
    The sequence of clicking the port decides the sequence of the port being displayed on the Procedure.
    The figure above shows the layout of the input ports of the Procedure when Camera Depth Image is clicked before Camera Color Image, while the figure below shows the layout when Camera Color Image is clicked before Camera Depth Image.
    ../../../_images/package_step4.png
    Click on the number on the port, press the Delete key or right click on the number and select Delete in the context menu to delete the port.
    • Output:

      The method to set the output ports is the same as that of the input ports.

      ../../../_images/package_step5.png

Edit Procedure Parameters

After creating a Procudure, you can only change the name of it, as shown below.

../../../_images/package_step6.png

In order to facilitate adjusting the parameters of the Procedure, you can select some key parameters of the Steps as the parameters of the Procedure.

  1. Right click on the Procedure, select Edit Procedure Parameters in the context menu.

    ../../../_images/package_step7.png
  2. In the Edit Procedure Parameters window, click on + to open the Add a New Parameter window.

    ../../../_images/package_step8.png

    There are 3 types of the Procedure parameter:

    • Step/Procedure Parameter (the one used here)

    • Custom Mapped Parameter

    • Custom Recipe Parameter

  3. Select a Step and its parameter in the window. As shown below, the Step Extract 3D Points in 3D ROI and its 3D ROI Settings parameter is selected. Click on OK to save settings.

    Hint

    You can select multiple parameters according to actual needs.

    ../../../_images/package_step9.png
  4. Now you can see the selected parameter in the Parameter List. Click on Apply to apply the changes.

    ../../../_images/package_step10.png
  5. The selected parameter will appear in the Step Parameters window.

    ../../../_images/package_step11.png

Save the Procedure

You can add the customized Procedure to the Custom directory in the Step library.

  1. Right click on the Procedure and select Save Procedure as Template in the context menu.

    ../../../_images/package_step12.png
  2. Name the Procedure template.

    ../../../_images/package_step13.png

    Attention

    The name of the customized Procedure template cannot be the same as other existing Step/Procedure names.

  3. Click on OK to save the name. Then you can see the newly added Procedure in the Custom directory in the Step library.

    ../../../_images/package_step14.png

    To delete a customized Procedure, you can select the Procedure and press Delete key, or right click on the Procedure and select Delete in the context menu.

    ../../../_images/package_step15.png