Index:.../Matching/Shape-Based/find_shape_model_max_deformation.hdev
这个程序作了一个对比
for Search := 1 to 2 by 1
if (Search == 1)
WindowHandle := WindowHandle1
SubPixel := 'least_squares_high'
else
WindowHandle := WindowHandle2
SubPixel := ['least_squares_high','max_deformation 10']
endif
dev_set_window (WindowHandle)
dev_display (SearchImage)
disp_message (WindowHandle, DispString[Search - 1], 'window', 12, 12, 'black', 'true')
count_seconds (Seconds1)
find_shape_model (SearchImage, ModelID, 0, 0, 0.4, 1, 0.5, SubPixel, 0, 0.9, Row, Column, Angle, Score)
在匹配时对两种Subpixel作了匹配,从算子的帮助文档也可以看到, ['least_squares_high','max_deformation 10']这也是一种常规
的输入方法。
vector_angle_to_rigid (0, 0, 0, Row[I], Column[I], Angle[I], HomMat2D)
affine_trans_contour_xld (ModelContours, ModelContoursTrans, HomMat2D)
做仿射变换,就是按一组向量然后把原模型投射到新的位置。