本文整理汇总了Python中Analysis.makeregression方法的典型用法代码示例。如果您正苦于以下问题:Python Analysis.makeregression方法的具体用法?Python Analysis.makeregression怎么用?Python Analysis.makeregression使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类Analysis
的用法示例。
在下文中一共展示了Analysis.makeregression方法的1个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Python代码示例。
示例1: array
# 需要导入模块: import Analysis [as 别名]
# 或者: from Analysis import makeregression [as 别名]
diffx_exp = diffx[frame_select & ~splitter]
diffy_exp = diffy[frame_select & ~splitter]
newx_exp = newx [frame_select & ~splitter]
newy_exp = newy [frame_select & ~splitter]
goodx_exp = goodx[frame_select & ~splitter]
goody_exp = goody[frame_select & ~splitter]
xl_exp = xl [frame_select & ~splitter]
yl_exp = yl [frame_select & ~splitter]
xr_exp = xr [frame_select & ~splitter]
yr_exp = yr [frame_select & ~splitter]
framesetnum_exp = framesetnum[frame_select & ~splitter]
if opts.save_map2:
mapping2 = Analysis.makeregression(diffx_fids, diffy_fids,
newx_fids, newy_fids, order=1,
savefile = 'offsets'
+ os.path.splitext(os.path.basename(imgname))[0],)
else:
mapping2 = Analysis.makeregression(diffx_fids, diffy_fids,
newx_fids, newy_fids, order=1)
dx, dy = mapping2(newx_exp, newy_exp)
newx_exp += dx
newy_exp += dy
new_goodx.extend(goodx_exp)
new_goody.extend(goody_exp)
new_diffx.extend(goodx_exp - newx_exp)
new_diffy.extend(goody_exp - newy_exp)
goodx = array(new_goodx)
goody = array(new_goody)
diffx = array(new_diffx)