measure_edge_steps#
- esis.optics.measure_edge_steps(frame, footprints, fraction=0.35, skip=25, stride=2, half=30, margin=40)[source]#
Fit an error-function step to every row and column crossing an outline.
This is how far a side moves between frames, not where it is. A step fit to one row locks on to bright structure next to the edge, so its position is biased inward by up to a few pixels, see
measure_edges(); but each row’s bias is its own and the median over the rows of each row’s change from frame to frame is not pulled by it. A straight edge fit to the whole side by least squares is: the structure that crosses it as the pointing drifts moves it by a few tenths of a pixel, more on the left and right sides, where the neighbouring lines’ windows overlap.esis.flights.f1.optics.measure_window_edges()reads the drift of the windows from these steps and their place frommeasure_edges().The rows and columns are those of
measure_edges(). The frame is first median-filtered over three rows.- Parameters:
frame (ndarray) – The frame, indexed
[y, x]in pixels.footprints (list[AbstractCartesian2dVectorArray]) – The predicted outline of each window, one per spectral line, in pixels.
fraction (float) – See
measure_edges().skip (int) – See
measure_edges().stride (int) – See
measure_edges().half (int) – Half the length of every profile fit, in pixels.
margin (int) – See
measure_edges().
- Returns:
A table with a row per crossing (
line,side,index,)positionanderror, in pixels.
- Return type: