projectForwardVideo
Description
projectForwardVideo orthorectifies a shipboard oblique forward-looking video camera frame (in 8-bit OMG1 format) onto a flat sea-surface plan-view grid (<outfile>.map, 600 Ã 600 pixels at 1.0 m resolution in rotated Mercator coordinates) so that surface slicks, boil fronts, or wake features can be directly correlated with subsurface multibeam water-column imagery.
CLI Options & Usage
projectForwardVideo -in <video_frame.8bit> -out <outfile> \
[-xfactor <fx>] [-yfactor <fy>]
-in <video_frame.8bit>: Input 8-bitOMG1video frame (720 Ã 480).-out <outfile>: Output annotated camera frame (<outfile>) and projected sea-surface map (<outfile>.map).-xfactor <fx> -yfactor <fy>: Optional camera field-of-view scale adjustments (default:1.0).
Camera Geometry & Algorithm
- Models a mast-mounted camera at height
cam_z = 9.0 mabove the waterline with downward depression anglecam_dip = 6.72°, horizontal FOV44.0°, and vertical FOV33.0°. - Draws the projected horizon line and range grid ticks (
50 mto600 mforward,-300 mto+300 macross-track) onto<outfile>for visual calibration verification. - For each cell
(x, y)in the600 Ã 600sea-surface map (0..600 mahead of the bow,-300..+300 mport/starboard), computes the 3D ray angle into the camera lens (angle_z = atan2(cam_z, range) - cam_dip,angle_x = atan2(across, forward)), samples the corresponding video pixel(px, py), and writes<outfile>.mapas a rotated MercatorOMG1mapsheet.