Disclosure of Invention
Aiming at partial or all problems in the prior art, the invention provides a method for extracting a sun vector direction based on a lunar phase, which comprises the following steps:
selecting an edge point Qi;
Calculating the moon center O
mPoint to the edge point Q
iDirection of vector (d)
The vector direction of the moon center pointing to the edge point is also called moon edge direction; and
according to the moon's heart O
mPoint to the edge point Q
iThe sun vector direction S ═ x is calculated
s y
s z
s)
TWherein, in the step (A),
further, the edge points include N, where N is a natural number greater than 1.
Further, the lunar phase is obtained by shooting the moon through a moon sensor.
Further, the moon edge direction and the sun vector direction are calculated based on the moon sensor coordinate system.
Further, the edge direction of the moon is obtained by calculation through a sine theorem, the mapping of the moon on an imaging focal plane and a geometric relation of a focus of the moon sensor.
Further, the sun vector direction is calculated according to a least square method.
Further, the method also includes using the sun vector direction for satellite navigation.
According to the method for extracting the sun vector direction based on the lunar phase, provided by the invention, the vector direction of the sun under the coordinate system of the lunar sensor is calculated by utilizing multi-pixel information of the lunar phase edge according to the lunar center vector direction measured value and the current lunar phase and combining a least square method, so that the influence of measurement errors is reduced. Compared with the prior art, the method is simple in calculation and wide in application range, and is suitable for the condition that any included angle exists between the moon center vector direction and the optical axis of the moon sensor and the condition that different distances exist between the moon center vector direction and the moon.
Detailed Description
In the following description, the present invention is described with reference to examples. One skilled in the relevant art will recognize, however, that the embodiments may be practiced without one or more of the specific details, or with other alternative and/or additional methods, materials, or components. In other instances, well-known structures, materials, or operations are not shown or described in detail to avoid obscuring aspects of the invention. Similarly, for purposes of explanation, specific numbers, materials and configurations are set forth in order to provide a thorough understanding of the embodiments of the invention. However, the invention is not limited to these specific details. Further, it should be understood that the embodiments shown in the figures are illustrative representations and are not necessarily drawn to scale.
Reference in the specification to "one embodiment" or "the embodiment" means that a particular feature, structure, or characteristic described in connection with the embodiment is included in at least one embodiment of the invention. The appearances of the phrase "in one embodiment" in various places in the specification are not necessarily all referring to the same embodiment.
It should be noted that the embodiment of the present invention describes the process steps in a specific order, however, this is only for the purpose of illustrating the specific embodiment, and does not limit the sequence of the steps. Rather, in various embodiments of the present invention, the order of the steps may be adjusted according to process adjustments.
In order to obtain the sun vector direction, the invention provides a method for extracting the sun vector direction based on the lunar phase obtained by shooting the moon through a moon sensor, and satellite navigation is carried out by using the sun vector direction. The method is further described with reference to the embodiment drawings.
The embodiment of the invention adopts a moon sensor coordinate system O
f'X
sY
sZ
sAnd (3) calculating the direction of the relevant vector, wherein a schematic diagram of the lunar phase is adopted as shown in fig. 3, a
moon 301 forms a crescent moon-shaped
lunar phase outline 302 in an imaging focal plane of a lunar sensor, and the field angle of the lunar sensor is alpha. Wherein, O
mRepresents the center of the
moon 301, called the moon center; o is
m' represents the moon center O
mAt the imaging focal plane X
sO
f'Y
sA mapping position of (a); o is
fRepresenting the imaging focus, with coordinates of (00f)
TThen, then
Representing the orientation of the optical axis of the moon sensor, denoted f, the magnitude f of which is the focal length of said moon sensor, and
a position vector representing the direction of the observer from the center of the moon, noted
The vector can be obtained by measuring through the moon sensor, and an included angle between the vector R and the optical axis direction is marked as theta; and Q
iRepresenting a point on the outline of the lunar phase illuminated by the sun, called an edge point, whose mapping at the imaging focal plane is denoted as Q
i', called edge contour pixel, said edge contour pixel Q
iThe coordinate of' is (x)
i y
i 0)
T。
Fig. 2 is a flowchart illustrating a method for extracting a sun vector direction based on a lunar phase according to an embodiment of the present invention. As shown in fig. 2, a method for extracting a sun vector direction based on a lunar phase includes:
step 201, selecting edge points. According to the lunar phase as shown in fig. 3, N edge points Q are selected on the edge contour of the moon illuminated by the suniThere are N corresponding edge contour pixels Q in the focal planei', wherein i ═ 1, 2.., N;
step 202, calculating the vector direction of the moon center pointing to each edge point respectively. As shown in fig. 3, the moon center O
mPointing to edge point Q
iDirection of vector (d)
Comprises the following steps:
wherein the content of the first and second substances,
and according to the sine theorem have
Wherein according to the sine theorem:
step 203, calculating the sun vector direction. Assuming that the moon is an ideal sphere, the direction S is (x) based on the sun vector
sy
s z
s)
TVector direction pointing to edge point from moon center
The included angles between the two are always equal:
then for the N selected edge points, there are:
whereby the sun vector direction can be calculated, where c is a constant, and when Om' when within the region of the lunar phase contour 302, zsIs-1, otherwise zsIs 1.
In one embodiment of the invention, the solution is performed by using a least square method, and the formula is simplified to be
Wherein:
then solve to get
And further obtaining the sun vector direction under the coordinate system of the moon sensor.
While various embodiments of the present invention have been described above, it should be understood that they have been presented by way of example only, and not limitation. It will be apparent to persons skilled in the relevant art that various combinations, modifications, and changes can be made thereto without departing from the spirit and scope of the invention. Thus, the breadth and scope of the present invention disclosed herein should not be limited by any of the above-described exemplary embodiments, but should be defined only in accordance with the following claims and their equivalents.