新版halcon基于形状的匹配
主要是get_generic_shape_model_result 这句话,例子中一般没有
for T := 0 to 0 by 1
*
* Matching 01: Obtain the test image
read_image (Image, TestImages[T])
*
* Matching 01: Find the model
find_generic_shape_model (Image, ModelID, MatchResultID, NumMatchResult)
*
* Matching 01: Display the detected matches
dev_display (Image)
for I := 0 to NumMatchResult-1 by 1
get_generic_shape_model_result_object (MatchContour, MatchResultID, I, 'contours')
get_generic_shape_model_result (MatchResultID, I, 'score',score)
dev_set_color ('green')
dev_display (MatchContour)
stop ()
endfor
endfor