Fisheye image correction method and device for non-theater sphere center projection
By mapping the coordinate points of the fisheye image plane to the virtual spherical space and performing coordinate transformation, the problem that the projector in a small dome theater needs to be placed at the center of the sphere is solved, achieving flexibility in the position of the projector and no distortion of the picture, improving for a better viewing experience.
Patent Information
- Application Number
- CN202310265790.5
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2023-03-13
- Publication Date
- 2024-09-17
AI Technical Summary
In a small dome theater, in the solution of a single fisheye lens and a projector, the projector needs to be placed at the center of the theater to ensure that the picture is not deformed, but this will block the audience's sight and generate noise, affecting the viewing experience.
By mapping the fisheye image plane coordinate points to the virtual spherical space, setting a new virtual sphere center point for coordinate transformation, the corrected fisheye image plane coordinate points are obtained, ensuring that the projector position deviates from the center of the sphere but the picture is not deformed.
It realizes that the projector can be placed outside the center of the theater sphere without affecting the picture quality, which reduces the usage restrictions of the single fisheye projector solution and provides the audience with a better viewing experience.
Smart Images

Figure CN118657693A
Abstract
Description
Technical Field
[0001] The present invention relates to the field of image processing technology, and in particular to a fisheye image correction method and device for non-theatrical spherical center projection. Background Art
[0002] This section is intended to provide a background or context to the embodiments of the invention recited in the claims. No admission is made that the description herein is prior art by inclusion in this section.
[0003] At present, some dome theaters with smaller diameters mostly use a single fisheye lens plus a projector for playback, which is low-cost, simple to deploy, and easy to maintain. The dome movie uses a perfect circular fisheye image based on equidistant projection. The projector needs to be at the center of the image, that is, the center of the theater (the center of the sphere), to ensure that the playback image is not deformed. However, from the audience's perspective, the center of the theater has the best audio-visual effect. If the projector is placed in the center, it will visually block the audience's line of sight and produce a large projector noise in hearing, affecting the viewing experience.
[0004] Therefore, it is currently necessary to design a fisheye image correction method that can ensure that the projection position of the projector deviates from the center point of the theater while the projected image is not deformed. Summary of the invention
[0005] The embodiment of the present invention provides a fisheye image correction method for non-theater spherical center projection, which is used to ensure that the projection position of the projector deviates from the center point of the theater sphere, and the projected image is not deformed. The method includes:
[0006] Mapping the coordinate points of the fisheye image plane to the coordinate points of the virtual spherical space;
[0007] The virtual spherical space coordinate point of the projector is set as a new virtual sphere center point, and the virtual spherical space coordinate point is transformed with the new virtual sphere center point as the center to obtain the transformed virtual spherical space coordinate point, wherein the virtual spherical space coordinate point of the projector is an arbitrary point in the three-dimensional space within the theater sphere;
[0008] Mapping the transformed virtual spherical space coordinate points back to the fisheye image to obtain the corrected fisheye image plane coordinate points;
[0009] Obtain pixel information of the corrected fisheye image plane coordinate points.
[0010] The embodiment of the present invention further provides a fisheye image correction device for non-theater spherical center projection, which is used to ensure that the projection position of the projector deviates from the spherical center point of the theater, and the projected image is not deformed. The device includes:
[0011] A first mapping module, used for mapping the fisheye image plane coordinate points into virtual spherical space coordinate points;
[0012] A coordinate transformation module is used to set the virtual spherical space coordinate point of the projector as a new virtual sphere center point, and to transform the virtual spherical space coordinate point with the new virtual sphere center point as the center to obtain the transformed virtual spherical space coordinate point, wherein the virtual spherical space coordinate point of the projector is an arbitrary point in the three-dimensional space within the theater sphere;
[0013] A second mapping module is used to map the transformed virtual spherical space coordinate points back to the fisheye image to obtain the corrected fisheye image plane coordinate points;
[0014] The pixel information acquisition module is used to obtain the pixel information of the plane coordinate points of the corrected fisheye image.
[0015] An embodiment of the present invention also provides a computer device, including a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the processor implements the above-mentioned fisheye image correction method for non-theatrical spherical center projection when executing the computer program.
[0016] An embodiment of the present invention further provides a computer-readable storage medium storing a computer program. When the computer program is executed by a processor, the fisheye image correction method for non-theatrical spherical center projection is implemented.
[0017] An embodiment of the present invention further provides a computer program product, which includes a computer program. When the computer program is executed by a processor, the fisheye image correction method for non-theatrical spherical center projection is implemented.
[0018] In the embodiment of the present invention, the plane coordinate point of the fisheye image is mapped to the virtual spherical space coordinate point; the virtual spherical space coordinate point of the projector is set as a new virtual sphere center point, and the virtual spherical space coordinate point is transformed with the new virtual sphere center point as the center to obtain the transformed virtual spherical space coordinate point, wherein the virtual spherical space coordinate point of the projector is an arbitrary point in the three-dimensional space within the theater sphere; the transformed virtual spherical space coordinate point is mapped back to the fisheye image to obtain the corrected fisheye image plane coordinate point; and the pixel information of the corrected fisheye image plane coordinate point is obtained. Through the above steps, it can be ensured that the projection position of the projector deviates from the sphere center point of the theater, and the projected image is not deformed. BRIEF DESCRIPTION OF THE DRAWINGS
[0019] In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the following briefly introduces the drawings required for use in the embodiments or the prior art descriptions. Obviously, the drawings described below are only some embodiments of the present invention. For ordinary technicians in this field, other drawings can be obtained based on these drawings without creative work. In the drawings:
[0020] Figure 1 It is a flow chart of a fisheye image correction method for non-theatrical spherical center projection in an embodiment of the present invention;
[0021] Figure 2 A flowchart of mapping a fisheye image plane coordinate point to a virtual spherical space coordinate point in an embodiment of the present invention;
[0022] Figure 3 A flowchart of coordinate transformation in an embodiment of the present invention;
[0023] Figure 4 is a flow chart of the second vector in an embodiment of the present invention;
[0024] Figure 5 A flow chart of obtaining the plane coordinate points of a corrected fisheye image in an embodiment of the present invention;
[0025] Figure 6 is an original fisheye image applicable to a dome theater in an embodiment of the present invention;
[0026] Figure 7 In the embodiment of the present invention, Figure 5 Corrected fisheye image of - the projector is located in the rear area of the theater;
[0027] Figure 8 In the embodiment of the present invention, Figure 5 Corrected fisheye image of the projector located in the front right area of the theater;
[0028] Fig. 9 The fisheye image after occlusion correction in the embodiment of the present invention;
[0029] Fig.10 Schematic diagram of a fisheye image correction device for non-theatrical spherical center projection in an embodiment of the present invention;
[0030] Fig.11 Schematic diagram of a computer device in an embodiment of the present invention. DETAILED DESCRIPTION
[0031] To make the purpose, technical solution and advantages of the embodiments of the present invention more clear, the embodiments of the present invention are further described in detail below in conjunction with the accompanying drawings. Here, the exemplary embodiments of the present invention and their descriptions are used to explain the present invention, but are not intended to limit the present invention.
[0032] Figure 1 The flowchart of the fisheye image correction method for non-theatrical spherical center projection in an embodiment of the present invention includes:
[0033] Step 101, mapping the fisheye image plane coordinate points to virtual spherical space coordinate points;
[0034] Step 102, setting the virtual spherical space coordinate point of the projector as a new virtual sphere center point, and performing coordinate transformation on the virtual spherical space coordinate point with the new virtual sphere center point as the center to obtain the transformed virtual spherical space coordinate point, wherein the virtual spherical space coordinate point of the projector is an arbitrary point in the three-dimensional space within the theater sphere;
[0035] Step 103, mapping the transformed virtual spherical space coordinate points back to the fisheye image to obtain the corrected fisheye image plane coordinate points;
[0036] Step 104, obtaining pixel information of the corrected fisheye image plane coordinate points.
[0037] In step 101, the coordinate points of the fisheye image plane are mapped to the coordinate points of the virtual spherical space; see Figure 2 , mapping the fisheye image plane coordinate points to virtual spherical space coordinate points, including:
[0038] Step 201, determining the origin of the fisheye image;
[0039] Assume that the coordinates of any pixel on the fisheye image are (u, v), where u, v∈(0,1), and the upper left corner of the fisheye image is taken as the origin;
[0040] Step 202, based on the origin, a virtual hemisphere is established to simulate a dome theater; a virtual hemisphere with a radius of 1 is established;
[0041] Step 203, calculating the distance, azimuth and altitude from the center of the virtual hemisphere to any coordinate point on the fisheye image;
[0042] Step 204: Calculate the virtual spherical space coordinate point corresponding to the arbitrary coordinate point according to the distance, azimuth and altitude.
[0043] In one embodiment, the following formula is used to calculate the distance, azimuth and altitude angle from the center of the virtual hemisphere to any coordinate point on the fisheye image, including:
[0044]
[0045]
[0046]
[0047] Among them, u and v are the values of two coordinate points of any coordinate point on the fisheye image; r, θ is the distance, azimuth and altitude;
[0048] Calculating the virtual spherical space coordinate point corresponding to the arbitrary coordinate point according to the distance, azimuth and altitude, including:
[0049]
[0050]
[0051] z=cos(θ)
[0052] Among them, x, y, and z are the values of the three coordinate points of the virtual spherical space coordinate point corresponding to the arbitrary coordinate point.
[0053] In step 102, the virtual spherical space coordinate point of the projector is set as a new virtual sphere center point, and the virtual spherical space coordinate point is transformed with the new virtual sphere center point as the center to obtain the transformed virtual spherical space coordinate point, wherein the virtual spherical space coordinate point of the projector is any point in the three-dimensional space within the theater sphere, that is, the present invention not only limits the position of the projector to the equatorial plane of the spherical surface of the spherical screen theater, but also ensures that the picture is not deformed when projected at any point in the three-dimensional space within the theater sphere, that is, z Len ≠0.
[0054] See also Figure 3 , the specific steps include:
[0055] Step 301, obtain the coordinate point L(x Len ,y Len ,z Len ) and any coordinate point A in the virtual spherical space form the first vector Since the viewing angle of a single fisheye lens on the market is less than 180°, z is generally set Len ≤0, otherwise the entire fisheye image cannot be displayed.
[0056] Step 302, determine the second vector The second vector starts from the center O of the virtual spherical space and is parallel to the first vector, that is, See also Figure 4 .
[0057] The formula for the second vector is as follows:
[0058]
[0059]
[0060] Among them, O is the center of the virtual spherical space, A' is the intersection point of the second vector on the virtual spherical surface, k is the scale parameter, L is the coordinate point of the projector in the virtual spherical space, A is an arbitrary coordinate point in the virtual spherical space, and x Len ,y Len 、z Len are the values of the three coordinate points of L, and x, y, z are the values of the three coordinate points of A'.
[0061] Step 303, determining the intersection point A' of the second vector on the virtual sphere;
[0062] Step 304: determine that the intersection point A′ is a transformed virtual spherical space coordinate point corresponding to the arbitrary coordinate point in the virtual spherical space.
[0063] In step 103, the transformed virtual spherical space coordinate points are mapped back to the fisheye image to obtain the corrected fisheye image plane coordinate points, see Figure 5 , the specific steps include:
[0064] Step 501, according to the transformed virtual spherical space coordinate point, determine the altitude angle, radius and azimuth angle of the transformed virtual spherical space coordinate point, the formula is as follows:
[0065]
[0066]
[0067]
[0068] Among them, θ', r', are the altitude angle, radius and azimuth respectively; x', y' and z' are the values of the three coordinate points of the virtual spherical space after transformation;
[0069] Step 502, calculate the coordinate points of the corrected fisheye image plane according to the altitude angle, radius and azimuth angle, the formula is as follows:
[0070]
[0071]
[0072] Among them, u' and v' are the values of two coordinate points of the corrected fisheye image plane coordinate point.
[0073] In step 104, the pixel information of the coordinate point of the corrected fisheye image plane is obtained. The pixel information of the coordinate point after transformation of the original fisheye image, input_image(u', v'), is the image information of the original coordinate point output_image(u, v) of the corrected output image, that is:
[0074] output_image(u,v)=input_image(u',v')
[0075] In one embodiment, the projector is at the third coordinate point z in the virtual spherical space coordinate point Len The value of is less than zero;
[0076] The method further comprises:
[0077] A mask is added to the fisheye image of the projector, and the pixels of the image larger than the fisheye image are filled with black, and the image exceeding 180° is blocked, that is, when θ'>90°, output_image(u,v)=0.
[0078] A specific embodiment is given below to illustrate the application of the method proposed in the embodiment of the present invention.
[0079] Figure 6 is the original fisheye image in the embodiment of the present invention, that is, the projector coordinate point L(0,0,0). For most theaters, the projector is located in the rear area of the theater (below the fisheye image). If the projector coordinate is L(0,-0.95,0), the corrected fisheye image is as follows: Figure 7 shown.
[0080] Assuming that the projector is located in the front right area of the theater (upper right of the fisheye image), the projector coordinate point is L (0.5, 0.5, 0), then the corrected fisheye image is as follows Figure 8 shown.
[0081] In some dome theaters, in order to avoid the projector blocking the audience, the projector is placed in a semi-underground area. Len ≤0, such as the projector coordinate point L(0.5,0.5,-0.2), the corrected fisheye image is as follows Fig. 9 As shown. Since the projector is sunken, the image displayed in the screen exceeds 180°, so in actual use, it is necessary to add a mask to the fisheye image to block the image exceeding 180°.
[0082] In summary, in the method proposed in the embodiment of the present invention, the plane coordinate points of the fisheye image are mapped to virtual spherical space coordinate points; the projector is set as a new virtual sphere center point at the virtual spherical space coordinate point, and the virtual spherical space coordinate point is transformed with the new virtual sphere center point as the center to obtain the transformed virtual spherical space coordinate point; the transformed virtual spherical space coordinate point is mapped back to the fisheye image to obtain the corrected fisheye image plane coordinate point; and the pixel information of the corrected fisheye image plane coordinate point is obtained. Through the above steps, it can be ensured that the projection position of the projector deviates from the sphere center point of the theater, and the projected picture is not deformed. The single fisheye projector can be placed at any position in the spherical screen theater. The fisheye image after position correction can ensure that the audience can see the picture without any deformation, reducing the use restrictions of the single fisheye camera solution and bringing a better viewing experience to the audience.
[0083] The present invention also provides a fisheye image correction device for non-theatrical spherical center projection, as described in the following embodiments. Since the principle of the device to solve the problem is similar to that of the fisheye image correction method for non-theatrical spherical center projection, the implementation of the device can refer to the implementation of the fisheye image correction method for non-theatrical spherical center projection, and the repeated parts will not be repeated.
[0084] Fig.10 Schematic diagram of a fisheye image correction device for non-theater spherical center projection according to an embodiment of the present invention, comprising:
[0085] A first mapping module 1001 is used to map the fisheye image plane coordinate points into virtual spherical space coordinate points;
[0086] A coordinate transformation module 1002 is used to set the virtual spherical space coordinate point of the projector as a new virtual sphere center point, and to transform the virtual spherical space coordinate point with the new virtual sphere center point as the center to obtain the transformed virtual spherical space coordinate point;
[0087] The second mapping module 1003 is used to map the transformed virtual spherical space coordinate points back to the fisheye image to obtain the corrected fisheye image plane coordinate points;
[0088] The pixel information obtaining module 1004 is used to obtain pixel information of the corrected fisheye image plane coordinate points.
[0089] In one embodiment, the first mapping module is specifically used for:
[0090] Determine the origin of the fisheye image;
[0091] Based on the origin, a virtual hemisphere is established to simulate a dome theater;
[0092] Calculate the distance, azimuth and altitude from the center of the virtual hemisphere to any coordinate point on the fisheye image;
[0093] The virtual spherical space coordinate point corresponding to the arbitrary coordinate point is calculated according to the distance, azimuth and altitude.
[0094] In one embodiment, the first mapping module is specifically used for:
[0095] The following formula is used to calculate the distance, azimuth and altitude from the center of the virtual hemisphere to any coordinate point on the fisheye image, including:
[0096]
[0097]
[0098]
[0099] Among them, u and v are the values of two coordinate points of any coordinate point on the fisheye image; r, θ is the distance, azimuth and altitude;
[0100] Calculating the virtual spherical space coordinate point corresponding to the arbitrary coordinate point according to the distance, azimuth and altitude, including:
[0101]
[0102]
[0103] z=cos(θ)
[0104] Among them, x, y, and z are the values of the three coordinate points of the virtual spherical space coordinate point corresponding to the arbitrary coordinate point.
[0105] In one embodiment, the coordinate transformation module is specifically used for:
[0106] Obtaining a first vector formed by a coordinate point of the projector in the virtual spherical space and an arbitrary coordinate point in the virtual spherical space;
[0107] Determine a second vector, where the second vector starts from the center of the virtual spherical space and is parallel to the first vector;
[0108] Determine the intersection point of the second vector on the virtual sphere;
[0109] The intersection point is determined to be a transformed virtual spherical space coordinate point corresponding to the arbitrary coordinate point in the virtual spherical space.
[0110] In one embodiment, the formula of the second vector is as follows:
[0111]
[0112]
[0113] Among them, O is the center of the virtual spherical space, A' is the intersection point of the second vector on the virtual spherical surface, k is the scale parameter, L is the coordinate point of the projector in the virtual spherical space, A is an arbitrary coordinate point in the virtual spherical space, and x Len ,y Len 、z Len are the values of the three coordinate points of L, and x, y, z are the values of the three coordinate points of A'.
[0114] In one embodiment, the second mapping module is specifically used for:
[0115] Determine the altitude angle, radius and azimuth angle of the transformed virtual spherical space coordinate point according to the transformed virtual spherical space coordinate point;
[0116] According to the altitude angle, radius and azimuth angle, the coordinate points of the corrected fisheye image plane are calculated.
[0117] In one embodiment, the second mapping module is specifically used for:
[0118] The following formula is used to determine the altitude angle, radius and azimuth angle of the transformed virtual spherical space coordinate point according to the transformed virtual spherical space coordinate point:
[0119]
[0120]
[0121]
[0122] Among them, θ', r', are the altitude angle, radius and azimuth respectively; x', y' and z' are the values of the three coordinate points of the virtual spherical space after transformation;
[0123] The following formula is used to calculate the coordinate points of the corrected fisheye image plane based on the altitude angle, radius and azimuth angle:
[0124]
[0125]
[0126] Among them, u' and v' are the values of two coordinate points of the corrected fisheye image plane coordinate point.
[0127] In one embodiment, the projector is at the third coordinate point z in the virtual spherical space coordinate point Len The value of is less than zero;
[0128] The device further includes a shielding module 1005, which is used to:
[0129] A mask is added to the fisheye image of the projector, and the pixels of the image larger than the fisheye image are filled with black, and the image exceeding 180° is blocked, that is, when θ'>90°, output_image(u,v)=0.
[0130] In summary, in the device proposed in the embodiment of the present invention, the plane coordinate points of the fisheye image are mapped to virtual spherical space coordinate points; the projector is set as a new virtual sphere center point at the virtual spherical space coordinate point, and the virtual spherical space coordinate point is transformed with the new virtual sphere center point as the center to obtain the transformed virtual spherical space coordinate point; the transformed virtual spherical space coordinate point is mapped back to the fisheye image to obtain the corrected fisheye image plane coordinate point; and the pixel information of the corrected fisheye image plane coordinate point is obtained. Through the above steps, it can be ensured that the projection position of the projector deviates from the sphere center point of the theater, and the projected picture is not deformed. The single fisheye projector can be placed at any position in the spherical screen theater. The fisheye image after position correction can ensure that the audience can see the picture without any deformation, reducing the use restrictions of the single fisheye camera solution and bringing a better viewing experience to the audience.
[0131] An embodiment of the present invention further provides a computer device, Fig.11 11 is a schematic diagram of a computer device in an embodiment of the present invention, wherein the computer device 1100 includes a memory 1110, a processor 1120, and a computer program 1130 stored in the memory 1110 and executable on the processor 1120, and when the processor 1120 executes the computer program 1130, the above-mentioned fisheye image correction method for non-theatrical spherical center projection is implemented.
[0132] An embodiment of the present invention further provides a computer-readable storage medium storing a computer program. When the computer program is executed by a processor, the fisheye image correction method for non-theatrical spherical center projection is implemented.
[0133] An embodiment of the present invention further provides a computer program product, which includes a computer program. When the computer program is executed by a processor, the fisheye image correction method for non-theatrical spherical center projection is implemented.
[0134] Those skilled in the art will appreciate that embodiments of the present invention may be provided as methods, systems, or computer program products. Therefore, the present invention may take the form of a complete hardware embodiment, a complete software embodiment, or an embodiment combining software and hardware. Moreover, the present invention may take the form of a computer program product implemented on one or more computer-usable storage media (including but not limited to disk storage, CD-ROM, optical storage, etc.) containing computer-usable program code.
[0135] The present invention is described with reference to flowcharts and / or block diagrams of methods, devices (systems), and computer program products according to embodiments of the present invention. It should be understood that each process and / or block in the flowchart and / or block diagram, as well as the combination of processes and / or blocks in the flowchart and / or block diagram, can be implemented by computer program instructions. These computer program instructions can be provided to a processor of a general-purpose computer, a special-purpose computer, an embedded processor, or other programmable data processing device to produce a machine, so that the instructions executed by the processor of the computer or other programmable data processing device generate instructions for implementing the processes in the flowchart and / or block diagram. Figure 1 A process or multiple processes and / or boxes Figure 1 A device that provides the functions specified in a block or multiple blocks.
[0136] These computer program instructions may also be stored in a computer-readable memory capable of directing a computer or other programmable data processing device to operate in a specific manner, so that the instructions stored in the computer-readable memory produce an article of manufacture comprising an instruction device, which implements the process Figure 1 A process or multiple processes and / or boxes Figure 1 A function specified in one or more boxes.
[0137] These computer program instructions can also be loaded onto a computer or other programmable data processing device so that a series of operating steps are executed on the computer or other programmable device to produce a computer-implemented process, thereby providing instructions for implementing the process. Figure 1 A process or multiple processes and / or boxes Figure 1 The steps for the functions specified in one or more boxes.
[0138] The specific embodiments described above further illustrate the objectives, technical solutions and beneficial effects of the present invention in detail. It should be understood that the above description is only a specific embodiment of the present invention and is not intended to limit the scope of protection of the present invention. Any modifications, equivalent substitutions, improvements, etc. made within the spirit and principles of the present invention should be included in the scope of protection of the present invention.
Claims
1. A fisheye image correction method for non-theatrical spherical center projection, characterized in that: include: Mapping the coordinate points of the fisheye image plane to the coordinate points of the virtual spherical space; The virtual spherical space coordinate point of the projector is set as a new virtual sphere center point, and the virtual spherical space coordinate point is transformed with the new virtual sphere center point as the center to obtain the transformed virtual spherical space coordinate point, wherein the virtual spherical space coordinate point of the projector is an arbitrary point in the three-dimensional space within the theater sphere; Mapping the transformed virtual spherical space coordinate points back to the fisheye image to obtain the corrected fisheye image plane coordinate points; Obtain pixel information of the corrected fisheye image plane coordinate points.
2. The method according to claim 1, characterized in that Mapping the fisheye image plane coordinate points to virtual spherical space coordinate points includes: Determine the origin of the fisheye image; Based on the origin, a virtual hemisphere is established to simulate a dome theater; Calculate the distance, azimuth and altitude from the center of the virtual hemisphere to any coordinate point on the fisheye image; The virtual spherical space coordinate point corresponding to the arbitrary coordinate point is calculated according to the distance, azimuth and altitude.
3. The method according to claim 2, characterized in that The following formula is used to calculate the distance, azimuth and altitude from the center of the virtual hemisphere to any coordinate point on the fisheye image, including: Among them, u and v are the values of two coordinate points of any coordinate point on the fisheye image; r, θ is the distance, azimuth and altitude; Calculating the virtual spherical space coordinate point corresponding to the arbitrary coordinate point according to the distance, azimuth and altitude, including: z=cos(θ) Among them, x, y, and z are the values of the three coordinate points of the virtual spherical space coordinate point corresponding to the arbitrary coordinate point.
4. The method according to claim 1, characterized in that The virtual spherical space coordinate point of the projector is set as a new virtual sphere center point, and the virtual spherical space coordinate point is transformed with the new virtual sphere center point as the center to obtain the transformed virtual spherical space coordinate point, including: Obtaining a first vector formed by a coordinate point of the projector in the virtual spherical space and an arbitrary coordinate point in the virtual spherical space; Determine a second vector, where the second vector starts from the center of the virtual spherical space and is parallel to the first vector; Determine the intersection point of the second vector on the virtual sphere; The intersection point is determined to be a transformed virtual spherical space coordinate point corresponding to the arbitrary coordinate point in the virtual spherical space.
5. The method according to claim 4, characterized in that The formula for the second vector is as follows: Among them, O is the center of the virtual spherical space, A' is the intersection point of the second vector on the virtual spherical surface, k is the scale parameter, L is the coordinate point of the projector in the virtual spherical space, A is an arbitrary coordinate point in the virtual spherical space, and x Len ,y Len 、z Len are the values of the three coordinate points of L, and x, y, z are the values of the three coordinate points of A'.
6. The method according to claim 1, characterized in that Map the transformed virtual spherical space coordinate points back to the fisheye image to obtain the corrected fisheye image plane coordinate points, including: Determine the altitude angle, radius and azimuth angle of the transformed virtual spherical space coordinate point according to the transformed virtual spherical space coordinate point; According to the altitude angle, radius and azimuth angle, the coordinate points of the corrected fisheye image plane are calculated.
7. The method according to claim 6, characterized in that The following formula is used to determine the altitude angle, radius and azimuth angle of the transformed virtual spherical space coordinate point according to the transformed virtual spherical space coordinate point: Among them, θ', r', are the altitude angle, radius and azimuth respectively; x', y' and z' are the values of the three coordinate points of the virtual spherical space after transformation; The following formula is used to calculate the coordinate points of the corrected fisheye image plane based on the altitude angle, radius and azimuth angle: Among them, u' and v' are the values of two coordinate points of the corrected fisheye image plane coordinate point.
8. The method according to claim 1, characterized in that The third coordinate point z of the projector in the virtual spherical space coordinate point Len The value of is less than zero; The method further comprises: Add a mask to the projector's fisheye image, fill the pixels larger than the fisheye image with black, and block the image over 180°.
9. A fisheye image correction device for non-theatrical spherical center projection, characterized in that: include: A first mapping module, used for mapping the fisheye image plane coordinate points into virtual spherical space coordinate points; A coordinate transformation module is used to set the virtual spherical space coordinate point of the projector as a new virtual sphere center point, and to transform the virtual spherical space coordinate point with the new virtual sphere center point as the center to obtain the transformed virtual spherical space coordinate point, wherein the virtual spherical space coordinate point of the projector is an arbitrary point in the three-dimensional space within the theater sphere; A second mapping module is used to map the transformed virtual spherical space coordinate points back to the fisheye image to obtain the corrected fisheye image plane coordinate points; The pixel information acquisition module is used to obtain the pixel information of the plane coordinate points of the corrected fisheye image.
10. A computer device comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, characterized in that: When the processor executes the computer program, the method according to any one of claims 1 to 8 is implemented.
11. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores a computer program, and when the computer program is executed by a processor, the method according to any one of claims 1 to 8 is implemented.
12. A computer program product, characterized in that The computer program product comprises a computer program, and when the computer program is executed by a processor, the method according to any one of claims 1 to 8 is implemented.
Citation Information
Patent Citations
Fisheye image correction method and device based on coordinate transformation
CN106780389A
Method for the rotation compensation of spherical images
WO2005101308A2
