HOCUS FOCUS
George Hilios
NEAIC, Suffern NY
April 14, 2023
The Science of Star Measurement for
Auto-Focusing and Tilt Correction
Familiar Situation?
SCIENCE OF STAR MEASUREMENT
2
4/14/2023
Hocus Focus
SCIENCE OF STAR MEASUREMENT
3
4/14/2023
About Myself
SCIENCE OF STAR MEASUREMENT
4
4/14/2023
NINA Contributions
SCIENCE OF STAR MEASUREMENT
5
4/14/2023
AGENDA
Scientific Workbench
Star Measurement
Finding Optimal Focus
Tilt and Backfocus
Future Work
SCIENCE OF STAR MEASUREMENT
6
4/24/2023
SCIENTIFIC WORKBENCH
Collect the right tools to iterate on new methods
SCIENCE OF STAR MEASUREMENT
8
4/14/2023
Star Annotation
9
Star Rejection
10
Tunable Parameters
11
Test and Iterate
12
Autofocus Replay
13
Development Debugging
14
MEASURING STARS
Size, Shape, Center Position, etc
Goals
SCIENCE OF STAR MEASUREMENT
16
4/14/2023
1 – Hotpixel Filtering
Simple (low-overhead) – 3x3 Median Blur
SCIENCE OF STAR MEASUREMENT
17
4/14/2023
Thresholding (preferred) – Filter when large diff
2 – Noise Reduction
Gaussian Convolution
SCIENCE OF STAR MEASUREMENT
18
4/14/2023
Stdev = Radius * 2 + 1
3 – Structure Detection
SCIENCE OF STAR MEASUREMENT
19
4/14/2023
Wavelet to extract structures
Larger = bigger stars = longer focal length
Kappa Sigma background noise estimate
Larger = higher background noise
Dilate star candidate structures
Off by default
Binarize
Noise Clipping Multiplier * noise estimate
Star candidate boxes
4 - Rejection
SCIENCE OF STAR MEASUREMENT
20
4/14/2023
5 – HFR Measurement
SCIENCE OF STAR MEASUREMENT
21
4/14/2023
Sum of pixel brightness * center distance
Sum of pixel brightness
Distance containing half of star brightness
6 – FWHM Measurement
SCIENCE OF STAR MEASUREMENT
22
4/14/2023
Point Spread Function
Non-linear optimization. No direct solution
B = background ADU
A = center ADU
x0, y0 = center
β = Moffat Beta (1.4)
σx, σy = FWHM sigma (solving for)
Convert sigma to FWHM pixels
AUTOFOCUS
Finding Optimal Focus
Hyperbolic Fit
SCIENCE OF STAR MEASUREMENT
24
4/14/2023
HFR Std Dev
Minima
Goodness of Fit
Doesn’t fit?
SCIENCE OF STAR MEASUREMENT
25
4/14/2023
Improvements
SCIENCE OF STAR MEASUREMENT
26
4/14/2023
Outlier rejection
Hyperbola with different slopes
Minima changed by 34 steps
Higher error = lower weight
Options
SCIENCE OF STAR MEASUREMENT
27
4/14/2023
ABERRATION INSPECTION
Measuring and correcting tilt and back-focus
Background
SCIENCE OF STAR MEASUREMENT
29
4/14/2023
Back-focus
Tilt
Similar, but at a gradient
Corners Analysis
SCIENCE OF STAR MEASUREMENT
30
4/14/2023
Credit: Chris White
Cloudy Nights Thread - https://www.cloudynights.com/topic/809050-tilt-discussion-astap/
Automated in NINA
SCIENCE OF STAR MEASUREMENT
31
4/14/2023
Replay or run live
Large tilt!
Tilt and back-focus mixed together…
Sensor Model
SCIENCE OF STAR MEASUREMENT
32
4/14/2023
Credit: Frank Freestar8n
Observations
Approach
Mathematical Model
SCIENCE OF STAR MEASUREMENT
33
4/14/2023
Distance from sensor center
Offset from curvature
Offset from tilt
Total offset
x0, y0 Sensor Center
c Positive or negative curvature inverse radius. Smaller = flatter
Θ, Φ Tilt plane rotation, amount (radians). Θ = 0 = no tilt
Variables
SCIENCE OF STAR MEASUREMENT
34
4/14/2023
Techniques Applied
SCIENCE OF STAR MEASUREMENT
35
4/14/2023
FUTURE WORK
Future Work
Autofocus
Aberration Inspection
THANK YOU
George Hilios
jokogeo (Discord)
ghilios (Cloudy Nights)
SCIENCE OF STAR MEASUREMENT
38
4/14/2023