Via the menu item Code Generation ▹ Show Code Generation Options you
can open the dialog for determining the options for the code
generation inside the tab Code Generation. The dialog consists of the
following parts:
- radio buttons for selecting whether the model is created at run time
from the model image (Create model from a model image at run time)
In this case, you can additionally select whether to
use the model image and the ROI that were specified inside the
Matching Assistant (Create ROI as in assistant) or whether a new ROI has to be drawn at
run time (Generate Code for drawing an ROI at run time). Alternatively,
a radio button (Load modified image:) allows the selection of an already
existing model,
- radio buttons that allow you to create a shape model from file or load
a saved shape model file,
- a check box Initialize Acquisition to generate code for initializing an image
acquisition device,
- a check box Generate display code to select whether to display the detected model instances in a loop,
- (available for shape-based matching and correlation-based matching) a check box
Generate affine transformation code to generate code for an affine transformation that can be used for Alignment
in the code of the Matching Assistant , which is useful if the following image processing
step is not invariant against rotation, (e.g. OCR),
- a check box Generate rectification code that generates code for rectifying the image for detected models, which
may be necessary if an object then appears distorted due to perspective projection,
- the button Insert Code to insert the code
generated by the Matching Assistant into the Program window of
HDevelop.
Note that for Generate affine transformation code as well as for Generate rectification code
a reference image has to be set on the Usage tab, otherwise the model image is used.