****使用ROI创建模型进行目标匹配
*1.使用形态学找到目标模型
*2.创建形状模型,并使用检测对象完成匹配模型
*3.搜索标志,输出最佳匹配
*官方案例create_roi_via_vision.hdev
* ------------------------------------------------------------------------------------------------
* 本示例程序通过图像处理创建一个ROI模型.
* ------------------------------------------------------------------------------------------------
* general configuration of HDevelop
dev_update_window ('off')
* image acquisition and window size
open_framegrabber ('File', 1, 1, 0, 0, 0, 0, 'default', -1, 'default', -1, 'default', 'pendulum/pendulum.seq', 'default', -1, 1, FGHandle)
grab_image (Mode