read_surface_model — Read a surface model from a file.
The operator read_surface_model reads the surface model, which has beed written with write_surface_model, from the file FileName. The handle of the surface model is returned in SurfaceModelID. If no absolute path is given in FileName, the file is searched in the current directory of the HALCON process. The default HALCON file extension for the surface model (SFM) file is 'sfm'. If no file named FileName exists, the default file extension is appended to FileName.
Name of the SFM file.
File extension: .sfm
Handle of the read surface model.
read_surface_model returns 2 (H_MSG_TRUE) if all parameters are correct and the file can be read. If the file is not a surface model file, the error 9506 is raised. If the file has a version that can not be read by this version of HALCON, the error 9507 is raised. If necessary, an exception is raised.
find_surface_model, refine_surface_model_pose, get_surface_model_param, clear_surface_model