various stuff
update fiducial z when moved autofocus param camera settings
This commit is contained in:
@@ -312,7 +312,7 @@ class geometry:
|
||||
|
||||
mx=mtr.argmax()
|
||||
_log.debug(f'best focus at idx:{mx}= pos:{posLst[mx]} = metric:{mtr[mx]:.6g}')
|
||||
if mx>0 and mx <len(posLst):
|
||||
if mx>1 and mx+2<=len(posLst):
|
||||
#fit parabola and interpolate:
|
||||
# y=ax2+bx+c, at positions x=-1, 0, 1, y'= 2a+b == 0 (top of parabola)
|
||||
# calc a,b,c:
|
||||
|
||||
Reference in New Issue
Block a user