Segment 3D

You can use the Segment 3D tool for finding flaws or locating features on a 2D projection of a 3D image. After training, the tool can predict the appearance of the features in the new images.

Note: When using high-resolution images in the Segment 3D tool, prediction algorithms can produce exceedingly small defect labels and can clutter the training due to the level of detail. You might need to zoom in to see these labels. You can either partially erase the labels on the images, or completely clear the entire label prediction to manage the detailed predictions.

To add the Segment 3D tool:

  1. Select the Segment 3D tool under the ViDi EL Tools group in the Inspect application step.

  2. Position the region over the area you want to segment. To resize the Segment Region box, click and drag the corners. To rotate the box, click and drag the rotate button.

  3. Click OK.

    Note: Once you click OK, you can no longer resize the region of interest (ROI).
  4. The Segment 3D tool appears in the list of configured tools, and the Segment 3D tool property edit panel opens.

  5. Select the Projection Image A projection image is the 2D projection of a 3D point cloud acquisition. Resolution to be generated from the point cloud A point cloud is a 3D structure that consists of the data points collected by a 3D vision system during acquisition. points within the region of interest.

  6. Select the Projection Mode used to create the sample image from the point cloud.

    Note: The Auto-Tune button is only available after you have trained one or more images, in the final steps of this procedure.
  7. Adjust the Confidence Threshold which specifies the minimum confidence score (0 to 100) to determine pixel to class assignment.

    Note: The larger the Confidence Threshold is, the more strict the class assignment is.
  8. Set the Pass/Fail Range Limits by defining the minimum and maximum values. The Found value is the number of segments found in the region of interest within the limits.

  9. Toggle the Invert Pass/Fail bar to change the Found value to the number of segments outside of the limits.

  10. For the Advanced Settings, click the Settings icon in the right corner.

  11. Start labeling images.

    You can label in the following ways:

    • Use the Pen tool by holding down the left mouse button to color the areas you want to mark.

    • Use the Polygon tool by clicking around the edge of an area or feature to draw lines. Double-clicking closes up the lines and creates a colored polygon for you.

      If you do not like the label you created, you can use the Undo and Redo buttons, delete part of the markings with the Eraser tool, or all of them with the Clear button. The Clear button deletes every label in the image, regardless of the class.

      You can rename the class or give the class a new color by clicking on the Edit Class button.

  12. Click Accept Labels to train the image.

  13. Show the next image to the tool. At this point, the tool makes a prediction, meaning that the tool tries to find the patterns that you marked in the previous images.

    Note: Cognex recommends that you label at least five images. The more images you train, the higher the quality of your output is.
  14. Fine-tune your labeling if needed.

    For example, there can be false predictions in your image. You can delete these faults by clicking Label to reopen the editor and using the Eraser tool before accepting the changes.

  15. You can view your trained images in the sample viewer. To reach the sample viewer window, click the Edit button on the right.

  16. Select Auto-Tune if you want the system to choose the Projection Mode best suited for your application, automatically adjusting the projection settings for more accurate results.

  17. In the sample viewer, you can correct and finetune the trained images by clicking on the Edit button. You can also delete them by clicking on the Delete button, or you can edit the classes.

After successful training, the Segment 3D tool can produce accurate results in new acquisitions.

Note: The Segment 3D tool only shows graphics and exposes results for the top 10 segments found in each new acquisition Acquisition is the process or result of the vision system acquiring a new image., sorted by the sort criteria in the advanced properties. The number of actual segments found can be higher.