refactoring and log of coorinate work

This commit is contained in:
2022-09-02 12:46:51 +02:00
parent a54e580664
commit 45e8ab680f
8 changed files with 215 additions and 154 deletions

View File

@@ -531,3 +531,21 @@ if __name__=="__main__":
[2.80894834, 2.71536886, 3.1415],
[2.84446241, 3.54734879, 3.1415]])
plane=geometry.least_square_plane(pts)
# pix2pos="[[1.0, 200.0, 400.0, 600.0, 800.0], [[[0.001182928623952055, -2.6941995127711305e-05], [-4.043716694634124e-05, -0.0011894314084263825]], [[0.0007955995220142541, -3.175003727901119e-05], [-2.0896601103372113e-05, -0.0008100805094631365]], [[0.00048302539335378367, -1.1661121407652543e-05], [-2.0673746995751222e-05, -0.0004950857899461772]], [[0.00028775903460576395, -1.3762555219494508e-05], [-9.319936861519268e-06, -0.0002889214488565999]], [[0.0001788819256630411, -6.470841493681516e-06], [-2.0336605088889967e-06, -0.0001831131753499113]]]]"
#lut_pix2pos=(np.array([1., 200., 400., 600., 800., 1000.]),
# np.array([[[ 2.42827273e-03, -9.22117396e-05],[-1.10489804e-04, -2.42592492e-03]],
# [[ 1.64346103e-03, -7.52341417e-05],[-6.60711165e-05, -1.64190224e-03]],
# [[ 9.91307639e-04, -4.02008751e-05],[-4.23878232e-05, -9.91563507e-04]],
# [[ 5.98443038e-04, -2.54046255e-05],[-2.76831563e-05, -6.02738142e-04]],
# [[ 3.64418977e-04, -1.41389267e-05],[-1.55708176e-05, -3.66233567e-04]],
# [[ 2.16526433e-04, -8.23070130e-06],[-9.29894004e-06, -2.16842976e-04]]]))
#np.array([[[ 0.0010, 0.0001],[-0.0001, -0.0010]],
# [[ 0.00163, 0.00000],[-0.00000, -0.00163]],
# [[ 0.00099, 0.00000],[-0.00000, -0.00099]],
# [[ 0.00060, 0.00000],[-0.00000, -0.00060]],
# [[ 0.00036, 0.00000],[-0.00000, -0.00036]],
# [[ 0.00022, 0.00000],[-0.00000, -0.00022]]]))