在HDevelop中
dev_close_window ()
read_image (W, 'D:/bb/tu/8.jpg')
rgb1_to_gray (W, GrayImage)
read_ncc_model ('D:/bb/tu/SS.ncm', ModelID)
*读取ncc模板
find_ncc_model (GrayImage, ModelID, -0.2, 0.2, 0.8, 3, 0.5, 'true', 0, Row, Column, Angle, Score)
在QtCreator中
HObject ho_W, ho_GrayImage;
HTuple hv_ModelID, hv_Row, hv_Column, hv_Angle;
HTuple hv_Score;
ReadImage(&ho_W, "D:/bb/tu/8.jpg");
Rgb1ToGray(ho_W, &ho_GrayImage);
ReadNccModel("D:/bb/tu/SS.ncm", &hv_ModelID);
//读取ncc模板
FindNccModel(ho_GrayImage, hv_ModelID, -0.2, 0.2, 0.8, 3, 0.5, "true", 0, &hv_Row,
&hv_Column, &hv_Angle, &hv_Score);