Download A multi-track optical pointing system
Transcript
2.2 Sval-X Camera The Sval-X Camera is a software developed at UNIS, that collects image feed from any camera connected to the computer, given that its driver is installed and it has DirectShow application programming interface (API). The software contains numerous functions for video and image processing, such as: tracking of an object in the video or summing up a user-defined number of frames to get a sharper and more clear image of a static object. The program is used as a possible user interface for control in the SvalPoint system with minimum modification. One of the functions in the control interface is the video overlay for all-sky cameras. This overlay indicates the cardinal directions in the image, in addition to showing the line of horizon. The necessary attitude and position information for this overlay may come from both a gyroscope - GPS pair, as dynamic values, or can be static calibration inputs. It also calculates the direction to a target, identified by a click on the image, defining the azimuth and elevation angles for that point from the origin of the ’lens coordinate system’ (placed in the optical centre of the lens, aligned with the direction of the axis of focus). The values are later transformed into a local level absolute reference frame, placed in the centre of the lens, aligned with north-east and up directions, making the direction of target independent of the orientation of the camera, the only dependency remaining: its geodetic location. These calculations give information about the location of target used for the control of instruments. In the followings the method for calculating the angles in the lens coordinate system is presented. Considering a fish-eye lens, that all-sky cameras use, Figure 2.2 can be drawn with two coordinate systems associated with the camera: the coordinate system of the lens, noted by X1 Y1 Z1 and the coordinate system of the image plane: X2 Y2 Z2 . The focal length of the lens is f. The aim is to define the position of P (point in the real world) based on the position of P’ (point in the obtained image), indicated in Figure 2.2. The position of P’ can be determined in the image by the values r (the distance between P’ and the centre of the image coordinate system) and ψ2 (angle between axis Y2 and r). The position of point P shall be defined by the direction of vector ρ, by calculating the azimuth and elevation angles for ρ. According to Kannala & Brandt (2004) the fish-eye lenses are usually designed to obey one of the following relations for projections: r = 2 · f · tan(θ/2) (stereographic projection), r = f · θ (equidistance projection), r = 2 · f · sin(θ/2) (equisolid angle projection), (2.4) r = f · sin(θ) (orthogonal projection). All four expressions are implemented in the Sval-X Camera application, subject to user settings. In the followings the relations are to be developed with the use of the most common type of fish-eye lens, with equidistant projection. Based on Equation (2.4) and Figure 2.2: r = r(θ) = f · θ, x2 = r(θ) · sin(ω2 ), y2 = r(θ) · cos(ω2 ), (2.5) z2 = f. It shall be noted that due to the fact that the lens is circular: ω1 = ω2 (2.6) From equations 2.5 and 2.6 the value of θ and ω1 can be calculated directly. These values represent the azimuth and elevation of the point in the real world, based on the image captured by the all-sky camera. 13