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 from measure_edges().

The rows and columns are those of measure_edges(). The frame is first median-filtered over three rows.

Parameters:
Returns:

  • A table with a row per crossing (line, side, index,)

  • position and error, in pixels.

Return type:

QTable