相关链接
仿射变换理论讲解:数字图像处理——仿射变换
仿射变换例程讲解:null
仿射变换算子解析:null
代码
set_system ('clip_region', 'false')
dev_open_window (0,0,500,500, 'black', WindowHandle)
dev_set_part (-100,-100,300,300)
read_region (Region, 'r.hobj')
hom_mat2d_identity (HomMat2DIdentity)
*----平移----
*向Row方向平移 100 pixel
*向Column方向平移 200 pixel
hom_mat2d_translate (HomMat2DIdentity, 100,200, HomMat2DTranslate)
affine_trans_region (Region, RegionTranslate, HomMat2DTranslate, 'nearest_neighbor')
dev_clear_window ()
dev_set_color ('white')
disp_line (WindowHandle, 0,-100,0,100)
disp_line (WindowHandle, -100,0,