在HDevelop中 dev_close_window () read_image (Image, 'D:/bb/tu/1.jpg') rgb1_to_gray (Image, GrayImage) read_shape_model ('D:/bb/tu/ss.shm'
FileName(input_control)filename.read→(string) File name. File extension:.shm ModelID(output_control)shape_model→(integer) Handle of the model. If the file name is valid, the operatorread_shape_modelreturns the value 2 (H_MSG_TRUE). If necessary an exception is raised. ...
XLD轮廓可以直接作为模板使用,create_shape_model, create_scaled_shape_model, or create_aniso_shape_model 被 create_shape_model_xld, create_scaled_shape_model_xld,或者 create_aniso_shape_model_xld操作替代。 另外你也可以创建DXF文件,首先从DXF文件中提取XLD轮廓read_contour_xld_dxf,可以按照例子examples\...
不算内存泄漏,只是我不会用... 调用完ReadShapeModel读取模型,用完后记得ClearShapeModel,不然调用ReadShapeModel次数越来越多占用内存会越来越大...
read_shape_model; create_scaled_shape_model; create_shape_model_xld; create_scaled_shape_model_xld; set_shape_model_param; get_shape_model_param; find_shape_models; find_scaled_shape_models; 案例一、align_measurements * --- * This example program uses shape-based matching to align ROIs for...
FileName(input_control)filename.read→(string) File name. File extension:.sm3 ShapeModel3DID(output_control)shape_model_3d→(handle) Handle of the 3D shape model. Result If the file name is valid, the operatorread_shape_model_3dreturns the value TRUE. If necessary an exception is raised....
read_shape_model('',ModelID)*查找图像中形状模型的最佳匹配项。 find_shape_model(imagereduced,ModelID,rad(-45),rad(90),0.05,1,0.05,'least_squares',5,0.9,Row,Column,Angle,Score)*返回形状模型的轮廓表示。 get_shape_model_contours(ModelContours,ModelID,1)*i=1;i=<|Score|-1;i++*创建转换...
以ReadImage操作为例,函数原型如下:static void HOperatorSet.ReadImage(out HObject image, HTuple ...
借助用create_shape_model_3d, create_surface_model, 或者create_deformable_surface_model或者用read_shape_model_3d, read_surface_model或者read_deformable_surface_model创建的特定方法的3D模型,物体可以在搜索数据中被搜索,例如在图像中进行基于形状的3D匹配,在用3D物体模型描述的3D场景中进行基于(可变性的)表面匹...
先要补充点知识:形状匹配常见的有四种情况 一般形状匹配模板shape_model、线性变形匹配模板planar_deformable_model、局部可变形模板local_deformable_model、和比例缩放模板Scale_model 第一种是不支持投影变形的模板匹配,但是速度是最高的,第二种和第四种是支持投影变形的匹配,第三种则是支持局部变形的匹配。