? //For Halcon System
? HOperatorSet.SetSystem("clip_region", "false");
set_system(?'clip_region',?'false')?*旋轉?hom_mat2d_identity (HomMat2DIdentity1)?hom_mat2d_rotate (HomMat2DIdentity1, rad(?90),?0,?0, HomMat2DRotate)?affine_trans_region (Rectangle, RegionAffineTrans1, HomMat2DRotate,?'nearest_neighbor')
多出來這一行代碼?set_system('clip_region',?'false')的意思是在region移到圖像區域以外的時候,依然顯示移動后的目標。