import { Pixels, Track } from "./Quantity.js"; /** * Relates a scan to the tracker bar it was read with. * * Scanning software numbers the hole columns it finds by their position * in the image, so its numbering is offset by however far the roll lay * from the edge of the scanner bed. Calibrating means finding that offset, * usually from a landmark such as the rewind perforation. * * column = offset + scannerTrack * separation * trackerBar = scannerTrack + shift * @category Format types */ export interface TrackCalibration { unit: 'px'; /** Image column of the scanning software's track 0. */ offset: Pixels; /** Distance between the centres of adjacent tracks. */ separation: Pixels; /** Added to the scanning software's numbering to reach the tracker bar. */ shift: Track; } /** * Image column at the centre of a tracker bar track. * @internal */ export declare const columnOf: (position: Track, calibration: TrackCalibration) => Pixels; /** * Tracker bar track covering an image column, unrounded. * @internal */ export declare const trackAt: (column: Pixels, calibration: TrackCalibration) => Track; /** * The columns covered by a run of tracks, from the outer edge of the * first to the outer edge of the last. * @internal */ export declare const columnsOf: (from: Track, to: Track, calibration: TrackCalibration) => { from: Pixels; to: Pixels; width: Pixels; };