In the example code, the XLD contours are transformed into world coordinates and this (3D) distance is calculated. The points are visualized by a line. First an XLD in image coordinates, which relates to some interesting features in the image, is obtained. Here, we simply generate a contour connecting the mark center points of the plate by using the HALCON operator gen_contour_polygon_xld. Then a conversion into world coordinates is performed with HALCON operator contour_to_world_plane_xld. Using the operator get_contour_xld, mark center points are extracted in world coordinates.
To adapt this code to your application, you typically exchange the mark centers for “real” points of interest and adapt or remove the visualization.
For further information about pose estimation, please refer to the section "Pose Estimation of known 3D Objects With a Single Camera" in the Solution Guide III-C.