wip
This commit is contained in:
10
swissmx.py
10
swissmx.py
@@ -1436,6 +1436,16 @@ class WndSwissMx(QMainWindow, Ui_MainWindow):
|
||||
if t==UsrGO.FixTargetFrame:
|
||||
pos=np.array(param['grid']['pos']) #in um
|
||||
pitch=np.array(param['grid']['pitch']) #in um
|
||||
#TODO !!!
|
||||
#input grid coordinate output um
|
||||
trf2=np.asmatrix(np.identity(3))
|
||||
trf2[:, :2]=param['trf']
|
||||
trf2*=np.asmatrix(((-1000, 0, 0), (0, 1000, 0), (0, 0, 1)))
|
||||
trf3=np.asmatrix(((pitch[0], 0, 0), (0, pitch[1], 0), (pos[0], pos[1], 1)))
|
||||
trf2=(trf3*trf2)[:,:2]
|
||||
p2=(np.asmatrix((0,0,1))*trf2).A
|
||||
p2=(np.hstack((param['points'],np.ones((p.shape[0],1))))*trf2).A
|
||||
|
||||
m=np.hstack((p*pitch+pos,np.ones((p.shape[0],1))))
|
||||
p=(np.asmatrix(m)*trf).A
|
||||
param['pts_trf']=p # transformed points
|
||||
|
||||
Reference in New Issue
Block a user