Viewing and analysing your inspection variables in Halcon just got easier! Everyone comes across the issue, you have numeric tuples with many elements and you are interested in a quick overview of its content.
With HALCON 12 a new feature is available to graphically visualise numeric tuples. In the Variable View it is now possible to plot tuples of numbers by selecting “Plot as Function” from the context menu. Multiple tuples can be inspected simultaneously in a single inspection window.
In addition, a pair of tuples of matching length can be plotted as an x/y scatter plot. It is possible to integrate the plots into your HDevelop code. This can be achieved by the two operators:
dev_inspect_ctrl (Var) dev_close_inspect_ctrl (Var)
and setting the parameter to ‘tuple’, ‘plot’ or ‘plot_xY’ depending on which inspection you are interested in.
Beside the quick graphical inspection, it is also possible to get a statistical overview of tuples. Firstly, inspect a tuple in the tabular viewer. On the bottom of this tabular view several statistical values are displayed, such as minimum value, maximum value, sum of values, mean value, deviation, value types, number of values and semantics (if appropriate). You can add and delete these values by clicking with the right mouse button on the names of the values.
But also control variables, which belong to the semantic types, such as matrix, pose or framegrabber can be inspected quickly using the inspection tool. In case of a pose, a direct assignment of the elements to the translations, rotations and type can be made. Even more comfortable is the inspection of an acquisition handle. It opens a dialog with basic image acquisition device parameters. It displays the name, image size, device, port, and other features of the image acquisition device.
The complete documentation to inspect control variables can be found in the HDevelop User’s Guide in chapter “6.7 Inspecting Variables”. A quick overview is given in our standard example program dev_inspect_ctrl.hdev.