The tab Code Generation allows you to generate and modify the HDevelop code for your specified matching application.
This section allows you to determine, which code parts are to be inserted.
| Menu Entry | Description |
| Insert Code | Insert the code generated by the Matching Assistant into the Program Window of HDevelop, see the corresponding menu item. |
| Create model from a model image at runtime | In the application code the matching model will be created at
runtime. Select the source for its model image:
Select how the model ROI is set:
|
| Load model file: | In the application code the matching model will be loaded from file. |
| Load recently saved model file | In the application code the recently saved model will be loaded from file. |
| Initialize Acquisition | Insert code to initializing an image acquisition device. |
| Generate display code | Display the detected model instances in a loop. |
| Generate value retrieving code | Generate code to retrieve the parameter values of the found matches in a loop. |
| Note: For shape-based matching only. | |
| Generate affine transformation code | Insert code for an affine transformation that can be used for
alignment. Note: A reference image has to be set on the Usage tab, otherwise the model image is used. Restriction: Only for shape-based matching. |
| Generate rectification code | Insert code for rectifying the image of detected model instances. Note: A reference image has to be set on the Usage tab, otherwise the model image is used. |
This section allows you to modify the names of individual variables needed for the code lines.
The dialog consists of a text field for every variable. The Matching Assistant automatically generates reasonable variable names, but you can change the individual names via the text fields.
This section allows you to preview the generated code and gives you the possibility to, for example, edit or replace individual operators of the code lines proposed by the Matching Assistant.