Astronomical image retrieval method and device and electronic equipment
By converting the coordinates of the celestial sphere into pixel plane coordinates and using tangent plane projection, the problem of high computational volume in the astronomical optical image retrieval algorithm is solved, and the search efficiency of astronomical images is improved.
Patent Information
- Application Number
- CN202411358452.7
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-09-27
- Publication Date
- 2024-12-27
- Estimated Expiration
- 2044-09-27
AI Technical Summary
In the astronomical optical image retrieval algorithm, the spherical partitioning algorithm divides the sub-region of the plane rectangular image and causes a large amount of distance correlation calculation, resulting in low efficiency in astronomical image retrieval.
By converting the celestial sphere coordinates into pixel plane coordinates, using the celestial sphere coordinates in the center of the image for tangent plane projection, we can judge whether the search area and the image boundary intersect, and establish the mapping relationship between the projection plane and the pixel plane based on the coordinates of the center and the four corners, and quickly achieve the Calculate the search pixel coordinates and determine the target astronomical image.
The calculation of intersection between the search area and the image boundary is simplified, the calculation complexity of intersection between the spherical area is avoided, and the retrieval efficiency of astronomical images is improved.
Smart Images

Figure CN119202302A_ABST
Abstract
Description
Technical Field
[0001] The present disclosure relates to the fields of astronomical technology and intelligent retrieval technology, and more specifically, to a retrieval method, device and electronic equipment for astronomical images. Background Art
[0002] With the development of astronomical technology, astronomical observers can take a large number of astronomical images through telescopes every year. In the context of massive astronomical images, higher requirements are placed on astronomical image retrieval.
[0003] In the process of realizing the concept of the present disclosure, the inventors found that there are at least the following problems in the related art: the astronomical optical image retrieval algorithm usually uses a spherical partitioning algorithm to divide the plane rectangular image into sub-regions, and the distance-related calculation amount in the retrieval process is very large, resulting in low astronomical image retrieval efficiency. Summary of the invention
[0004] In view of this, the present disclosure provides a method, device and electronic device for retrieving astronomical images.
[0005] One aspect of the present disclosure provides a method for retrieving astronomical images, comprising: determining an image to be projected that meets a preset condition from an astronomical image database according to a retrieval celestial coordinate and a retrieval radius input by a user, wherein the preset condition is determined according to the retrieval radius, and the astronomical image database includes at least one astronomical image; taking the central celestial coordinate of the image to be projected as the center, performing a tangent plane projection on the retrieval celestial coordinate to obtain retrieval projection coordinates, wherein the central celestial coordinate is the coordinate of a point at the center of the image to be projected; based on a mapping relationship between the projection coordinate and the pixel coordinate of the image to be projected, calculating the retrieval pixel coordinate of the retrieval projection coordinate in the image to be projected; and determining the image to be projected as a target astronomical image when there is an intersection between the pixel coordinates in the retrieval pixel circle and the pixel coordinates of the image to be projected, wherein the retrieval pixel circle is a circle with the retrieval pixel coordinate as the center and the retrieval radius as the radius.
[0006] According to an embodiment of the present disclosure, the preset condition includes that the area captured by the astronomical image is the target sky area; according to the search celestial coordinates and the search radius input by the user, determining the image to be projected that meets the preset condition from the astronomical image database includes: determining the target sky area according to the search celestial coordinates and the search radius input by the user; determining an astronomical image set from the astronomical image database, the astronomical image set including at least one regional astronomical image that captured the target sky area. In the case where the regional celestial coordinates in the regional astronomical image and the search celestial coordinates meet the preset relative position threshold, the regional astronomical image is determined as the image to be projected, and the preset condition also includes that the regional celestial coordinates and the search celestial coordinates meet the preset relative position threshold.
[0007] According to an embodiment of the present disclosure, the formula for the target sky area is as follows:
[0008] The retrieval celestial coordinates are (RA, DEC), RA represents the retrieval right ascension, DEC represents the retrieval declination, R is the retrieval radius, RA is the retrieval radius, l DEC1 represents the right ascension of the target sky area, and DEC2 represents the declination of the target sky area.
[0009] According to an embodiment of the present disclosure, the preset relative position threshold is a great circle distance threshold between the regional celestial coordinates in the regional astronomical image and the search celestial coordinates, and the great circle distance threshold is determined according to the size parameters of the astronomical image and the search radius.
[0010] According to an embodiment of the present disclosure, the formula for the great circle distance threshold is as follows:
[0011] DIST1 <sqrt(W-deg*W-deg+H-deg *H-deg)+R
[0012] DIST1 represents the great circle distance between the regional celestial coordinates and the retrieval celestial coordinates in the regional astronomical image, sqrt represents the square root, W-deg represents the length of the width W of the regional astronomical image on the spherical surface, H-deg represents the length of the height H of the regional astronomical image on the spherical surface, the size parameters include width W and height H, and R represents the retrieval radius.
[0013] According to an embodiment of the present disclosure, an astronomical image database is established based on the following method: obtaining representative celestial coordinates of representative position points in astronomical images, where the representative celestial coordinates are obtained by inputting the astronomical images into a positioning recognition model; obtaining a mapping relationship between the projection coordinates and pixel coordinates of the astronomical images; and associating and storing the astronomical images, the mapping relationship between the projection coordinates of the astronomical images and the pixel coordinates, and the representative celestial coordinates.
[0014] According to an embodiment of the present disclosure, the representative celestial coordinates include coordinates of representative position points in the astronomical image, and the representative position points include corner position points and a center position point of the astronomical image.
[0015] According to an embodiment of the present disclosure, the mapping relationship between the projection coordinates and the pixel coordinates of the image to be projected is obtained based on the following method: taking the central celestial coordinates of the image to be projected as the center, the representative celestial coordinates of the corner position points of the image to be projected are projected on a tangent plane to obtain the projection coordinates of the corner position points; the projection coordinates and the pixel coordinates of the corner position points are linearly fitted to obtain the mapping relationship between the projection coordinates and the pixel coordinates of the image to be projected.
[0016] Another aspect of the present disclosure provides an astronomical image retrieval device, including: a first determination module, used to determine an image to be projected that meets a preset condition from an astronomical image database according to the retrieval celestial coordinates and the retrieval radius, the preset condition being determined according to the retrieval radius, and the astronomical image database including at least one astronomical image; a tangent plane projection module, used to perform tangent plane projection on the retrieval celestial coordinates with the central celestial coordinates of the image to be projected as the center to obtain the retrieval projection coordinates, the central celestial coordinates being the coordinates of the central position point of the image to be projected; a calculation module, used to calculate the retrieval pixel coordinates of the retrieval projection coordinates in the image to be projected based on the mapping relationship between the projection coordinates and the pixel coordinates of the image to be projected; and a second determination module, used to determine the image to be projected as a target astronomical image when the retrieval pixel coordinates belong to the pixel coordinate range of the image to be projected.
[0017] Another aspect of the present disclosure provides an electronic device, comprising:
[0018] one or more processors;
[0019] a memory for storing one or more programs,
[0020] When the one or more programs are executed by the one or more processors, the one or more processors implement the method as described above.
[0021] Another aspect of the present disclosure provides a computer-readable storage medium storing computer-executable instructions, which are used to implement the above method when executed.
[0022] Another aspect of the present disclosure provides a computer program product, which includes computer executable instructions, and when the instructions are executed, are used to implement the method as described above.
[0023] According to the embodiments of the present disclosure, the image to be projected that meets the preset conditions is determined from the astronomical image database according to the search celestial coordinates and search radius input by the user, thereby narrowing the scope of image search. Then, the search celestial coordinates are projected on a tangent plane with the central celestial coordinates of the image to be projected as the center to obtain the search projection coordinates; only based on the mapping relationship between the projection coordinates and the pixel coordinates of the image to be projected, the search pixel coordinates of the search celestial coordinates in the image to be projected are quickly calculated, which greatly reduces the amount of calculation. When the pixel coordinates in the search pixel circle intersect with the pixel coordinates of the image to be projected, the image to be projected is determined as the target astronomical image, thereby improving the search efficiency of astronomical images. BRIEF DESCRIPTION OF THE DRAWINGS
[0024] The above and other objects, features and advantages of the present disclosure will become more apparent through the following description of the embodiments of the present disclosure with reference to the accompanying drawings, in which:
[0025] Figure 1 A system architecture diagram schematically illustrates a method for retrieving astronomical images according to an embodiment of the present disclosure;
[0026] Figure 2 A flowchart of a method for retrieving astronomical images according to an embodiment of the present disclosure is schematically shown;
[0027] Figure 3 A schematic diagram schematically shows two-dimensional plane coordinates and three-dimensional spherical coordinates of representative position points according to an embodiment of the present disclosure;
[0028] Figure 4 A schematic diagram of constructing an astronomical image database according to an embodiment of the present disclosure is schematically shown;
[0029] Figure 5 A schematic diagram schematically illustrates a method for retrieving astronomical images according to another embodiment of the present disclosure;
[0030] Figure 6 A block diagram schematically shows a device for retrieving astronomical images according to an embodiment of the present disclosure; and
[0031] Figure 7 A block diagram of an electronic device suitable for implementing a method for retrieving astronomical images according to an embodiment of the present disclosure is schematically shown. DETAILED DESCRIPTION
[0032] Hereinafter, embodiments of the present disclosure will be described with reference to the accompanying drawings. However, it should be understood that these descriptions are exemplary only and are not intended to limit the scope of the present disclosure. In the following detailed description, for ease of explanation, many specific details are set forth to provide a comprehensive understanding of the embodiments of the present disclosure. However, it is apparent that one or more embodiments may also be implemented without these specific details. In addition, in the following description, descriptions of known structures and technologies are omitted to avoid unnecessary confusion of the concepts of the present disclosure.
[0033] The terms used herein are only for describing specific embodiments and are not intended to limit the present disclosure. The terms "comprise", "include", etc. used herein indicate the existence of the features, steps, operations and / or components, but do not exclude the existence or addition of one or more other features, steps, operations or components.
[0034] All terms (including technical and scientific terms) used herein have the meanings commonly understood by those skilled in the art unless otherwise defined. It should be noted that the terms used herein should be interpreted as having a meaning consistent with the context of this specification and should not be interpreted in an idealized or overly rigid manner.
[0035] When using expressions such as "at least one of A, B, and C, etc.", they should generally be interpreted according to the meaning of the expression commonly understood by those skilled in the art (for example, "a system having at least one of A, B, and C" should include but is not limited to a system having A alone, B alone, C alone, A and B, A and C, B and C, and / or A, B, C, etc.).
[0036] In the embodiments of the present disclosure, the collection, updating, analysis, processing, use, transmission, provision, disclosure, storage, etc. of the data involved (for example, including but not limited to user personal information) are in compliance with the provisions of relevant laws and regulations, are used for legitimate purposes, and do not violate public order and good morals. In particular, necessary measures are taken for user personal information to prevent illegal access to user personal information data and maintain the security of user personal information, network security, and national security.
[0037] In the embodiments of the present disclosure, the user's authorization or consent is obtained before obtaining or collecting the user's personal information.
[0038] Astronomical optical image retrieval algorithms are usually based on star catalog retrieval algorithms. Astronomical images are divided into multiple sub-regions and indexes are established. The star catalog retrieval algorithm divides the regions based on the spherical coordinates of the celestial sphere. Astronomical images are rectangular dot matrices of plane coordinates, and there is a nonlinear relationship between spherical coordinates and plane coordinates. First, using the spherical partitioning algorithm to divide the plane rectangular image into sub-regions will cause the sub-regions of the image to be irregular in shape, which is not friendly to distance calculation. Secondly, the four sides of the plane coordinate rectangle are curves in the spherical coordinates. It is difficult for the spherical sub-region to just cover the rectangular area. Therefore, more sub-regions are needed to cover the complete rectangle, and some sub-regions only partially cover the image, while the rest are blank. These will affect the retrieval efficiency of astronomical images.
[0039] Therefore, the present disclosure proposes that the problem of determining the area intersection when retrieving images using celestial coordinates can be converted from the celestial coordinate system to the pixel plane coordinate system, and the conversion method is a tangent plane projection based on the celestial coordinates of the center of the image. Afterwards, it is determined in the pixel plane coordinate system whether the retrieval area and the image area intersect, and if they do, the image is the retrieval target image. This not only simplifies the calculation process of the intersection of the retrieval area and the image boundary, but also avoids the problem of the difficulty in expressing the rectangular boundary of the image on the celestial sphere when retrieving images in the celestial coordinate system, as well as the complex calculation problem of the intersection of the spherical surface area. At the same time, in order to speed up the retrieval process, the celestial coordinates of the center and the four corners of all astronomical images are calculated in advance, and the mapping relationship between the projection plane coordinates and the pixel plane coordinates is established based on the coordinates of the center and the four corners during retrieval.
[0040] In view of the above concept, an embodiment of the present disclosure provides a method for retrieving astronomical images, including: determining an image to be projected that meets a preset condition from an astronomical image database according to a retrieval celestial coordinate and a retrieval radius input by a user, the preset condition being determined according to the retrieval radius, and the astronomical image database including at least one astronomical image; taking the central celestial coordinate of the image to be projected as the center, projecting the retrieval celestial coordinate on a tangent plane to obtain retrieval projection coordinates, the central celestial coordinate is the coordinate of a point at the center of the image to be projected; based on a mapping relationship between the projection coordinate and the pixel coordinate of the image to be projected, calculating the retrieval pixel coordinate of the retrieval projection coordinate in the image to be projected; when there is an intersection between the pixel coordinate in the retrieval pixel circle and the pixel coordinate of the image to be projected, determining the image to be projected as a target astronomical image.
[0041] Figure 1 The system architecture diagram of the astronomical image retrieval method according to the embodiment of the present disclosure is schematically shown. It should be noted that: Figure 1 What is shown is merely an example of a system architecture to which the embodiments of the present disclosure can be applied, in order to help those skilled in the art understand the technical content of the present disclosure, but it does not mean that the embodiments of the present disclosure cannot be used in other devices, systems, environments or scenarios.
[0042] like Figure 1 As shown, the system architecture 100 according to this embodiment may include a first terminal device 101, a second terminal device 102, a third terminal device 103, a network 104, and a server 105. The network 104 is used to provide a medium for a communication link between the first terminal device 101, the second terminal device 102, the third terminal device 103, and the server 105. The network 104 may include various connection types, such as wired and / or wireless communication links, etc.
[0043] The user may use the first terminal device 101, the second terminal device 102, and the third terminal device 103 to interact with the server 105 through the network 104 to receive or send messages, etc. Various communication client applications may be installed on the first terminal device 101, the second terminal device 102, and the third terminal device 103, such as shopping applications, web browser applications, search applications, instant messaging tools, email clients, and / or social platform software, etc. (only for example).
[0044] The first terminal device 101, the second terminal device 102, and the third terminal device 103 may be various electronic devices having display screens and supporting web browsing, including but not limited to smart phones, tablet computers, laptop computers, desktop computers, and the like.
[0045] The server 105 may be a server that provides various services, such as a background management server (only as an example) that provides support for websites browsed by users using the first terminal device 101, the second terminal device 102, and the third terminal device 103. The background management server may analyze and process the received data such as user requests, and feed back the processing results (such as web pages, information, or data obtained or generated according to user requests) to the terminal device.
[0046] It should be noted that the astronomical image retrieval method provided in the embodiment of the present disclosure can generally be executed by the server 105. Accordingly, the astronomical image retrieval method device provided in the embodiment of the present disclosure can generally be set in the server 105. The astronomical image retrieval method provided in the embodiment of the present disclosure can also be executed by a server or server cluster that is different from the server 105 and can communicate with the first terminal device 101, the second terminal device 102, the third terminal device 103 and / or the server 105. Accordingly, the astronomical image retrieval device provided in the embodiment of the present disclosure can also be set in a server or server cluster that is different from the server 105 and can communicate with the first terminal device 101, the second terminal device 102, the third terminal device 103 and / or the server 105. Alternatively, the astronomical image retrieval method provided in the embodiment of the present disclosure can also be executed by the first terminal device 101, the second terminal device 102 or the third terminal device 103, or by other terminal devices different from the first terminal device 101, the second terminal device 102 or the third terminal device 103. Correspondingly, the astronomical image retrieval device provided in the embodiment of the present disclosure may also be arranged in the first terminal device 101, the second terminal device 102 or the third terminal device 103, or in other terminal devices different from the first terminal device 101, the second terminal device 102 or the third terminal device 103.
[0047] For example, the mapping relationship between the projection coordinates and the pixel coordinates of the image to be projected may be originally stored in any one of the first terminal device 101, the second terminal device 102 or the third terminal device 103 (for example, the first terminal device 101, but not limited thereto), or stored in an external storage device and may be imported into the first terminal device 101. Then, the first terminal device 101 may locally execute the astronomical image retrieval method provided in the embodiment of the present disclosure, or send the mapping relationship between the projection coordinates and the pixel coordinates of the image to be projected to other terminal devices, servers, or server clusters, and the astronomical image retrieval method provided in the embodiment of the present disclosure may be executed by other terminal devices, servers, or server clusters that receive the mapping relationship between the projection coordinates and the pixel coordinates of the image to be projected.
[0048] It should be understood that Figure 1 The number of terminal devices, networks and servers in the embodiment is only for illustration. Any number of terminal devices, networks and servers may be provided according to the implementation requirements.
[0049] Figure 2 The flowchart of the astronomical image retrieval method according to the embodiment of the present disclosure is schematically shown.
[0050] like Figure 2 As shown, the method includes operations S210 to S240.
[0051] In operation S210, an image to be projected that meets a preset condition is determined from an astronomical image database according to the search celestial coordinates and the search radius input by the user.
[0052] According to an embodiment of the present disclosure, the astronomical image database includes at least one astronomical image. For example, astronomical images are usually taken of celestial bodies and celestial phenomena, such as stars, planets, galaxies, nebulae, supernova explosions, etc.
[0053] According to an embodiment of the present disclosure, the preset condition is determined according to the search radius. For example, the preset condition may be to use the celestial coordinates whose distance from the search celestial coordinates is less than the search radius as the search coordinate range, and to use the astronomical image captured within the search coordinate range as the image to be projected.
[0054] In an embodiment of the present disclosure, before obtaining the information such as the search celestial coordinates and the search radius input by the user, the user's consent or authorization may be obtained. For example, before operation S210, a request for obtaining user information may be issued to the user. When the user agrees or authorizes that the information input by the user may be obtained, the operation S210 is performed.
[0055] In operation S220, the retrieved celestial coordinates are projected on a tangent plane with the central celestial coordinates of the image to be projected as the center to obtain retrieved projection coordinates.
[0056] According to an embodiment of the present disclosure, the central celestial coordinates are coordinates of a point at the center of the image to be projected.
[0057] For example, the retrieval celestial coordinates are (RA, DEC), where RA represents the retrieval of right ascension and DEC represents the retrieval of declination.
[0058] Assumption: The central celestial coordinates of the image to be projected are (RA0, DEC0), RA0 is the right ascension in the central celestial coordinates, and DEC0 is the declination in the central celestial coordinates. x and y correspond to the horizontal and vertical coordinates of the plane coordinates, respectively.
[0059] Calculate the auxiliary angle △RA=RA-RA0, and then calculate the plane coordinates x and y. The formula is as follows, projecting the retrieved celestial coordinates (RA, DEC) onto the plane coordinates (x, y).
[0060] (1)
[0061] (2)
[0062] In operation S230, based on the mapping relationship between the projection coordinates and the pixel coordinates of the image to be projected, the retrieval pixel coordinates of the retrieval projection coordinates in the image to be projected are calculated.
[0063] According to an embodiment of the present disclosure, a portion of the celestial coordinates in the image to be projected is projected on a tangent plane to obtain projection coordinates corresponding to the portion of the celestial coordinates. A linear or nonlinear relationship between the projection coordinates corresponding to the portion of the celestial coordinates and the pixel coordinates is analyzed to obtain a mapping relationship between the projection coordinates and the pixel coordinates of the image to be projected.
[0064] According to an embodiment of the present disclosure, the retrieval projection coordinates may be brought into the linear relationship or nonlinear relationship between the projection coordinates corresponding to the partial celestial coordinates and the pixel coordinates, and the retrieval pixel coordinates of the retrieval projection coordinates in the image to be projected may be obtained.
[0065] In operation S240, when there is an intersection between the pixel coordinates in the search pixel circle and the pixel coordinates of the image to be projected, the image to be projected is determined as a target astronomical image.
[0066] According to an embodiment of the present disclosure, the search pixel circle is a circle with the search pixel coordinate as the center and the search radius as the radius.
[0067] For example, the pixel coordinate range of the image to be projected may be {x∈(0, 450), y∈(0, 600)}. If the pixel coordinates in the search pixel circle include q{x=430, y=300}, then the pixel coordinates in the search pixel circle and the pixel coordinates of the image to be projected have an intersection.
[0068] According to the embodiments of the present disclosure, based on the search celestial coordinates and search radius input by the user, the image to be projected that meets the preset conditions is determined from the astronomical image database, thereby narrowing the scope of image search. Then, with the central celestial coordinates of the image to be projected as the center, the search celestial coordinates are projected on a tangent plane to obtain the search projection coordinates; based on the mapping relationship between the projection coordinates and the pixel coordinates of the image to be projected, the search pixel coordinates of the search celestial coordinates in the image to be projected are quickly calculated, which greatly reduces the amount of calculation. In the case where the pixel coordinates in the search pixel circle intersect with the pixel coordinates of the image to be projected, the image to be projected is determined as the target astronomical image, thereby improving the search efficiency of astronomical images.
[0069] According to an embodiment of the present disclosure, the representative celestial coordinates include coordinates of representative position points in the astronomical image, and the representative position points include corner position points and a center position point of the astronomical image.
[0070] Figure 3 A schematic diagram schematically shows two-dimensional plane coordinates and three-dimensional spherical coordinates of representative position points according to an embodiment of the present disclosure.
[0071] like Figure 3 As shown in the figure, the left figure involves corner points A, B, C and D, and the center point is CENTER. The two-dimensional plane coordinates can characterize the position of the representative position point in the astronomical image. The right figure shows the position of the representative position point in the sky area, that is, the three-dimensional spherical coordinates are celestial coordinates. The celestial coordinates are marked along horizontal or vertical arcs, which are different from the horizontal or vertical straight line marks of the plane coordinates. A four-sided astronomical image captures a four-sided arc area.
[0072] According to an embodiment of the present disclosure, the mapping relationship between the projection coordinates and the pixel coordinates of the image to be projected is obtained based on the following method: taking the central celestial coordinates of the image to be projected as the center, the representative celestial coordinates of the corner position points of the image to be projected are projected on a tangent plane to obtain the projection coordinates of the corner position points; the projection coordinates and the pixel coordinates of the corner position points are linearly fitted to obtain the mapping relationship between the projection coordinates and the pixel coordinates of the image to be projected.
[0073] According to an embodiment of the present disclosure, the projection coordinates of five representative position points may be calculated first, and then linear fitting may be performed on the projection coordinates of the five representative position points and the five pixel coordinates to obtain a mapping relationship between the projection coordinates and the pixel coordinates of the image to be projected.
[0074] The database table structure is established based on the celestial coordinates of the center and the four corners, which has a simple structure and fast retrieval speed; based on the five points representing the celestial coordinates, the mapping relationship between the projection coordinates of the image to be projected and the pixel coordinates is established, which has strong comprehensibility and low calculation complexity.
[0075] According to an embodiment of the present disclosure, an astronomical image database is established based on the following method: obtaining representative celestial coordinates of representative position points in astronomical images, where the representative celestial coordinates are obtained by inputting the astronomical images into a positioning recognition model; obtaining a mapping relationship between the projection coordinates and pixel coordinates of the astronomical images; and associating and storing the astronomical images, the mapping relationship between the projection coordinates of the astronomical images and the pixel coordinates, and the representative celestial coordinates.
[0076] Figure 4 The schematic diagram of constructing an astronomical image database according to an embodiment of the present disclosure is schematically shown.
[0077] like Figure 4 As shown, the astronomical image can be input into the positioning recognition model to calculate the five representative celestial coordinates corresponding to the four corner position points and the center position point. The representative celestial coordinates of the five points of the astronomical image and the astronomical image information are associated and stored in the image index table.
[0078] The astronomical image information includes the identification, storage path, shooting time, size of the astronomical image, mapping relationship between the projection coordinates and pixel coordinates of the astronomical image, etc.
[0079] For example, the fields of the image index table may be: id, path, center_ra, center_dec, top_left_ra, top_left_dec, top_right_ra, top_right_dec, bottom_left_ra, bottom_left_dec, bottom_right_ra, bottom_right_dec.
[0080] Where id is the primary key of the image index table, path is the storage path of the astronomical image, center_(ra, dec), top_left_(ra, dec), top_right_(ra, dec), bottom_left_(ra, dec), and bottom_right_(ra, dec) are the celestial coordinates of the center point and the four corner points respectively.
[0081] According to an embodiment of the present disclosure, the preset condition includes that the area captured by the astronomical image is the target sky area; according to the search celestial coordinates and the search radius input by the user, determining the image to be projected that meets the preset condition from the astronomical image database includes: determining the target sky area according to the search celestial coordinates and the search radius input by the user; determining an astronomical image set from the astronomical image database, the astronomical image set including at least one regional astronomical image that captured the target sky area. In the case where the regional celestial coordinates in the regional astronomical image and the search celestial coordinates meet the preset relative position threshold, the regional astronomical image is determined as the image to be projected, and the preset condition also includes that the regional celestial coordinates and the search celestial coordinates meet the preset relative position threshold.
[0082] According to an embodiment of the present disclosure, the target sky area may be a four-sided arc area.
[0083] According to an embodiment of the present disclosure, satisfying the preset relative position threshold may be that the relative distance between the regional celestial coordinates and the searched celestial coordinates does not exceed the preset relative position threshold, that is, further narrowing the image search range.
[0084] According to the embodiments of the present disclosure, the search range is narrowed down for the first time according to the search celestial coordinates and the search radius, and the search area can be accurately locked.
[0085] The second time is to narrow the search range according to the relative distance between the search celestial coordinates and the regional celestial coordinates, so as to accurately lock the key search image. For example, it is determined whether the relative distance between the regional celestial coordinates at the center point and the search celestial coordinates meets the preset relative position threshold.
[0086] According to an embodiment of the present disclosure, the formula for the target sky area is as follows:
[0087] (3)
[0088] The retrieval celestial coordinates are (RA, DEC), RA represents the retrieval right ascension, DEC represents the retrieval declination, R is the retrieval radius, RA is the retrieval radius, l DEC1 represents the right ascension of the target sky area, and DEC2 represents the declination of the target sky area.
[0089] According to an embodiment of the present disclosure, the preset relative position threshold is a great circle distance threshold between the regional celestial coordinates in the regional astronomical image and the search celestial coordinates, and the great circle distance threshold is determined according to the size parameters of the astronomical image and the search radius.
[0090] According to an embodiment of the present disclosure, the formula for the great circle distance threshold is as follows:
[0091] DIST1 <sqrt(W-deg*W-deg+H-deg *H-deg)+R(4)
[0092] DIST1 represents the great circle distance between the regional celestial coordinates and the retrieval celestial coordinates in the regional astronomical image, sqrt represents the square root, W-deg represents the length of the width W of the regional astronomical image on the spherical surface, H-deg represents the length of the height H of the regional astronomical image on the spherical surface, the size parameters include width W and height H, and R represents the retrieval radius.
[0093] Figure 5 A schematic diagram of a method for retrieving astronomical images according to another embodiment of the present disclosure is schematically shown.
[0094] The user enters the search celestial coordinates (RA, DEC) and the search radius R in the astronomical image retrieval platform. The regional astronomical images whose central celestial coordinates (center_(ra, dec)) belong to the target sky area in the astronomical image are determined from the image index table. The regional astronomical images belonging to the target sky area are grouped into an astronomical image set IMG1.
[0095] For each image in the astronomical image set IMG1, calculate the great circle distance DIST1 between the regional celestial coordinates and the search celestial coordinates in the regional astronomical image, and determine whether the great circle distance DIST1 is less than the great circle distance threshold. If so, add the regional astronomical image to the image set to be projected IMG2; if not, treat the regional astronomical image as a non-search image.
[0096] For each image in the image set IMG2 to be projected, the retrieval celestial coordinates are projected on a tangent plane with the central celestial coordinates of the image to be projected as the center to obtain the retrieval projection coordinates. The mapping relationship between the projection coordinates and the pixel coordinates of the image to be projected is retrieved from the image index table. The retrieval projection coordinates are substituted into the mapping relationship formula between the projection coordinates and the pixel coordinates of the image to be projected to obtain the retrieval pixel coordinates of the retrieval projection coordinates in the image to be projected.
[0097] It is determined whether there is an intersection between the pixel coordinates in the search pixel circle and the pixel coordinates of the image to be projected. If so, the image to be projected is included in the target astronomical image set IMG3; if not, the image to be projected is used as a non-search image.
[0098] The retrieved target astronomical image set IMG3 is returned to the astronomical image retrieval platform.
[0099] According to an embodiment of the present disclosure, the representative celestial coordinates of the corner position points of the image to be projected are projected on a tangent plane with the central celestial coordinates of the image to be projected as the center to obtain the projection coordinates of the corner position points; the projection coordinates of the corner position points are linearly fitted with the pixel coordinates to obtain the mapping relationship between the projection coordinates and the pixel coordinates of the image to be projected. The astronomical image, the mapping relationship between the projection coordinates of the astronomical image and the pixel coordinates, and the representative celestial coordinates are associated and stored.
[0100] The database table structure is established based on the celestial coordinates of the center and the four corners, which has a simple structure and fast retrieval speed; based on the five points representing the celestial coordinates, the mapping relationship between the projection coordinates of the image to be projected and the pixel coordinates is established, which has strong comprehensibility and low calculation complexity.
[0101] Figure 6 The block diagram of the astronomical image retrieving device according to the embodiment of the present disclosure is schematically shown.
[0102] like Figure 6 As shown, the astronomical image retrieval device includes a first determination module 610 , a cutting plane projection module 620 , a calculation module 630 and a second determination module 640 .
[0103] A first determination module 610 is used to determine an image to be projected that meets a preset condition from an astronomical image database according to the search celestial coordinates and the search radius input by the user, wherein the preset condition is determined according to the search radius, and the astronomical image database includes at least one astronomical image;
[0104] A tangent plane projection module 620 is used to perform tangent plane projection on the retrieved celestial coordinates with the central celestial coordinates of the image to be projected as the center to obtain the retrieved projection coordinates, where the central celestial coordinates are the coordinates of the central position point of the image to be projected;
[0105] A calculation module 630, configured to calculate the retrieval pixel coordinates of the retrieval projection coordinates in the image to be projected based on the mapping relationship between the projection coordinates and the pixel coordinates of the image to be projected;
[0106] The second determination module 640 is configured to determine the image to be projected as a target astronomical image when there is an intersection between the pixel coordinates in the retrieved pixel circle and the pixel coordinates of the image to be projected.
[0107] According to an embodiment of the present disclosure, the first determination module 610 includes a first determination submodule, a second determination submodule, and a third determination submodule. The first determination submodule is used to determine the target sky area according to the search celestial coordinates and the search radius input by the user. The second determination submodule is used to determine an astronomical image set from an astronomical image database, and the astronomical image set includes at least one regional astronomical image that captures the target sky area. The third determination submodule is used to determine the regional astronomical image as the image to be projected when the regional celestial coordinates in the regional astronomical image and the search celestial coordinates meet a preset relative position threshold.
[0108] According to an embodiment of the present disclosure, the preset relative position threshold is a great circle distance threshold between the regional celestial coordinates in the regional astronomical image and the search celestial coordinates, and the great circle distance threshold is determined according to the size parameters of the astronomical image and the search radius.
[0109] According to an embodiment of the present disclosure, an astronomical image database is established based on the following method: obtaining representative celestial coordinates of representative position points in astronomical images, where the representative celestial coordinates are obtained by inputting the astronomical images into a positioning recognition model; obtaining a mapping relationship between the projection coordinates and pixel coordinates of the astronomical images; and associating and storing the astronomical images, the mapping relationship between the projection coordinates of the astronomical images and the pixel coordinates, and the representative celestial coordinates.
[0110] According to an embodiment of the present disclosure, the representative celestial coordinates include coordinates of representative position points in the astronomical image, and the representative position points include corner position points and a center position point of the astronomical image.
[0111] According to an embodiment of the present disclosure, the mapping relationship between the projection coordinates and the pixel coordinates of the image to be projected is obtained based on the following method: taking the central celestial coordinates of the image to be projected as the center, the representative celestial coordinates of the corner position points of the image to be projected are projected on a tangent plane to obtain the projection coordinates of the corner position points; the projection coordinates and the pixel coordinates of the corner position points are linearly fitted to obtain the mapping relationship between the projection coordinates and the pixel coordinates of the image to be projected.
[0112] According to the embodiments of the present invention, any one or more of the modules, submodules, units, and subunits, or at least part of the functions of any one of them can be implemented in one module. According to the embodiments of the present invention, any one or more of the modules, submodules, units, and subunits can be split into multiple modules for implementation. According to the embodiments of the present invention, any one or more of the modules, submodules, units, and subunits can be at least partially implemented as hardware circuits, such as field programmable gate arrays (FPGAs), programmable logic arrays (PLAs), systems on chips, systems on substrates, systems on packages, application specific integrated circuits (ASICs), or can be implemented by hardware or firmware in any other reasonable way of integrating or packaging circuits, or can be implemented in any one of the three implementation methods of software, hardware, and firmware, or in any appropriate combination of any of them. Alternatively, according to the embodiments of the present invention, one or more of the modules, submodules, units, and subunits can be at least partially implemented as computer program modules, and when the computer program modules are run, the corresponding functions can be performed.
[0113] For example, any multiple of the first determination module 610, the tangent plane projection module module 620, the calculation module 630 and the second determination module 640 can be combined in one module / unit / sub-unit for implementation, or any one of the modules / units / sub-units can be split into multiple modules / units / sub-units. Alternatively, at least part of the functions of one or more of these modules / units / sub-units can be combined with at least part of the functions of other modules / units / sub-units and implemented in one module / unit / sub-unit. According to an embodiment of the present disclosure, at least one of the first determination module 610, the tangent plane projection module module 620, the calculation module 630 and the second determination module 640 can be at least partially implemented as a hardware circuit, such as a field programmable gate array (FPGA), a programmable logic array (PLA), a system on a chip, a system on a substrate, a system on a package, an application specific integrated circuit (ASIC), or can be implemented by hardware or firmware such as any other reasonable way of integrating or packaging the circuit, or implemented in any one of the three implementation methods of software, hardware and firmware or in any appropriate combination of any of them. Alternatively, at least one of the first determination module 610, the cutting plane projection module 620, the calculation module 630 and the second determination module 640 may be at least partially implemented as a computer program module, and when the computer program module is executed, the corresponding function may be executed.
[0114] It should be noted that the astronomical image retrieval device in the embodiment of the present disclosure corresponds to the astronomical image retrieval method in the embodiment of the present disclosure. The description of the astronomical image retrieval device specifically refers to the astronomical image retrieval method, which will not be repeated here.
[0115] Figure 7 A block diagram of an electronic device suitable for implementing a method for retrieving astronomical images according to an embodiment of the present disclosure is schematically shown. Figure 7 The electronic device shown is only an example and should not bring any limitation to the functions and scope of use of the embodiments of the present disclosure.
[0116] like Figure 7 As shown, the electronic device 700 according to an embodiment of the present disclosure includes a processor 701, which can perform various appropriate actions and processes according to a program stored in a read-only memory (ROM) 702 or a program loaded from a storage part 708 to a random access memory (RAM) 703. The processor 701 may include, for example, a general-purpose microprocessor (such as a CPU), an instruction set processor and / or a related chipset and / or a special-purpose microprocessor (for example, an application-specific integrated circuit (ASIC)), etc. The processor 701 may also include an onboard memory for caching purposes. The processor 701 may include a single processing unit or multiple processing units for performing different actions of the method flow according to an embodiment of the present disclosure.
[0117] In RAM 703, various programs and data required for the operation of electronic device 700 are stored. Processor 701, ROM 702 and RAM 703 are connected to each other via bus 704. Processor 701 performs various operations of the method flow according to the embodiment of the present disclosure by executing the program in ROM 702 and / or RAM 703. It should be noted that the program can also be stored in one or more memories other than ROM 702 and RAM 703. Processor 701 can also perform various operations of the method flow according to the embodiment of the present disclosure by executing the program stored in the one or more memories.
[0118] According to an embodiment of the present disclosure, the electronic device 700 may further include an input / output (I / O) interface 705, which is also connected to the bus 704. The electronic device 700 may further include one or more of the following components connected to the input / output (I / O) interface 705: an input portion 706 including a keyboard, a mouse, etc.; an output portion 707 including a cathode ray tube (CRT), a liquid crystal display (LCD), etc., and a speaker, etc.; a storage portion 708 including a hard disk, etc.; and a communication portion 709 including a network interface card such as a LAN card, a modem, etc. The communication portion 709 performs communication processing via a network such as the Internet. A drive 710 is also connected to the input / output (I / O) interface 705 as needed. A removable medium 711, such as a magnetic disk, an optical disk, a magneto-optical disk, a semiconductor memory, etc., is installed on the drive 710 as needed, so that a computer program read therefrom is installed into the storage portion 708 as needed.
[0119] According to an embodiment of the present disclosure, the method flow according to an embodiment of the present disclosure can be implemented as a computer software program. For example, an embodiment of the present disclosure includes a computer program product, which includes a computer program carried on a computer-readable storage medium, and the computer program contains a program code for executing the method shown in the flowchart. In such an embodiment, the computer program can be downloaded and installed from the network through the communication part 709, and / or installed from the removable medium 711. When the computer program is executed by the processor 701, the above-mentioned functions defined in the system of the embodiment of the present disclosure are executed. According to an embodiment of the present disclosure, the system, equipment, device, module, unit, etc. described above can be implemented by a computer program module.
[0120] The present disclosure also provides a computer-readable storage medium, which may be included in the device / apparatus / system described in the above embodiments; or may exist independently without being assembled into the device / apparatus / system. The above computer-readable storage medium carries one or more programs, and when the above one or more programs are executed, the method according to the embodiment of the present disclosure is implemented.
[0121] According to an embodiment of the present disclosure, the computer-readable storage medium may be a non-volatile computer-readable storage medium. For example, it may include, but is not limited to: a portable computer disk, a hard disk, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), a portable compact disk read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination thereof. In the present disclosure, a computer-readable storage medium may be any tangible medium containing or storing a program that may be used by or in combination with an instruction execution system, apparatus, or device.
[0122] For example, according to an embodiment of the present disclosure, the computer-readable storage medium may include the ROM 702 and / or the RAM 703 described above and / or one or more memories other than the ROM 702 and the RAM 703 .
[0123] An embodiment of the present disclosure also includes a computer program product, which includes a computer program, and the computer program contains a program code for executing the method provided by the embodiment of the present disclosure. When the computer program product runs on an electronic device, the program code is used to enable the electronic device to implement the astronomical image retrieval method provided by the embodiment of the present disclosure.
[0124] When the computer program is executed by the processor 701, the above functions defined in the system / device of the embodiment of the present disclosure are executed. According to the embodiment of the present disclosure, the system, device, module, unit, etc. described above can be implemented by a computer program module.
[0125] In one embodiment, the computer program may rely on tangible storage media such as optical storage devices, magnetic storage devices, etc. In another embodiment, the computer program may also be transmitted and distributed in the form of signals on a network medium, and downloaded and installed through the communication part 709, and / or installed from the removable medium 711. The program code contained in the computer program may be transmitted using any appropriate network medium, including but not limited to: wireless, wired, etc., or any suitable combination of the above.
[0126] According to an embodiment of the present disclosure, the program code for executing the computer program provided by the embodiment of the present disclosure can be written in any combination of one or more programming languages. Specifically, these computing programs can be implemented using high-level process and / or object-oriented programming languages, and / or assembly / machine languages. Programming languages include, but are not limited to, Java, C++, python, "C" language or similar programming languages. The program code can be executed entirely on the user computing device, partially on the user device, partially on the remote computing device, or entirely on the remote computing device or server. In the case of a remote computing device, the remote computing device can be connected to the user computing device through any type of network, including a local area network (LAN) or a wide area network (WAN), or can be connected to an external computing device (for example, using an Internet service provider to connect through the Internet).
[0127] The flowcharts and block diagrams in the accompanying drawings illustrate the possible implementation architecture, functions and operations of the systems, methods and computer program products according to various embodiments of the present disclosure. In this regard, each box in the flowchart or block diagram may represent a module, a program segment, or a part of a code, and the above-mentioned module, program segment, or a part of the code contains one or more executable instructions for implementing the specified logical function. It should also be noted that in some alternative implementations, the functions marked in the box may also occur in an order different from that marked in the accompanying drawings. For example, two boxes represented in succession can actually be executed substantially in parallel, and they can sometimes be executed in the opposite order, depending on the functions involved. It should also be noted that each box in the block diagram or flowchart, and the combination of boxes in the block diagram or flowchart, can be implemented with a dedicated hardware-based system that performs a specified function or operation, or can be implemented with a combination of dedicated hardware and computer instructions. It can be understood by those skilled in the art that the features recorded in the various embodiments of the present disclosure can be combined and / or combined in a variety of ways, even if such a combination or combination is not explicitly recorded in the present disclosure. In particular, without departing from the spirit and teaching of the present disclosure, the features described in the various embodiments of the present disclosure may be combined and / or combined in a variety of ways. All of these combinations and / or combinations fall within the scope of the present disclosure.
[0128] The embodiments of the present disclosure are described above. However, these embodiments are only for illustrative purposes and are not intended to limit the scope of the present disclosure. Although the embodiments are described above, this does not mean that the measures in the various embodiments cannot be used in combination to advantage. Without departing from the scope of the present disclosure, those skilled in the art may make a variety of substitutions and modifications, which should all fall within the scope of the present disclosure.
Claims
1. A method for retrieving astronomical images, comprising: According to the search celestial coordinates and the search radius input by the user, an image to be projected that meets a preset condition is determined from an astronomical image database, wherein the preset condition is determined according to the search radius, and the astronomical image database includes at least one astronomical image; Taking the central celestial coordinates of the image to be projected as the center, the searched celestial coordinates are projected on a tangent plane to obtain searched projection coordinates, where the central celestial coordinates are the coordinates of the central position point of the image to be projected; Based on the mapping relationship between the projection coordinates and the pixel coordinates of the image to be projected, the retrieval pixel coordinates of the retrieval projection coordinates in the image to be projected are calculated; When pixel coordinates in a search pixel circle intersect with pixel coordinates of the image to be projected, the image to be projected is determined as a target astronomical image. The search pixel circle is a circle with the search pixel coordinates as the center and the search radius as the radius.
2. The method according to claim 1, characterized in that The preset conditions include that the area where the astronomical image is taken is a target sky area; The step of determining an image to be projected that meets a preset condition from an astronomical image database according to the search celestial coordinates and the search radius input by the user comprises: Determining the target sky area according to the search celestial coordinates and the search radius input by the user; An astronomical image set is determined from the astronomical image database, wherein the astronomical image set includes at least one regional astronomical image capturing the target sky area. When the regional celestial coordinates in the regional astronomical image and the retrieved celestial coordinates meet a preset relative position threshold, the regional astronomical image is determined as the image to be projected, and the preset condition also includes that the regional celestial coordinates and the retrieved celestial coordinates meet a preset relative position threshold.
3. The method according to claim 2, characterized in that The formula for the target sky area is as follows: The retrieval celestial coordinates are (RA, DEC), RA represents the retrieval right ascension, DEC represents the retrieval declination, R represents the retrieval radius, RA represents the retrieval radius, l represents the right ascension of the target sky area, and DEC1 represents the declination of the target sky area.
4. The method according to claim 2, characterized in that: The preset relative position threshold is a great circle distance threshold between the regional celestial coordinates in the regional astronomical image and the search celestial coordinates, and the great circle distance threshold is determined according to the size parameter of the astronomical image and the search radius.
5. According to the method of claim 4, the formula of the great circle distance threshold is as follows: DIST1 <sqrt(W-deg*W-deg+H-deg *H-deg)+R DIST1 represents the great circle distance between the regional celestial coordinates in the regional astronomical image and the searched celestial coordinates, sqrt represents the square root, W-deg represents the length of the width W of the regional astronomical image on the spherical surface, H-deg represents the length of the height H of the regional astronomical image on the spherical surface, the size parameters include the width W and the height H, and R represents the search radius.
6. The method according to claim 1, characterized in that The astronomical image database is established based on the following method: Acquire representative celestial coordinates of a representative position point in the astronomical image, wherein the representative celestial coordinates are obtained by inputting the astronomical image into a positioning recognition model; Acquire a mapping relationship between the projection coordinates and the pixel coordinates of the astronomical image; The astronomical image, the mapping relationship between the projection coordinates of the astronomical image and the pixel coordinates, and the representative celestial sphere coordinates are associated and stored.
7. The method according to claim 6, characterized in that The representative celestial coordinates include coordinates of the representative position points in the astronomical image, and the representative position points include corner position points and the center position point of the astronomical image.
8. The method according to claim 7, characterized in that The mapping relationship between the projection coordinates and the pixel coordinates of the image to be projected is obtained based on the following method: Taking the central celestial coordinates of the image to be projected as the center, projecting the representative celestial coordinates of the corner position points of the image to be projected on a tangent plane to obtain the projection coordinates of the corner position points; Linear fitting is performed on the projection coordinates of the corner position points and the pixel coordinates to obtain a mapping relationship between the projection coordinates and the pixel coordinates of the image to be projected.
9. An astronomical image retrieval device, comprising: A first determination module is used to determine an image to be projected that meets a preset condition from an astronomical image database according to a search celestial coordinate and a search radius input by a user, wherein the preset condition is determined according to the search radius, and the astronomical image database includes at least one astronomical image; A tangent plane projection module, used to perform tangent plane projection on the retrieved celestial coordinates with the central celestial coordinates of the image to be projected as the center, to obtain retrieved projection coordinates, wherein the central celestial coordinates are coordinates of a central position point of the image to be projected; A calculation module, configured to calculate, based on a mapping relationship between the projection coordinates and the pixel coordinates of the image to be projected, the retrieval pixel coordinates of the retrieval projection coordinates in the image to be projected; The second determination module is used to determine the image to be projected as a target astronomical image when there is an intersection between pixel coordinates in a search pixel circle and pixel coordinates of the image to be projected, wherein the search pixel circle is a circle with the search pixel coordinates as the center and the search radius as the radius.
10. An electronic device comprising: one or more processors; a memory for storing one or more programs, When the one or more programs are executed by the one or more processors, the one or more processors implement the method according to any one of claims 1 to 8.
Citation Information
Patent Citations
Space polar coordinate based particle three-dimensional motion matching method
CN102930526A
Method for obtaining sky area target image and astronomical photography equipment
CN112019745A
All-day star chart recognition method and device based on space projection and medium
CN114719844A
Astronomical positioning method and system based on CCD observation data batch processing
CN115578448A
Telescope star searching method and device based on image recognition and telescope
US20220050868A1