WO2024002023A1 - Method and apparatus for generating panoramic stereoscopic image, and electronic device - Google Patents

Method and apparatus for generating panoramic stereoscopic image, and electronic device Download PDF

Info

Publication number
WO2024002023A1
WO2024002023A1 PCT/CN2023/102498 CN2023102498W WO2024002023A1 WO 2024002023 A1 WO2024002023 A1 WO 2024002023A1 CN 2023102498 W CN2023102498 W CN 2023102498W WO 2024002023 A1 WO2024002023 A1 WO 2024002023A1
Authority
WO
WIPO (PCT)
Prior art keywords
image
eye
longitude
latitude
splicing
Prior art date
Application number
PCT/CN2023/102498
Other languages
French (fr)
Chinese (zh)
Inventor
王果
姜文杰
蔡锦霖
Original Assignee
影石创新科技股份有限公司
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by 影石创新科技股份有限公司 filed Critical 影石创新科技股份有限公司
Publication of WO2024002023A1 publication Critical patent/WO2024002023A1/en

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N13/00Stereoscopic video systems; Multi-view video systems; Details thereof
    • H04N13/10Processing, recording or transmission of stereoscopic or multi-view image signals
    • H04N13/106Processing image signals
    • H04N13/156Mixing image signals
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N5/00Details of television systems
    • H04N5/222Studio circuitry; Studio devices; Studio equipment
    • H04N5/262Studio circuits, e.g. for mixing, switching-over, change of character of image, other special effects ; Cameras specially adapted for the electronic generation of special effects
    • H04N5/265Mixing

Definitions

  • Embodiments of the present invention relate to the field of image processing, and in particular, to a method, device and electronic device for generating a panoramic stereoscopic image.
  • Panoramic stereo images can record 360° images, giving users a strong sense of reality and three-dimensionality. Therefore, they are widely used in travel, live broadcast, There are wide application prospects in many industries such as film and television and real estate.
  • embodiments of the present invention provide a method, device and electronic device for generating a panoramic stereoscopic image, which are used to eliminate faults or ghosting phenomena in the splicing area of the panoramic stereoscopic image, so as to reduce the picture distortion of the panoramic stereoscopic image.
  • embodiments of the present invention provide a method for generating a panoramic stereoscopic image.
  • the method includes:
  • a panoramic stereoscopic image is generated based on the left eye panoramic image and the right eye panoramic image.
  • generating a left eye longitude and latitude image and a right eye longitude and latitude image corresponding to each fisheye image based on the acquired multiple fisheye images includes:
  • a left-eye view splicing block area is divided on the set left-eye blank longitude and latitude map.
  • the longitude and latitude map of the fisheye image is expanded according to the projection relationship between the fisheye image and the longitude and latitude map. , generate the left eye latitude and longitude image corresponding to the fisheye image;
  • a right-eye view splicing block area is divided on the set right-eye blank longitude and latitude map.
  • the longitude and latitude map of the fisheye image is expanded according to the projection relationship between the fisheye image and the longitude and latitude map. , generate the right eye latitude and longitude image corresponding to the fisheye image.
  • the left-eye view splicing block area is divided on the set left-eye blank longitude and latitude map, including:
  • the center point of the fisheye image is projected onto the blank latitude and longitude map of the left eye to form a projection of the center point, and the meridian where the projection of the center point is located is defined as the left eye Blank latitude and longitude map centerline;
  • the meridian with a set angle value to the left of the center line of the left eye blank longitude and latitude map from the left eye blank longitude and latitude map is used as the left eye viewing angle centerline;
  • the left-eye viewing angle center line is the viewing field angle center line
  • the image area with the set viewing angle is taken as the left-eye viewing angle splicing block area.
  • the right eye perspective splicing block area is divided on the set right eye blank longitude and latitude map, including:
  • the meridian with a set angle value to the right of the center line of the right eye blank longitude and latitude map from the right eye blank longitude and latitude map is used as the right eye viewing angle centerline;
  • the right eye viewing angle center line is the viewing field angle center line, and the image area with the set viewing angle is taken as the right eye viewing angle splicing block area.
  • performing image fusion on each of the first splicing areas to generate a left-eye perspective panoramic image includes:
  • the images of each first splicing area are fused to generate the left eye panoramic image.
  • performing image fusion on each of the second splicing areas to generate a right-eye perspective panoramic image includes:
  • the images of each second splicing area are fused to generate the right eye panoramic image.
  • the left-eye viewable picture and the right-eye viewable picture are synchronized to generate the panoramic stereoscopic image.
  • embodiments of the present invention provide a device for generating a panoramic stereoscopic image, including:
  • Fisheye image acquisition module used to acquire multiple fisheye images
  • the longitude and latitude image generation module is used to generate the left eye longitude and latitude image and the right eye longitude and latitude image corresponding to each fisheye image based on the multiple acquired fisheye images;
  • inventions of the present invention provide an electronic device.
  • the electronic device includes a plurality of fisheye lenses for acquiring fisheye images.
  • the electronic device further includes a memory and a processor, and the memory is used to store Information including program instructions, the processor is used to control the execution of the program instructions, and when the program instructions are loaded and executed by the processor, the panoramic stereoscopic image generation method in the first aspect or any possible implementation of the first aspect is implemented. A step of.
  • the left eye longitude and latitude image and the right eye longitude and latitude image corresponding to each fisheye image are generated, and the first splicing between the multiple left eye longitude and latitude images is extracted.
  • the panoramic image and the right-eye panoramic image generate a panoramic stereoscopic image, which can eliminate the faults or ghosting phenomena in the splicing area of the panoramic stereoscopic image, and can reduce the picture distortion of the panoramic stereoscopic image, thus improving the realism of the panoramic stereoscopic image.
  • Figures 3a to 3b are schematic diagrams of generating a left eye latitude and longitude image according to an embodiment of the present invention
  • Figure 6 is a schematic diagram of a presentation method of a panoramic stereoscopic image generated in an embodiment of the present invention.
  • the number of fisheye lenses in the electronic device can be set according to product design needs, as long as the field of view of all fisheye lenses is ensured (
  • the number of fisheye lenses can be 6 or 8.
  • Electronic equipment using 6 or 8 fisheye lenses can make the difference between n*FOV and 360° larger. , which is conducive to seamless splicing during the generation of panoramic stereoscopic images.
  • the electronic device includes but is not limited to a panoramic camera, and the electronic device can be applied to robots, vehicles, drones, etc.
  • Figure 1 is a flow chart of a method for generating a panoramic stereoscopic image provided by an embodiment of the present invention. As shown in Figure 1, the method includes:
  • Step 10 Based on the acquired multiple fisheye images, generate a left eye longitude and latitude image and a right eye longitude and latitude image corresponding to each fisheye image.
  • Each fisheye lens in the electronic device can capture a fisheye image, and multiple fisheye lenses can acquire multiple fisheye images, so that the electronic device can acquire multiple fisheye images through the multiple fisheye lenses set up. eye image.
  • the 6 fisheye lenses are fisheye lens No. 1 to fisheye lens No. 6 respectively.
  • the multiple fisheye images acquired include 6 fisheye images. Then this step It is necessary to generate the left eye longitude and latitude image and the right eye longitude and latitude image corresponding to each of the 6 fisheye images.
  • the projection relationship between the fisheye image and the latitude and longitude map can be established based on the calibration parameters of the fisheye lens, where the calibration parameters of the fisheye lens can include internal parameters and external parameters of the camera.
  • step 10 may specifically include: using the calibration parameters of the fisheye lens and generating a left eye longitude and latitude image and a right eye longitude and latitude image corresponding to each fisheye image based on the acquired multiple fisheye images.
  • Figure 2 is a flow chart of a method for generating a left eye longitude and latitude image and a right eye longitude and latitude image provided by an embodiment of the present invention.
  • step 10 may specifically include:
  • a corresponding left eye blank longitude and latitude map is set for each fisheye image.
  • the six set left eye blank longitude and latitude maps are respectively the left eye blank longitude and latitude map I1 to I6.
  • Figures 3a to 3b are schematic diagrams of generating a left eye longitude and latitude image according to an embodiment of the present invention.
  • a left eye perspective splicing block is divided on the set left eye blank longitude and latitude image.
  • Area specifically may include:
  • Step S11 According to the projection relationship between the fisheye image and the latitude and longitude map, project the center point of the fisheye image onto the blank latitude and longitude map of the left eye to form a projection of the center point, and define the meridian where the projection of the center point is located as the blank latitude and longitude map of the left eye. Centerline.
  • the center point of the fisheye image is projected onto the left eye blank longitude and latitude maps I1 to I6 respectively, and the center line of the left eye blank longitude and latitude map of each left eye blank longitude and latitude map I1 to I6 is obtained.
  • Step S12 Use the meridian with a set angle value to the left of the center line of the left-eye blank longitude and latitude map as the left-eye viewing angle center line.
  • Figures 3a and 3b take the left eye blank longitude and latitude map I1 and the left eye blank longitude and latitude map I2 as examples for description.
  • the meridian 30° to the left of the center line of the left-eye blank longitude and latitude map I1 is used as the left-eye viewing angle center line.
  • the meridian 30° to the left of the center line of the left-eye blank longitude and latitude map I2 is used as the left-eye viewing angle center line.
  • the meridian 30° to the left of the center line of the left eye blank longitude and latitude map I6 is used as the left eye viewing angle center line.
  • Step S13 In the left-eye blank longitude and latitude map, use the center line of the left eye viewing angle as the center line of the viewing angle and take the image area with the set viewing angle as the left eye viewing angle splicing block area.
  • the field of view angle ⁇ is set to be greater than 60°.
  • the field of view angle ⁇ is set to be greater than or equal to 80° and less than or equal to 100°.
  • the seamless splicing method requires adjacent splicing block areas to have a certain overlapping FOV in order to perform image matching and alignment operations during the splicing process. Therefore, The FOV must be greater than 60°. Only when it is greater than 60° can adjacent splicing block areas be guaranteed to have overlapping FOVs. For example, when the FOV of a splicing block is 80°, there is a 20° overlapping FOV between adjacent splicing block areas; when the FOV of a splicing block area is 100°, there is a 40° FOV between adjacent splicing block areas. Coincident FOV. The larger the overlapping FOV is, the more conducive it is to the realization of seamless splicing. As shown in Figure 3a and Figure 3b, taking the field of view angle ⁇ as 100° as an example.
  • the shape of the left-eye view splicing block area is a rectangle.
  • the shape of the left-eye view splicing block area can also adopt other shapes, as long as the splicing block area can cover the required FOV.
  • the boundary of the left-eye view splicing block area can be a curve.
  • the center line of the left eye perspective is the center line of the field of view, and an image with a set field of view angle of 100° is taken as the left eye view splicing block area L1.
  • the center line of the left-eye viewing angle is the center line of the viewing angle, and the image with the set viewing angle of 100° is used as the left-eye viewing angle splicing block area L2.
  • the center line of the left eye view angle is the center line of the field of view, and the image with a set field of view angle of 100° is used as the left eye view splicing block area. Domain L6.
  • the fisheye image is expanded into a latitude and longitude map in the left eye view splicing block area L1 to generate a left eye longitude and latitude image A1 corresponding to the fisheye image.
  • the longitude and latitude map of the fish-eye image is expanded in the left-eye view splicing block area L2, and a left-eye longitude and latitude image A2 corresponding to the fish-eye image is generated.
  • the longitude and latitude map of the fisheye image is expanded in the left eye view splicing block area L6 to generate the left eye longitude and latitude image A6 corresponding to the fisheye image.
  • Step S2 Divide the right eye perspective splicing block area on the set right eye blank latitude and longitude map. In the right eye perspective splicing block area, expand the longitude and latitude map of the fisheye image according to the projection relationship between the fisheye image and the longitude and latitude map. Generate the right eye latitude and longitude image corresponding to the fisheye image.
  • a corresponding right eye blank longitude and latitude map is set for each fisheye image.
  • the set six right eye blank longitude and latitude maps are respectively the right eye blank longitude and latitude map M1 to M6.
  • FIGS 3c to 3d are schematic diagrams of generating a right eye longitude and latitude image according to an embodiment of the present invention.
  • step S1 right eye perspective splicing blocks are divided on the set right eye blank longitude and latitude image.
  • Area specifically may include:
  • Step S21 According to the projection relationship between the fisheye image and the latitude and longitude map, project the center point of the fisheye image onto the blank latitude and longitude map of the right eye to form a projection of the center point, and define the meridian where the projection of the center point is located as the blank latitude and longitude map of the right eye. Centerline.
  • Step S22 Use the meridian with a set angle value to the right of the center line of the blank latitude and longitude map of the right eye as the center line of the right eye viewing angle.
  • Figures 3c and 3d take the right eye blank longitude and latitude map M1 and the right eye blank longitude and latitude map M2 as examples for description.
  • the longitude 30° to the right of the center line of the right eye blank longitude and latitude map M1 is used as the right eye viewing angle center line.
  • place the right eye The meridian 30° to the right of the center line of the blank longitude and latitude map M2 of the right eye's blank longitude and latitude map is used as the center line of the right eye's visual angle.
  • the longitude 30° to the right of the center line of the right eye's blank longitude and latitude map M6 is used as the center line of the right eye's viewing angle.
  • Step S23 In the right-eye blank longitude and latitude map, use the center line of the right eye viewing angle as the center line of the viewing angle and take the image area with the set viewing angle as the right eye viewing angle splicing block area.
  • the field of view angle ⁇ is set to be greater than 60°.
  • the field of view angle ⁇ is set to be greater than or equal to 80° and less than or equal to 100°.
  • the seamless splicing method requires adjacent splicing block areas to have a certain overlapping FOV in order to perform image matching and alignment operations during the splicing process. Therefore, The FOV must be greater than 60°. Only when it is greater than 60° can adjacent splicing block areas be guaranteed to have overlapping FOVs. For example, when the FOV of a splicing block is 80°, there is a 20° overlapping FOV between adjacent splicing block areas; when the FOV of a splicing block area is 100°, there is a 40° FOV between adjacent splicing block areas. Coincident FOV. The larger the overlapping FOV is, the more conducive it is to the realization of seamless splicing. As shown in Figure 3a and Figure 3b, taking the field of view angle ⁇ as 100° as an example.
  • the shape of the right-eye view splicing block area is a rectangle.
  • the shape of the right-eye view splicing block area can also adopt other shapes, as long as the splicing block area can cover the required FOV.
  • the boundary of the right-eye view splicing block area can be a curve.
  • the center line of the right eye viewing angle is the center line of the field of view, and an image with a set field of view angle of 100° is used as the right eye viewing angle splicing block area R1.
  • the center line of the right eye viewing angle is the center line of the field of view, and an image with a set field of view angle of 100° is used as the right eye viewing angle splicing block area R2.
  • the center line of the right eye viewing angle is the center line of the field of view, and an image with a set field of view angle of 100° is taken as the right eye viewing angle splicing block area R6.
  • the fish-eye image is expanded into a latitude and longitude map in the right-eye view splicing block area R1 to generate a right-eye longitude and latitude image B1 corresponding to the fish-eye image.
  • the longitude and latitude map of the fisheye image is expanded in the right eye view splicing block area R2' to generate the right eye longitude and latitude corresponding to the fisheye image.
  • Image B2 the longitude and latitude map of the fisheye image is expanded in the right eye view splicing block area M6 to generate the right eye longitude and latitude image B6 corresponding to the fisheye image.
  • Step 12 Extract first splicing areas between multiple left-eye longitude and latitude images to obtain multiple first splicing areas, and perform image fusion on each first splicing area to generate a left-eye panoramic image.
  • step 12 may specifically include:
  • Step 122 Extract first splicing areas between multiple left-eye longitude and latitude images to obtain multiple first splicing areas.
  • the first splicing areas between n left-eye longitude and latitude images A1-An are respectively extracted to obtain N first splicing areas S1-Sn.
  • step 124 may specifically include:
  • FIG. 4a to 4b are schematic diagrams of projecting the first splicing area onto the unit sphere in the embodiment of the present invention, as shown in FIG. 4b.
  • FIG. 4b shows the first splicing area Sn.
  • the first splicing area is The area Sn is projected onto the unit sphere to obtain the first area Jn to be spliced on the unit sphere.
  • Step 1244 Map the plurality of first areas to be spliced on the unit sphere to the cylinder surfaces corresponding to the unit sphere respectively, to obtain cylinder areas corresponding to the plurality of first areas to be spliced.
  • Step 1246 Calculate the optical flow field between the left image and the right image of the cylindrical area corresponding to the plurality of first regions to be spliced.
  • the optical flow field between the left image and the right image of the N cylindrical regions T1-Tn can be calculated respectively.
  • calculating the optical flow field between the left image and the right image of the N cylindrical regions T1-Tn may specifically include:
  • the optical flow field should be smaller as it is closer to the left boundary of the cylindrical area; while for the right image of the cylindrical area, it should be closer to the right boundary of the cylindrical area.
  • the smaller the light field value therefore, set two weight values ⁇ and ⁇ , where ⁇ [0,1] and ⁇ [0,1].
  • the ⁇ value gradually increases from left to right along with the area of the left image; in Formula 2, the ⁇ value gradually decreases along with the area of the right image from left to right.
  • Step 1248 Fusion of the images of each first splicing area according to the optical flow field between the left image and the right image of each cylindrical area to generate a left-eye panoramic image.
  • the optical flow field between the left image and the right image of the cylindrical area can be used to fuse the images in the first splicing area of the left eye longitude and latitude images to achieve seamless splicing of the first splicing area. , thus achieving seamless splicing of left eye latitude and longitude images.
  • step 1248 may specifically include:
  • Step A1 On the longitude and latitude map, according to the distance between the pixels in the area and the left and right boundaries of the area distance, adaptively adjust the weight value ⁇ ' corresponding to the left image and the weight value ⁇ ' corresponding to the right image when the left image and the right image are fused.
  • Step A2 According to the projection relationship between the cylinder and the longitude and latitude image, back-project the optical flow field between the left image and the right image of the cylinder area onto the longitude and latitude image, and obtain the left image and the first splicing area of the left eye longitude and latitude image. Optical flow field between right images.
  • the optical flow field between the left image and the right image in the cylindrical area may include the optical flow field f L ⁇ R (x, y) from the left image to the right image and the optical flow field f R ⁇ from the right image to the left image.
  • L (x, y) then after back-projection, the optical flow field between the left image and the right image in the first splicing area of the left eye longitude and latitude image includes the optical flow field f' from the left image to the right image L ⁇ R (x, y) and the optical flow field f' R ⁇ L (x, y) from the right image to the left image.
  • Step A3 According to the weight value ⁇ ' corresponding to the left image and the weight value ⁇ ' corresponding to the right image and the optical flow field between the left image and the right image of the first splicing area, use Formula 3 to calculate the left image of the first splicing area.
  • the image S L and the right image S R are image fused, and the fused fusion area S B is obtained to obtain the left eye panoramic image.
  • S B (x, y) represents the value of the pixel point (x, y) in the fusion area S B
  • S L (x, y) represents the value of the pixel point (x, y) in the left image S L
  • S R (x,y) represents the value of the pixel point (x,y) in the right image S R
  • ⁇ ' is the weight value corresponding to the left image
  • ⁇ ' is the weight value corresponding to the right image
  • the corresponding pixel value of the left image should have a greater weight, so the ⁇ ' value changes from large to small as the distance from the left boundary of S L increases.
  • the corresponding pixel value of the right image should have a greater weight, so the ⁇ ' value changes from large to small as the distance from the right boundary of SR increases.
  • the left-eye panoramic image is obtained, and the obtained left-eye panoramic image is a seamlessly spliced longitude and latitude map.
  • steps A1 to A3 first the optical flow field between the left image and the right image is back-projected onto the latitude and longitude image, and then the image of the first area to be spliced is directly performed on the latitude and longitude image. Fusion to obtain the left eye panoramic image.
  • step 1248 may specifically include:
  • Step B1 According to the distance between the pixels of the cylindrical area and the left and right boundaries of the cylindrical area, adaptively adjust the weight value ⁇ corresponding to the left image and the weight value ⁇ corresponding to the right image when the left image and the right image are fused. .
  • Step B2 In the cylindrical area, according to the weight value ⁇ corresponding to the left image and the weight value ⁇ corresponding to the right image and the optical flow field between the left image and the right image of the first to-be-stitched area, use Formula 4 to calculate the first The left image TL and the right image TR of the area to be spliced are image fused to obtain the fused fusion area TB .
  • T B (x, y) ⁇ ′ ⁇ T L (x+f′ x(L ⁇ R) (x, y), y+f′ y(L ⁇ R) (x, y)) + ⁇ ′ ⁇ T R (x+f′ x(R ⁇ L) (x, y), y+f′ y(R ⁇ L) (x, y))
  • T B (x, y) represents the value of the pixel point (x, y) in the fusion area T B
  • T L (x, y) represents the value of the pixel point in the left image T L
  • T R (x, y) Represents the value of the pixel point in the right image T R
  • is the weight value corresponding to the left image
  • is the weight value corresponding to the right image, ⁇ [0, 1], ⁇ [0, 1].
  • the corresponding pixel value of the left image should have a greater weight, so the ⁇ value changes from large to small as the distance from the left boundary of the cylindrical area increases.
  • the corresponding pixel value of the right image should have a greater weight, so the ⁇ value changes from large to small as the distance from the right boundary of the cylindrical area increases.
  • the images of each first region to be spliced are fused respectively until all the images of the first regions to be spliced are fused and all the fusion regions T B are obtained.
  • Step B3 According to the projection relationship between the cylinder and the longitude and latitude image, back-project all the fusion areas T B into the longitude and latitude image to obtain the left eye panoramic image.
  • the left-eye panoramic image obtained after back-projecting it onto the latitude and longitude map is also seamless.
  • the image of the first region to be spliced is first fused on the cylinder, and then the fused region is back-projected onto the longitude and latitude image to achieve the image of the first splicing region. Fusion is performed to obtain the left eye panoramic image.
  • Step 14 Extract second splicing areas between multiple right eye latitude and longitude images to obtain multiple second splicing areas, and perform image fusion on each second splicing area to generate a right eye panoramic image.
  • step 14 may specifically include:
  • Step 142 Extract second splicing areas between multiple right eye longitude and latitude images to obtain multiple second splicing areas.
  • Step 144 Perform image fusion on each second splicing area to generate a right-eye panoramic image.
  • step 144 may specifically include:
  • Step 1442 Project the plurality of second splicing areas onto the unit sphere to obtain multiple second areas to be spliced on the unit sphere.
  • Step 1444 Map the plurality of second regions to be spliced on the unit sphere to the cylinder surfaces corresponding to the unit sphere, respectively, to obtain cylinder regions corresponding to the plurality of second regions to be spliced.
  • Step 1446 Calculate the optical flow field between the left image and the right image of the cylindrical area corresponding to the plurality of second areas to be spliced.
  • Step 1448 Fusion of the images of each second splicing area according to the optical flow field between the left image and the right image of each cylindrical area to generate a right-eye panoramic image.
  • Step 16 Generate a panoramic stereoscopic image based on the left eye panoramic image and the right eye panoramic image.
  • step 16 may specifically include:
  • Step 161 Reproject the left-eye panoramic image to generate a left-eye visible picture.
  • the left-eye viewable picture is a panoramic stereoscopic left-eye viewable picture, and the left-eye viewable picture is an image including the left eye's visible range.
  • Step 162 Reproject the right-eye panoramic image to generate a left-eye viewable image.
  • the right-eye viewable picture is a panoramic stereoscopic right-eye viewable picture, and the right-eye viewable picture includes images within the right eye's visible range.
  • the left-eye panoramic image and the right-eye panoramic image are re-projected according to the orientation of the user's eyes to generate left-eye visible images and right-eye visible images respectively.
  • Step 163 Synchronize the left eye viewable image and the right eye viewable image to generate a stereoscopic panoramic image.
  • Figure 6 is a schematic diagram of a presentation method of a panoramic stereoscopic image generated in an embodiment of the present invention.
  • the left window is the left eye viewable picture obtained by reprojecting the left eye panoramic image
  • the right window is the right eye
  • the panoramic image is re-projected and the right-eye viewable image is obtained.
  • the pictures in the left and right windows have real parallax, thus achieving a three-dimensional display effect.
  • the pictures in the left and right windows can change in real time according to the direction of the user's eyes, and can present pictures from every angle in the original left-eye panoramic image and right-eye panoramic image, thereby achieving a panoramic three-dimensional display effect.
  • the left eye longitude and latitude image and the right eye longitude and latitude image corresponding to each fisheye image are generated, and the first splicing between the multiple left eye longitude and latitude images is extracted.
  • the panoramic image and the right-eye panoramic image generate a panoramic stereoscopic image, which can eliminate the faults or ghosting phenomena in the splicing area of the panoramic stereoscopic image, and can reduce the picture distortion of the panoramic stereoscopic image, thus improving the realism of the panoramic stereoscopic image.
  • FIG. 7 is a schematic structural diagram of a panoramic stereoscopic image generation device provided by an embodiment of the present invention.
  • the device includes: a fisheye image acquisition module 11, a latitude and longitude image generation module 12, a fusion module 13 and a generation module. 14.
  • the fisheye image acquisition module 11 may include multiple fisheye lenses.
  • the fisheye image acquisition module 11 is used to acquire multiple fisheye images.
  • the longitude and latitude image generation module 12 is used to generate a left eye longitude and latitude image and a right eye longitude and latitude image corresponding to each fisheye image based on the multiple acquired fisheye images;
  • the fusion module 13 is used to extract the third image between the multiple left eye longitude and latitude images.
  • a splicing area is used to obtain multiple first splicing areas, and image fusion is performed on each of the first splicing areas to generate a left eye panoramic image; second splicing areas between multiple right eye longitude and latitude images are extracted to obtain multiple second splicing areas. area, perform image fusion on each of the second splicing areas to generate a right-eye panoramic image;
  • the generating module 14 is configured to generate a panoramic stereoscopic image according to the left-eye panoramic image and the right-eye panoramic image.
  • the longitude and latitude image generation module 12 is specifically used to divide the left eye view splicing block area on the set left eye blank longitude and latitude map. In the left eye view splicing block area, the fisheye image is converted into the longitude and latitude map.
  • the longitude and latitude map of the fisheye image is expanded to generate the right eye longitude and latitude image corresponding to the fisheye image.
  • the latitude and longitude image generation module 12 is specifically configured to project the center point of the fisheye image onto the blank latitude and longitude map of the left eye to form a projection of the center point based on the projection relationship between the fisheye image and the latitude and longitude map.
  • the meridian where the projection of the center point is located is defined as the center line of the left eye blank longitude and latitude map; the meridian with a set angle value to the left of the left eye blank longitude and latitude map center line of the left eye blank longitude and latitude map is used as the left eye viewing angle center line; in the left eye blank longitude and latitude map, the left eye viewing angle center line is the viewing field angle center line, and the image area with the set viewing angle is taken as the left eye viewing angle splicing block area.
  • the latitude and longitude image generation module 12 is specifically configured to project the center point of the fisheye image onto the blank latitude and longitude map of the right eye to form a projection of the center point based on the projection relationship between the fisheye image and the latitude and longitude map.
  • the meridian where the projection of the center point is located is defined as the center line of the right eye blank longitude and latitude map; the meridian with a set angle value to the right of the right eye blank latitude and longitude map from the right eye blank longitude and latitude map is used as the right eye viewing angle center line; in the right eye blank longitude and latitude map, the right eye viewing angle center line is the viewing field angle center line, and the image area with the set viewing angle is taken as the right eye viewing angle splicing block area.
  • the fusion module 13 is specifically used to project multiple first splicing areas onto the unit sphere to obtain multiple first areas to be spliced on the unit sphere; Map them to the cylinder corresponding to the unit sphere respectively to obtain the cylinder areas corresponding to the multiple first areas to be spliced; calculate the optical flow field between the left image and the right image of the cylinder areas corresponding to the multiple first areas to be spliced. ; According to the optical flow field between the left image and the right image of each cylindrical area, the images of each first splicing area are fused to generate the left eye panoramic image.
  • the fusion module 13 is specifically used to project multiple second splicing areas onto the unit sphere to obtain multiple second areas to be spliced on the unit sphere; Map them to the cylinder corresponding to the unit sphere respectively, and obtain the cylinders corresponding to multiple second areas to be spliced. area; calculate the optical flow field between the left image and the right image of the cylindrical area corresponding to the multiple second areas to be spliced; according to the optical flow field between the left image and the right image of each cylindrical area, for each The images of the second splicing area are fused to generate the right eye panoramic image.
  • the generation module 14 is specifically configured to re-project the left-eye panoramic image to generate the left-eye viewable picture; re-project the right-eye panoramic image to generate the right-eye viewable picture. Picture; synchronize the left-eye visible picture and the right-eye visible picture to generate the panoramic stereoscopic image.
  • the panoramic stereoscopic image is generated by the panoramic stereoscopic image generating device in the embodiment of the present invention, which can eliminate the faults or ghosting phenomena that appear in the splicing area of the panoramic stereoscopic image, and can reduce the appearance of the panoramic stereoscopic image. Distortion, thus improving the realism of panoramic stereoscopic images.
  • An embodiment of the present invention provides an electronic device.
  • the electronic device includes a plurality of fisheye lenses for acquiring fisheye images.
  • the electronic device also includes a memory and a processor.
  • the memory is used to store information including program instructions, and the processor is used to control Execution of the program instructions.
  • the program instructions are loaded and executed by the processor, each step of the embodiment of the above-mentioned method for generating a panoramic stereoscopic image is implemented.
  • the embodiment of the above-mentioned method for generating a panoramic stereoscopic image please refer to the embodiment of the above-mentioned method for generating a panoramic stereoscopic image.
  • the electronic device 30 includes, but is not limited to, a processor 31 and a memory 32 .
  • FIG. 8 is only an example of the electronic device 30 and does not constitute a limitation on the electronic device 30.
  • the electronic device 30 may also include input and output devices, network access devices, buses, etc.
  • the so-called processor 31 can be a central processing unit (Central Processing Unit, CPU), or other general-purpose processor, digital signal processor (Digital Signal Processor, DSP), application specific integrated circuit (Application Specific Integrated Circuit, ASIC), Field-Programmable Gate Array (FPGA) or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components, etc.
  • a general-purpose processor may be a microprocessor or the processor may be any conventional processor, etc.
  • the disclosed systems, devices and methods can be implemented in other ways.
  • the device embodiments described above are only illustrative.
  • the division of the units is only a logical function division. In actual implementation, there may be other division methods.
  • multiple units or components may be combined. Either it can be integrated into another system, or some features can be ignored, or not implemented.
  • the coupling or direct coupling or communication connection between each other shown or discussed may be through some interfaces, and the indirect coupling or communication connection of the devices or units may be in electrical, mechanical or other forms.
  • the units described as separate components may or may not be physically separate.
  • the components shown as units may or may not be physical units, that is, they may be located in one place, or they may not be physically separated. Can be distributed to multiple network units. Some or all of the units can be selected according to actual needs to achieve the purpose of the solution of this embodiment.
  • each functional unit in various embodiments of the present invention can be integrated into one processing unit, or each unit can exist physically alone, or two or more units can be integrated into one unit.
  • the above integrated unit can be implemented in the form of hardware or in the form of hardware plus software functional units.
  • the above-mentioned integrated unit implemented in the form of a software functional unit can be stored in a computer-readable storage medium.
  • the above-mentioned software functional unit is stored in a storage medium and includes a number of instructions to cause a computer device (which can be a personal computer, server, or network device, etc.) or processor (Processor) to execute the methods described in various embodiments of the present invention. Some steps.
  • the aforementioned storage media include: U disk, mobile hard disk, read-only memory (ROM), random access memory (Random Access Memory, RAM), magnetic disk or optical disk and other media that can store program code. .

Landscapes

  • Engineering & Computer Science (AREA)
  • Multimedia (AREA)
  • Signal Processing (AREA)
  • Image Processing (AREA)
  • Testing, Inspecting, Measuring Of Stereoscopic Televisions And Televisions (AREA)
  • Stereoscopic And Panoramic Photography (AREA)

Abstract

Provided in the embodiments of the present invention are a method and apparatus for generating a panoramic stereoscopic image, and an electronic device. The method comprises: according to a plurality of acquired fisheye images, generating a left-eye longitude and latitude image and a right-eye longitude and latitude image, which correspond to each fisheye image; extracting first stitching areas between a plurality of left-eye longitude and latitude images, so as to obtain a plurality of first stitching areas, and performing image fusion on the first stitching areas, so as to generate a left-eye panoramic image; extracting second stitching areas between a plurality of right-eye longitude and latitude images, so as to obtain a plurality of second stitching areas, and performing image fusion on the second stitching areas, so as to generate a right-eye panoramic image; and generating a panoramic stereoscopic image according to the left-eye panoramic image and the right-eye panoramic image, thereby eliminating a fault or ghosting phenomenon.

Description

全景立体图像的生成方法、装置和电子设备Panoramic stereoscopic image generation method, device and electronic equipment 【技术领域】【Technical field】
本发明实施例涉及图像处理领域,尤其涉及一种全景立体图像的生成方法、装置和电子设备。Embodiments of the present invention relate to the field of image processing, and in particular, to a method, device and electronic device for generating a panoramic stereoscopic image.
【背景技术】【Background technique】
随着3D立体视觉技术和全景相机的发展,用户对3D立体视觉体验要求不断提升,全景立体图像可以记录360°的图像,给用户带来强烈的真实感和立体感,因此在旅游、直播、影视、房地产等多个行业存在广泛的应用前景。With the development of 3D stereo vision technology and panoramic cameras, users' requirements for 3D stereo vision experience continue to increase. Panoramic stereo images can record 360° images, giving users a strong sense of reality and three-dimensionality. Therefore, they are widely used in travel, live broadcast, There are wide application prospects in many industries such as film and television and real estate.
目前,全景立体图像大多是通过多幅图像拼接得到,在图像的拼接区域画面存在较为明显的断层或重影现象,此现象在拼接区域画面存在近景的情况下尤为明显,使得全景立体图像出现画面失真,从而降低了全景立体图像的真实感。At present, panoramic stereoscopic images are mostly obtained by splicing multiple images. There are obvious faults or ghosting phenomena in the splicing area of the image. This phenomenon is especially obvious when there is a close-up view in the splicing area, causing the panoramic stereoscopic image to appear. Distortion, thereby reducing the realism of the panoramic stereoscopic image.
【发明内容】[Content of the invention]
有鉴于此,本发明实施例提供了一种全景立体图像的生成方法、装置和电子设备,用于消除全景立体图像的拼接区域出现的断层或重影现象,以减少全景立体图像的画面失真。In view of this, embodiments of the present invention provide a method, device and electronic device for generating a panoramic stereoscopic image, which are used to eliminate faults or ghosting phenomena in the splicing area of the panoramic stereoscopic image, so as to reduce the picture distortion of the panoramic stereoscopic image.
第一方面,本发明实施例提供了一种全景立体图像的生成方法,所述方法包括:In a first aspect, embodiments of the present invention provide a method for generating a panoramic stereoscopic image. The method includes:
根据获取的多个鱼眼图像,生成每个鱼眼图像对应的左眼经纬度图像和右眼经纬度图像;Based on the multiple acquired fisheye images, generate the left eye longitude and latitude image and the right eye longitude and latitude image corresponding to each fisheye image;
提取多个左眼经纬度图像之间的第一拼接区域得到多个第一拼接区域,对每个所述第一拼接区域进行图像融合以生成左眼全景图像; Extract first splicing areas between multiple left-eye longitude and latitude images to obtain multiple first splicing areas, and perform image fusion on each of the first splicing areas to generate a left-eye panoramic image;
提取多个右眼经纬度图像之间的第二拼接区域得到多个第二拼接区域,对每个所述第二拼接区域进行图像融合以生成右眼全景图像;Extract second splicing areas between multiple right eye latitude and longitude images to obtain multiple second splicing areas, and perform image fusion on each of the second splicing areas to generate a right eye panoramic image;
根据所述左眼全景图像和所述右眼全景图像,生成全景立体图像。A panoramic stereoscopic image is generated based on the left eye panoramic image and the right eye panoramic image.
在一种可能的实现方式中,所述根据获取的多个鱼眼图像,生成每个鱼眼图像对应的左眼经纬度图像和右眼经纬度图像,包括:In a possible implementation, generating a left eye longitude and latitude image and a right eye longitude and latitude image corresponding to each fisheye image based on the acquired multiple fisheye images includes:
在设置的左眼空白经纬度图上划分出左眼视角拼接块区域,在所述左眼视角拼接块区域中,根据鱼眼图像到经纬度图的投影关系,对所述鱼眼图像进行经纬度图展开,生成所述鱼眼图像对应的左眼经纬度图像;A left-eye view splicing block area is divided on the set left-eye blank longitude and latitude map. In the left-eye view splicing block area, the longitude and latitude map of the fisheye image is expanded according to the projection relationship between the fisheye image and the longitude and latitude map. , generate the left eye latitude and longitude image corresponding to the fisheye image;
在设置的右眼空白经纬度图上划分出右眼视角拼接块区域,在所述右眼视角拼接块区域中,根据鱼眼图像到经纬度图的投影关系,对所述鱼眼图像进行经纬度图展开,生成所述鱼眼图像对应的右眼经纬度图像。A right-eye view splicing block area is divided on the set right-eye blank longitude and latitude map. In the right-eye view splicing block area, the longitude and latitude map of the fisheye image is expanded according to the projection relationship between the fisheye image and the longitude and latitude map. , generate the right eye latitude and longitude image corresponding to the fisheye image.
在一种可能的实现方式中,所述在设置的左眼空白经纬度图上划分出左眼视角拼接块区域,包括:In a possible implementation, the left-eye view splicing block area is divided on the set left-eye blank longitude and latitude map, including:
根据鱼眼图像到经纬度图的投影关系,将所述鱼眼图像的中心点投影到所述左眼空白经纬度图上形成中心点的投影,将所述中心点的投影所在的经线定义为左眼空白经纬度图中心线;According to the projection relationship between the fisheye image and the latitude and longitude map, the center point of the fisheye image is projected onto the blank latitude and longitude map of the left eye to form a projection of the center point, and the meridian where the projection of the center point is located is defined as the left eye Blank latitude and longitude map centerline;
将所述左眼空白经纬度图的距离左眼空白经纬度图中心线左侧设定角度值的经线作为左眼视角中心线;The meridian with a set angle value to the left of the center line of the left eye blank longitude and latitude map from the left eye blank longitude and latitude map is used as the left eye viewing angle centerline;
在所述左眼空白经纬度图中以所述左眼视角中心线为视场角中心线取设定视场角的图像区域作为所述左眼视角拼接块区域。In the left-eye blank longitude and latitude map, the left-eye viewing angle center line is the viewing field angle center line, and the image area with the set viewing angle is taken as the left-eye viewing angle splicing block area.
在一种可能的实现方式中,所述在设置的右眼空白经纬度图上划分出右眼视角拼接块区域,包括:In a possible implementation, the right eye perspective splicing block area is divided on the set right eye blank longitude and latitude map, including:
根据鱼眼图像到经纬度图的投影关系,将所述鱼眼图像的中心点投影到所述右眼空白经纬度图上形成中心点的投影,将所述中心点的投影所在的经线定义为右眼空白经纬度图中心线;According to the projection relationship between the fisheye image and the longitude and latitude map, the center point of the fisheye image is projected onto the blank longitude and latitude map of the right eye to form a projection of the center point, and the meridian where the projection of the center point is located is defined as the right eye Blank latitude and longitude map centerline;
将所述右眼空白经纬度图的距离右眼空白经纬度图中心线右侧设定角度值的经线作为右眼视角中心线; The meridian with a set angle value to the right of the center line of the right eye blank longitude and latitude map from the right eye blank longitude and latitude map is used as the right eye viewing angle centerline;
在所述右眼空白经纬度图中以所述右眼视角中心线为视场角中心线取设定视场角的图像区域作为所述右眼视角拼接块区域。In the right eye blank latitude and longitude map, the right eye viewing angle center line is the viewing field angle center line, and the image area with the set viewing angle is taken as the right eye viewing angle splicing block area.
在一种可能的实现方式中,所述对每个所述第一拼接区域进行图像融合以生成左眼视角全景图像,包括:In a possible implementation, performing image fusion on each of the first splicing areas to generate a left-eye perspective panoramic image includes:
将多个第一拼接区域投影到单位球面上,得到单位球面上的多个第一待拼接区域;Project multiple first splicing areas onto the unit sphere to obtain multiple first areas to be spliced on the unit sphere;
将单位球面上的多个第一待拼接区域分别映射到单位球面对应的柱面上,得到多个第一待拼接区域对应的柱面区域;Map the multiple first areas to be spliced on the unit sphere to the cylinder corresponding to the unit sphere respectively to obtain the cylinder areas corresponding to the multiple first areas to be spliced;
计算多个第一待拼接区域对应的柱面区域的左图像和右图像之间的光流场;Calculate the optical flow field between the left image and the right image of the cylindrical area corresponding to the plurality of first areas to be spliced;
根据每个柱面区域的左图像和右图像之间的光流场,对每个所述第一拼接区域的图像进行融合,以生成所述左眼全景图像。According to the optical flow field between the left image and the right image of each cylindrical area, the images of each first splicing area are fused to generate the left eye panoramic image.
在一种可能的实现方式中,所述对每个所述第二拼接区域进行图像融合以生成右眼视角全景图像,包括:In a possible implementation, performing image fusion on each of the second splicing areas to generate a right-eye perspective panoramic image includes:
将多个第二拼接区域投影到单位球面上,得到单位球面上的多个第二待拼接区域;Project multiple second splicing areas onto the unit sphere to obtain multiple second areas to be spliced on the unit sphere;
将单位球面上的多个第二待拼接区域分别映射到单位球面对应的柱面上,得到多个第二待拼接区域对应的柱面区域;Map the multiple second areas to be spliced on the unit sphere to the cylinder corresponding to the unit sphere respectively, to obtain the cylinder areas corresponding to the multiple second areas to be spliced;
计算多个第二待拼接区域对应的柱面区域的左图像和右图像之间的光流场;Calculate the optical flow field between the left image and the right image of the cylindrical area corresponding to the multiple second areas to be spliced;
根据每个柱面区域的左图像和右图像之间的光流场,对每个所述第二拼接区域的图像进行融合,以生成所述右眼全景图像。According to the optical flow field between the left image and the right image of each cylindrical area, the images of each second splicing area are fused to generate the right eye panoramic image.
在一种可能的实现方式中,所述根据所述左眼全景图像和所述右眼全景图像,生成全景立体图像,包括:In a possible implementation, generating a panoramic stereoscopic image based on the left eye panoramic image and the right eye panoramic image includes:
将所述左眼全景图像进行重投影,生成所述左眼可视画面;Reproject the left-eye panoramic image to generate the left-eye visible picture;
将所述右眼全景图像进行重投影,生成所述右眼可视画面;Reproject the right-eye panoramic image to generate the right-eye visible picture;
将所述左眼可视画面和所述右眼可视画面进行同步处理,生成所述全景立体图像。The left-eye viewable picture and the right-eye viewable picture are synchronized to generate the panoramic stereoscopic image.
第二方面,本发明实施例提供了一种全景立体图像的生成装置,包括: In a second aspect, embodiments of the present invention provide a device for generating a panoramic stereoscopic image, including:
鱼眼图像获取模块,用于获取多个鱼眼图像;Fisheye image acquisition module, used to acquire multiple fisheye images;
经纬度图像生成模块,用于根据获取的多个鱼眼图像,生成每个鱼眼图像对应的左眼经纬度图像和右眼经纬度图像;The longitude and latitude image generation module is used to generate the left eye longitude and latitude image and the right eye longitude and latitude image corresponding to each fisheye image based on the multiple acquired fisheye images;
融合模块,用于提取多个左眼经纬度图像之间的第一拼接区域得到多个第一拼接区域,对每个所述第一拼接区域进行图像融合以生成左眼全景图像;提取多个右眼经纬度图像之间的第二拼接区域得到多个第二拼接区域,对每个所述第二拼接区域进行图像融合以生成右眼全景图像;The fusion module is used to extract the first splicing area between multiple left-eye longitude and latitude images to obtain multiple first splicing areas, perform image fusion on each of the first splicing areas to generate a left-eye panoramic image; extract multiple right-eye panoramic images. A plurality of second splicing areas are obtained from the second splicing areas between the eye longitude and latitude images, and image fusion is performed on each of the second splicing areas to generate a right eye panoramic image;
生成模块,用于根据所述左眼全景图像和所述右眼全景图像,生成全景立体图像。A generating module, configured to generate a panoramic stereoscopic image based on the left eye panoramic image and the right eye panoramic image.
第三方面,本发明实施例提供了一种电子设备,所述电子设备包括多个用于获取鱼眼图像的鱼眼镜头;所述电子设备还包括存储器和处理器,所述存储器用于存储包括程序指令的信息,所述处理器用于控制程序指令的执行,所述程序指令被处理器加载并执行时实现第一方面或第一方面任一可能的实现方式中的全景立体图像的生成方法的步骤。In a third aspect, embodiments of the present invention provide an electronic device. The electronic device includes a plurality of fisheye lenses for acquiring fisheye images. The electronic device further includes a memory and a processor, and the memory is used to store Information including program instructions, the processor is used to control the execution of the program instructions, and when the program instructions are loaded and executed by the processor, the panoramic stereoscopic image generation method in the first aspect or any possible implementation of the first aspect is implemented. A step of.
第四方面,本发明实施例提供了一种存储介质,所述存储介质包括存储的程序,其中,在所述程序运行时控制所存储介质所在电子设备执行第一方面或第一方面任一可能的全景立体图像的生成方法的步骤。In a fourth aspect, embodiments of the present invention provide a storage medium that includes a stored program, wherein when the program is running, the electronic device where the stored medium is located is controlled to execute the first aspect or any possibility of the first aspect. The steps of the method for generating panoramic stereoscopic images.
本发明实施例提供的技术方案中,根据获取的多个鱼眼图像,生成每个鱼眼图像对应的左眼经纬度图像和右眼经纬度图像,提取多个左眼经纬度图像之间的第一拼接区域,通过对第一拼接区域进行图像融合生成左眼全景图像,提取多个右眼经纬度图像之间的第二拼接区域,通过对第二拼接区域进行图像融合生成右眼全景图像,根据左眼全景图像和右眼全景图像生成全景立体图像,可消除全景立体图像的拼接区域出现的断层或重影现象,能够减少全景立体图像的画面失真,从而提高了全景立体图像的真实感。 In the technical solution provided by the embodiment of the present invention, according to the multiple acquired fisheye images, the left eye longitude and latitude image and the right eye longitude and latitude image corresponding to each fisheye image are generated, and the first splicing between the multiple left eye longitude and latitude images is extracted. area, generate a left eye panoramic image by image fusion of the first splicing area, extract the second splicing area between multiple right eye longitude and latitude images, generate a right eye panoramic image by image fusion of the second splicing area, according to the left eye The panoramic image and the right-eye panoramic image generate a panoramic stereoscopic image, which can eliminate the faults or ghosting phenomena in the splicing area of the panoramic stereoscopic image, and can reduce the picture distortion of the panoramic stereoscopic image, thus improving the realism of the panoramic stereoscopic image.
【附图说明】[Picture description]
为了更清楚地说明本发明实施例的技术方案,下面将对实施例中所需要使用的附图作简单地介绍,显而易见地,下面描述中的附图仅仅是本发明的一些实施例,对于本领域普通技术人员来讲,在不付出创造性劳动性的前提下,还可以根据这些附图获得其它的附图。In order to more clearly illustrate the technical solutions of the embodiments of the present invention, the drawings required to be used in the embodiments will be briefly introduced below. Obviously, the drawings in the following description are only some embodiments of the present invention and are not relevant to the present invention. For those of ordinary skill in the art, other drawings can be obtained based on these drawings without exerting any creative effort.
图1为本发明实施例提供的一种全景立体图像的生成方法的流程图;Figure 1 is a flow chart of a method for generating a panoramic stereoscopic image provided by an embodiment of the present invention;
图2为本发明实施例提供的一种左眼经纬度图像和右眼经纬度图像的生成方法的流程图;Figure 2 is a flow chart of a method for generating a left eye longitude and latitude image and a right eye longitude and latitude image provided by an embodiment of the present invention;
图3a至图3b为本发明实施例提供的一种生成左眼经纬度图像的示意图;Figures 3a to 3b are schematic diagrams of generating a left eye latitude and longitude image according to an embodiment of the present invention;
图3c至图3d为本发明实施例提供的一种生成右眼经纬度图像的示意图;Figures 3c to 3d are schematic diagrams of generating a right eye longitude and latitude image according to an embodiment of the present invention;
图4a至图4b为本发明实施例中将第一拼接区域投影到单位球面的示意图;4a to 4b are schematic diagrams of projecting the first splicing area onto a unit sphere in an embodiment of the present invention;
图5a至图5c为本发明实施例中将第一拼接区域映射到柱面的示意图;Figures 5a to 5c are schematic diagrams of mapping the first splicing area to a cylinder in an embodiment of the present invention;
图6为本发明实施例中生成的全景立体图像的一种呈现方式示意图Figure 6 is a schematic diagram of a presentation method of a panoramic stereoscopic image generated in an embodiment of the present invention.
图7为本发明实施例提供的一种全景立体图像的生成装置的结构示意图;Figure 7 is a schematic structural diagram of a device for generating a panoramic stereoscopic image provided by an embodiment of the present invention;
图8为本发明实施例提供的一种电子设备的示意图。Figure 8 is a schematic diagram of an electronic device provided by an embodiment of the present invention.
【具体实施方式】【Detailed ways】
为了更好的理解本发明的技术方案,下面结合附图对本发明实施例进行详细描述。In order to better understand the technical solution of the present invention, the embodiments of the present invention will be described in detail below with reference to the accompanying drawings.
应当明确,所描述的实施例仅仅是本发明一部分实施例,而不是全部的实施例。基于本发明中的实施例,本领域普通技术人员在没有作出创造性劳动前提下所获得的所有其它实施例,都属于本发明保护的范围。It should be clear that the described embodiments are only some, but not all, of the embodiments of the present invention. Based on the embodiments of the present invention, all other embodiments obtained by those of ordinary skill in the art without creative efforts fall within the scope of protection of the present invention.
在本发明实施例中使用的术语是仅仅出于描述特定实施例的目的,而非旨在限制本发明。在本发明实施例和所附权利要求书中所使用的单数形式的“一种”、“所述”和“该”也旨在包括多数形式,除非上下文清楚地表示其他含义。 The terminology used in the embodiments of the present invention is only for the purpose of describing specific embodiments and is not intended to limit the present invention. As used in this embodiment and the appended claims, the singular forms "a,""the" and "the" are intended to include the plural forms as well, unless the context clearly dictates otherwise.
应当理解,本文中使用的术语“和/或”仅仅是一种描述关联对象的关联关系,表示可以存在三种关系,例如,甲和/或乙,可以表示:单独存在甲,同时存在甲和乙,单独存在乙这三种情况。另外,本文中字符“/”,一般表示前后关联对象是一种“或”的关系。It should be understood that the term "and/or" used in this article is only an association relationship describing related objects, indicating that there can be three relationships, for example, A and/or B, which can mean: A alone exists, and A and A exist simultaneously. B, there are three situations of B alone. In addition, the character "/" in this article generally indicates that the related objects are an "or" relationship.
为解决现有技术中存在的全景立体图像的拼接区域画面存在较为明显的断层或重影现象的技术问题,本发明实施例提供了一种全景立体图像的生成方法。该全景图像的生成方法可应用于电子设备,换言之,全景立体图像的生成方法中的各步骤可以由电子设备执行。其中,电子设备可包括多个鱼眼镜头,鱼眼镜头可以为超广角鱼眼镜头,电子设备中鱼眼镜头的数量可根据产品设计需要进行设置,只要保证所有鱼眼镜头的视场角(Field of View,简称FOV)之和能够覆盖整个360°的全景立体图像的画面即可,即鱼眼镜头的数量n需要满足:n*FOV>=360°,其中,FOV为单个鱼眼镜头的视场角,n为大于或等于2的正整数。当n*FOV与360°的差值(即n*FOV-360°)越大时,相邻鱼眼镜头重合的FOV越大,越有利于全景立体图像生成过程中无缝拼接的进行。当鱼眼镜头的FOV一定时,由于鱼眼镜头成像边缘畸变较大,因此鱼眼镜头的数量越多,每个鱼眼镜头实际用于全景渲染的画面越远离鱼眼镜头的边缘,画面质量越高。本发明实施例中,作为一种可选方案,鱼眼镜头的数量可以为6个或8个,电子设备采用6个或8个鱼眼镜头可以使得n*FOV与360°的差值较大,从而有利于全景立体图像生成过程中无缝拼接的进行。In order to solve the technical problem in the prior art that there are obvious faults or ghosting phenomena in the spliced area images of panoramic stereoscopic images, embodiments of the present invention provide a method for generating panoramic stereoscopic images. The method for generating a panoramic image can be applied to electronic devices. In other words, each step in the method for generating a panoramic stereoscopic image can be performed by an electronic device. Among them, the electronic device can include multiple fisheye lenses, and the fisheye lens can be an ultra-wide-angle fisheye lens. The number of fisheye lenses in the electronic device can be set according to product design needs, as long as the field of view of all fisheye lenses is ensured ( The sum of Field of View (FOV for short) can cover the entire 360° panoramic stereoscopic image, that is, the number n of fisheye lenses needs to satisfy: n*FOV>=360°, where FOV is the size of a single fisheye lens Field of view, n is a positive integer greater than or equal to 2. When the difference between n*FOV and 360° (i.e. n*FOV-360°) is larger, the FOV of adjacent fisheye lenses is larger, which is more conducive to seamless splicing during the generation of panoramic stereoscopic images. When the FOV of the fisheye lens is constant, due to the larger distortion of the imaging edge of the fisheye lens, the more fisheye lenses there are, the farther away the picture actually used for panoramic rendering by each fisheye lens is from the edge of the fisheye lens, and the quality of the picture will be reduced. The higher. In the embodiment of the present invention, as an optional solution, the number of fisheye lenses can be 6 or 8. Electronic equipment using 6 or 8 fisheye lenses can make the difference between n*FOV and 360° larger. , which is conducive to seamless splicing during the generation of panoramic stereoscopic images.
本发明实施例中,电子设备包括但不限于全景相机,该电子设备可应用于机器人、车辆或无人机等。In the embodiment of the present invention, the electronic device includes but is not limited to a panoramic camera, and the electronic device can be applied to robots, vehicles, drones, etc.
图1为本发明实施例提供的一种全景立体图像的生成方法的流程图,如图1所示,该方法包括:Figure 1 is a flow chart of a method for generating a panoramic stereoscopic image provided by an embodiment of the present invention. As shown in Figure 1, the method includes:
步骤10、根据获取的多个鱼眼图像,生成每个鱼眼图像对应的左眼经纬度图像和右眼经纬度图像。Step 10: Based on the acquired multiple fisheye images, generate a left eye longitude and latitude image and a right eye longitude and latitude image corresponding to each fisheye image.
电子设备中的每个鱼眼镜头均可拍摄一个鱼眼图像,则多个鱼眼镜头可获取多个鱼眼图像,从而使得电子设备可通过设置的多个鱼眼镜头获取到多个鱼 眼图像。例如,以电子设备包括6个鱼眼镜头为例,6个鱼眼镜头分别为1号鱼眼镜头至6号鱼眼镜头,获取的多个鱼眼图像包括6个鱼眼图像,则本步骤中需要生成6个鱼眼图像中每个鱼眼图像对应的左眼经纬度图像和右眼经纬度图像。Each fisheye lens in the electronic device can capture a fisheye image, and multiple fisheye lenses can acquire multiple fisheye images, so that the electronic device can acquire multiple fisheye images through the multiple fisheye lenses set up. eye image. For example, take the electronic device including 6 fisheye lenses as an example. The 6 fisheye lenses are fisheye lens No. 1 to fisheye lens No. 6 respectively. The multiple fisheye images acquired include 6 fisheye images. Then this step It is necessary to generate the left eye longitude and latitude image and the right eye longitude and latitude image corresponding to each of the 6 fisheye images.
本发明实施例中,可根据鱼眼镜头的标定参数建立鱼眼图像到经纬度图的投影关系,其中,鱼眼镜头的标定参数可包括相机的内参和外参。In embodiments of the present invention, the projection relationship between the fisheye image and the latitude and longitude map can be established based on the calibration parameters of the fisheye lens, where the calibration parameters of the fisheye lens can include internal parameters and external parameters of the camera.
则步骤10具体可包括:通过鱼眼镜头的标定参数,根据获取的多个鱼眼图像,生成每个鱼眼图像对应的左眼经纬度图像和右眼经纬度图像。Then step 10 may specifically include: using the calibration parameters of the fisheye lens and generating a left eye longitude and latitude image and a right eye longitude and latitude image corresponding to each fisheye image based on the acquired multiple fisheye images.
作为一种可选方案,图2为本发明实施例提供的一种左眼经纬度图像和右眼经纬度图像的生成方法的流程图,如图2所示,步骤10具体可包括:As an optional solution, Figure 2 is a flow chart of a method for generating a left eye longitude and latitude image and a right eye longitude and latitude image provided by an embodiment of the present invention. As shown in Figure 2, step 10 may specifically include:
步骤S1、在设置的左眼空白经纬度图上划分出左眼视角拼接块区域,在左眼视角拼接块区域中,根据鱼眼图像到经纬度图的投影关系,对鱼眼图像进行经纬度图展开,生成鱼眼图像对应的左眼经纬度图像。Step S1: Divide the left eye perspective splicing block area on the set left eye blank longitude and latitude map. In the left eye perspective splicing block area, expand the longitude and latitude map of the fisheye image according to the projection relationship between the fisheye image and the longitude and latitude map. Generate the left eye latitude and longitude image corresponding to the fisheye image.
本发明实施例中,为每个鱼眼图像设置对应的左眼空白经纬度图,以6个鱼眼图像为例进行描述,则设置的6个左眼空白经纬度图分别为左眼空白经纬度图I1至I6。In the embodiment of the present invention, a corresponding left eye blank longitude and latitude map is set for each fisheye image. Taking six fisheye images as an example for description, the six set left eye blank longitude and latitude maps are respectively the left eye blank longitude and latitude map I1 to I6.
图3a至图3b为本发明实施例提供的一种生成左眼经纬度图像的示意图,如图3a和图3b所示,步骤S1中在设置的左眼空白经纬度图上划分出左眼视角拼接块区域,具体可包括:Figures 3a to 3b are schematic diagrams of generating a left eye longitude and latitude image according to an embodiment of the present invention. As shown in Figure 3a and Figure 3b, in step S1, a left eye perspective splicing block is divided on the set left eye blank longitude and latitude image. Area, specifically may include:
步骤S11、根据鱼眼图像到经纬度图的投影关系,将鱼眼图像的中心点投影到左眼空白经纬度图上形成中心点的投影,将中心点的投影所在的经线定义为左眼空白经纬度图中心线。Step S11: According to the projection relationship between the fisheye image and the latitude and longitude map, project the center point of the fisheye image onto the blank latitude and longitude map of the left eye to form a projection of the center point, and define the meridian where the projection of the center point is located as the blank latitude and longitude map of the left eye. Centerline.
将鱼眼图像的中心点分别投影至左眼空白经纬度图I1至I6,得出每个左眼空白经纬度图I1至I6的左眼空白经纬度图中心线。The center point of the fisheye image is projected onto the left eye blank longitude and latitude maps I1 to I6 respectively, and the center line of the left eye blank longitude and latitude map of each left eye blank longitude and latitude map I1 to I6 is obtained.
步骤S12、将左眼空白经纬度图的距离左眼空白经纬度图中心线左侧设定角度值的经线作为左眼视角中心线。Step S12: Use the meridian with a set angle value to the left of the center line of the left-eye blank longitude and latitude map as the left-eye viewing angle center line.
作为一种可选方案,设定角度值α=360°/N/2,其中,N为鱼眼镜头的数量。 以N=6为例,则设定角度值α为30°。As an alternative, set the angle value α=360°/N/2, where N is the number of fisheye lenses. Taking N=6 as an example, set the angle value α to 30°.
本发明实施例中,图3a和图3b以左眼空白经纬度图I1和左眼空白经纬度图I2为例进行描述。如图3a所示,将左眼空白经纬度图I1的距离左眼空白经纬度图中心线左侧30°的经线作为左眼视角中心线。如图3b所示,将左眼空白经纬度图I2的距离左眼空白经纬度图中心线左侧30°的经线作为左眼视角中心线。以此类推,将左眼空白经纬度图I6的距离左眼空白经纬度图中心线左侧30°的经线作为左眼视角中心线。In the embodiment of the present invention, Figures 3a and 3b take the left eye blank longitude and latitude map I1 and the left eye blank longitude and latitude map I2 as examples for description. As shown in Figure 3a, the meridian 30° to the left of the center line of the left-eye blank longitude and latitude map I1 is used as the left-eye viewing angle center line. As shown in Figure 3b, the meridian 30° to the left of the center line of the left-eye blank longitude and latitude map I2 is used as the left-eye viewing angle center line. By analogy, the meridian 30° to the left of the center line of the left eye blank longitude and latitude map I6 is used as the left eye viewing angle center line.
步骤S13、在左眼空白经纬度图中以左眼视角中心线为视场角中心线取设定视场角的图像区域作为左眼视角拼接块区域。Step S13: In the left-eye blank longitude and latitude map, use the center line of the left eye viewing angle as the center line of the viewing angle and take the image area with the set viewing angle as the left eye viewing angle splicing block area.
本发明实施例中,设定视场角β大于60。作为一种可选方案,设定视场角β大于或等于80°且小于或等于100°。In the embodiment of the present invention, the field of view angle β is set to be greater than 60°. As an alternative, the field of view angle β is set to be greater than or equal to 80° and less than or equal to 100°.
由于本发明实施例中需要采用无缝拼接方法对拼接块进行拼接融合,该无缝拼接方法要求相邻的拼接块区域具有一定的重合FOV,才能在拼接过程中进行图像匹配和对齐操作,因此FOV要大于60°,只有大于60°时才能保证相邻的拼接块区域具有重合的FOV。例如,拼接块的FOV是80°时,相邻的拼接块区域之间就有20°的重合FOV;拼接块区域的FOV是100°时,相邻的拼接块区域之间就有40°的重合FOV。重合FOV越大,越有利于无缝拼接的实现。如图3a和图3b所示,以设定视场角β为100°为例。Since the seamless splicing method needs to be used to splice and fuse the splicing blocks in the embodiment of the present invention, the seamless splicing method requires adjacent splicing block areas to have a certain overlapping FOV in order to perform image matching and alignment operations during the splicing process. Therefore, The FOV must be greater than 60°. Only when it is greater than 60° can adjacent splicing block areas be guaranteed to have overlapping FOVs. For example, when the FOV of a splicing block is 80°, there is a 20° overlapping FOV between adjacent splicing block areas; when the FOV of a splicing block area is 100°, there is a 40° FOV between adjacent splicing block areas. Coincident FOV. The larger the overlapping FOV is, the more conducive it is to the realization of seamless splicing. As shown in Figure 3a and Figure 3b, taking the field of view angle β as 100° as an example.
本发明实施例中,如图3a和图3b所示,左眼视角拼接块区域的形状为矩形。在实际应用中,左眼视角拼接块区域的形状还可以采用其它形状,只要满足拼接块区域能够覆盖所需的FOV即可,例如,左眼视角拼接块区域的边界可以为曲线。In the embodiment of the present invention, as shown in Figure 3a and Figure 3b, the shape of the left-eye view splicing block area is a rectangle. In practical applications, the shape of the left-eye view splicing block area can also adopt other shapes, as long as the splicing block area can cover the required FOV. For example, the boundary of the left-eye view splicing block area can be a curve.
如图3a所示,在左眼空白经纬度图I1中以左眼视角中心线为视场角中心线取设定视场角为100°的图像作为左眼视角拼接块区域L1。如图3b所示,在左眼空白经纬度图I2中以左眼视角中心线为视场角中心线取设定视场角为100°的图像作为左眼视角拼接块区域L2。以此类推,在左眼空白经纬度图I6中以左眼视角中心线为视场角中心线取设定视场角为100°的图像作为左眼视角拼接块区 域L6。As shown in Figure 3a, in the left-eye blank longitude and latitude map I1, the center line of the left eye perspective is the center line of the field of view, and an image with a set field of view angle of 100° is taken as the left eye view splicing block area L1. As shown in Figure 3b, in the left-eye blank longitude and latitude map I2, the center line of the left-eye viewing angle is the center line of the viewing angle, and the image with the set viewing angle of 100° is used as the left-eye viewing angle splicing block area L2. By analogy, in the left eye blank longitude and latitude map I6, the center line of the left eye view angle is the center line of the field of view, and the image with a set field of view angle of 100° is used as the left eye view splicing block area. Domain L6.
进而,如图3a所示,在左眼视角拼接块区域L1中对鱼眼图像进行经纬度图展开,生成鱼眼图像对应的左眼经纬度图像A1。如图3b所示,在左眼视角拼接块区域L2中对鱼眼图像进行经纬度图展开,生成鱼眼图像对应的左眼经纬度图像A2。以此类推,在左眼视角拼接块区域L6中对鱼眼图像进行经纬度图展开,生成鱼眼图像对应的左眼经纬度图像A6。Furthermore, as shown in Figure 3a, the fisheye image is expanded into a latitude and longitude map in the left eye view splicing block area L1 to generate a left eye longitude and latitude image A1 corresponding to the fisheye image. As shown in Figure 3b, the longitude and latitude map of the fish-eye image is expanded in the left-eye view splicing block area L2, and a left-eye longitude and latitude image A2 corresponding to the fish-eye image is generated. By analogy, the longitude and latitude map of the fisheye image is expanded in the left eye view splicing block area L6 to generate the left eye longitude and latitude image A6 corresponding to the fisheye image.
步骤S2、在设置的右眼空白经纬度图上划分出右眼视角拼接块区域,在右眼视角拼接块区域中,根据鱼眼图像到经纬度图的投影关系,对鱼眼图像进行经纬度图展开,生成鱼眼图像对应的右眼经纬度图像。Step S2: Divide the right eye perspective splicing block area on the set right eye blank latitude and longitude map. In the right eye perspective splicing block area, expand the longitude and latitude map of the fisheye image according to the projection relationship between the fisheye image and the longitude and latitude map. Generate the right eye latitude and longitude image corresponding to the fisheye image.
本发明实施例中,为每个鱼眼图像设置对应的右眼空白经纬度图,以6个鱼眼图像为例进行描述,则设置的6个右眼空白经纬度图分别为右眼空白经纬度图M1至M6。In the embodiment of the present invention, a corresponding right eye blank longitude and latitude map is set for each fisheye image. Taking six fisheye images as an example for description, the set six right eye blank longitude and latitude maps are respectively the right eye blank longitude and latitude map M1 to M6.
图3c至图3d为本发明实施例提供的一种生成右眼经纬度图像的示意图,如图3c和图3d所示,步骤S1中在设置的右眼空白经纬度图上划分出右眼视角拼接块区域,具体可包括:Figures 3c to 3d are schematic diagrams of generating a right eye longitude and latitude image according to an embodiment of the present invention. As shown in Figure 3c and Figure 3d, in step S1, right eye perspective splicing blocks are divided on the set right eye blank longitude and latitude image. Area, specifically may include:
步骤S21、根据鱼眼图像到经纬度图的投影关系,将鱼眼图像的中心点投影到右眼空白经纬度图上形成中心点的投影,将中心点的投影所在的经线定义为右眼空白经纬度图中心线。Step S21: According to the projection relationship between the fisheye image and the latitude and longitude map, project the center point of the fisheye image onto the blank latitude and longitude map of the right eye to form a projection of the center point, and define the meridian where the projection of the center point is located as the blank latitude and longitude map of the right eye. Centerline.
将鱼眼图像的中心点分别投影至右眼空白经纬度图M1至M6,得出每个右眼空白经纬度图M1至M6的右眼空白经纬度图中心线。Project the center point of the fisheye image to the right-eye blank longitude and latitude maps M1 to M6 respectively, and obtain the center line of the right-eye blank longitude and latitude map of each right-eye blank longitude and latitude map M1 to M6.
步骤S22、将右眼空白经纬度图的距离右眼空白经纬度图中心线右侧设定角度值的经线作为右眼视角中心线。Step S22: Use the meridian with a set angle value to the right of the center line of the blank latitude and longitude map of the right eye as the center line of the right eye viewing angle.
作为一种可选方案,设定角度值α=360°/N/2,其中,N为鱼眼镜头的数量。以N=6为例,则设定角度值α为30°。As an alternative, set the angle value α=360°/N/2, where N is the number of fisheye lenses. Taking N=6 as an example, set the angle value α to 30°.
本发明实施例中,图3c和图3d以右眼空白经纬度图M1和右眼空白经纬度图M2为例进行描述。如图3c所示,将右眼空白经纬度图M1的距离右眼空白经纬度图中心线右侧30°的经线作为右眼视角中心线。如图3d所示,将右眼 空白经纬度图M2的距离右眼空白经纬度图中心线右侧30°的经线作为右眼视角中心线。以此类推,将右眼空白经纬度图M6的距离右眼空白经纬度图中心线右侧30°的经线作为右眼视角中心线。In the embodiment of the present invention, Figures 3c and 3d take the right eye blank longitude and latitude map M1 and the right eye blank longitude and latitude map M2 as examples for description. As shown in Figure 3c, the longitude 30° to the right of the center line of the right eye blank longitude and latitude map M1 is used as the right eye viewing angle center line. As shown in Figure 3d, place the right eye The meridian 30° to the right of the center line of the blank longitude and latitude map M2 of the right eye's blank longitude and latitude map is used as the center line of the right eye's visual angle. By analogy, the longitude 30° to the right of the center line of the right eye's blank longitude and latitude map M6 is used as the center line of the right eye's viewing angle.
步骤S23、在右眼空白经纬度图中以右眼视角中心线为视场角中心线取设定视场角的图像区域作为右眼视角拼接块区域。Step S23: In the right-eye blank longitude and latitude map, use the center line of the right eye viewing angle as the center line of the viewing angle and take the image area with the set viewing angle as the right eye viewing angle splicing block area.
本发明实施例中,设定视场角β大于60。作为一种可选方案,设定视场角β大于或等于80°且小于或等于100°。In the embodiment of the present invention, the field of view angle β is set to be greater than 60°. As an alternative, the field of view angle β is set to be greater than or equal to 80° and less than or equal to 100°.
由于本发明实施例中需要采用无缝拼接方法对拼接块进行拼接融合,该无缝拼接方法要求相邻的拼接块区域具有一定的重合FOV,才能在拼接过程中进行图像匹配和对齐操作,因此FOV要大于60°,只有大于60°时才能保证相邻的拼接块区域具有重合的FOV。例如,拼接块的FOV是80°时,相邻的拼接块区域之间就有20°的重合FOV;拼接块区域的FOV是100°时,相邻的拼接块区域之间就有40°的重合FOV。重合FOV越大,越有利于无缝拼接的实现。如图3a和图3b所示,以设定视场角β为100°为例。Since the seamless splicing method needs to be used to splice and fuse the splicing blocks in the embodiment of the present invention, the seamless splicing method requires adjacent splicing block areas to have a certain overlapping FOV in order to perform image matching and alignment operations during the splicing process. Therefore, The FOV must be greater than 60°. Only when it is greater than 60° can adjacent splicing block areas be guaranteed to have overlapping FOVs. For example, when the FOV of a splicing block is 80°, there is a 20° overlapping FOV between adjacent splicing block areas; when the FOV of a splicing block area is 100°, there is a 40° FOV between adjacent splicing block areas. Coincident FOV. The larger the overlapping FOV is, the more conducive it is to the realization of seamless splicing. As shown in Figure 3a and Figure 3b, taking the field of view angle β as 100° as an example.
本发明实施例中,如图3c和图3d所示,右眼视角拼接块区域的形状为矩形。在实际应用中,右眼视角拼接块区域的形状还可以采用其它形状,只要满足拼接块区域能够覆盖所需的FOV即可,例如,右眼视角拼接块区域的边界可以为曲线。In the embodiment of the present invention, as shown in Figure 3c and Figure 3d, the shape of the right-eye view splicing block area is a rectangle. In practical applications, the shape of the right-eye view splicing block area can also adopt other shapes, as long as the splicing block area can cover the required FOV. For example, the boundary of the right-eye view splicing block area can be a curve.
如图3c所示,在右眼空白经纬度图M1中以右眼视角中心线为视场角中心线取设定视场角为100°的图像作为右眼视角拼接块区域R1。如图3d所示,在右眼空白经纬度图M2中以右眼视角中心线为视场角中心线取设定视场角为100°的图像作为右眼视角拼接块区域R2。以此类推,在右眼空白经纬度图M6中以右眼视角中心线为视场角中心线取设定视场角为100°的图像作为右眼视角拼接块区域R6。As shown in Figure 3c, in the right eye blank longitude and latitude map M1, the center line of the right eye viewing angle is the center line of the field of view, and an image with a set field of view angle of 100° is used as the right eye viewing angle splicing block area R1. As shown in Figure 3d, in the right eye blank longitude and latitude map M2, the center line of the right eye viewing angle is the center line of the field of view, and an image with a set field of view angle of 100° is used as the right eye viewing angle splicing block area R2. By analogy, in the right eye blank longitude and latitude map M6, the center line of the right eye viewing angle is the center line of the field of view, and an image with a set field of view angle of 100° is taken as the right eye viewing angle splicing block area R6.
进而,如图3c所示,在右眼视角拼接块区域R1中对鱼眼图像进行经纬度图展开,生成鱼眼图像对应的右眼经纬度图像B1。如图3d所示,在右眼视角拼接块区域R2’中对鱼眼图像进行经纬度图展开,生成鱼眼图像对应的右眼经纬度 图像B2。以此类推,在右眼视角拼接块区域M6中对鱼眼图像进行经纬度图展开,生成鱼眼图像对应的右眼经纬度图像B6。Furthermore, as shown in Figure 3c, the fish-eye image is expanded into a latitude and longitude map in the right-eye view splicing block area R1 to generate a right-eye longitude and latitude image B1 corresponding to the fish-eye image. As shown in Figure 3d, the longitude and latitude map of the fisheye image is expanded in the right eye view splicing block area R2' to generate the right eye longitude and latitude corresponding to the fisheye image. Image B2. By analogy, the longitude and latitude map of the fisheye image is expanded in the right eye view splicing block area M6 to generate the right eye longitude and latitude image B6 corresponding to the fisheye image.
步骤12、提取多个左眼经纬度图像之间的第一拼接区域得到多个第一拼接区域,对每个第一拼接区域进行图像融合以生成左眼全景图像。Step 12: Extract first splicing areas between multiple left-eye longitude and latitude images to obtain multiple first splicing areas, and perform image fusion on each first splicing area to generate a left-eye panoramic image.
本发明实施例中,步骤12具体可包括:In this embodiment of the present invention, step 12 may specifically include:
步骤122、提取多个左眼经纬度图像之间的第一拼接区域得到多个第一拼接区域。Step 122: Extract first splicing areas between multiple left-eye longitude and latitude images to obtain multiple first splicing areas.
具体地,分别提取n个左眼经纬度图像A1-An之间的第一拼接区域,得到N个第一拼接区域S1-Sn。其中,相邻两个左眼经纬度图之间的第一拼接区域即是相邻两个左眼视角拼接块区域间的全部或部分重合区域。例如,n=6,则分别提取6个左眼经纬度图像A1-A6之间的第一拼接区域,得到6个第一拼接区域S1-S6。Specifically, the first splicing areas between n left-eye longitude and latitude images A1-An are respectively extracted to obtain N first splicing areas S1-Sn. Wherein, the first splicing area between two adjacent left-eye longitude and latitude maps is all or part of the overlapping area between two adjacent left-eye view splicing block areas. For example, n=6, then the first splicing areas between the six left-eye longitude and latitude images A1-A6 are respectively extracted, and six first splicing areas S1-S6 are obtained.
步骤124、对每个第一拼接区域进行图像融合以生成左眼全景图像。Step 124: Perform image fusion on each first splicing area to generate a left-eye panoramic image.
本发明实施例中,步骤124具体可包括:In this embodiment of the present invention, step 124 may specifically include:
步骤1242、将多个第一拼接区域投影到单位球面上,得到单位球面上的多个第一待拼接区域。Step 1242: Project multiple first splicing areas onto the unit sphere to obtain multiple first areas to be spliced on the unit sphere.
对n个第一拼接区域S1-Sn进行球面投影,将n个第一拼接区域S1-Sn投影到单位球面上,得到单位球面上的n个第一待拼接区域J1-Jn。图4a至图4b为本发明实施例中将第一拼接区域投影到单位球面的示意图,如图4b所示,图4b示出了第一拼接区域Sn,如图4a所示,将第一拼接区域Sn投影至单位球面上得到单位球面上的第一待拼接区域Jn。Perform spherical projection on the n first splicing areas S1-Sn, and project the n first splicing areas S1-Sn onto the unit sphere to obtain n first areas to be spliced J1-Jn on the unit sphere. 4a to 4b are schematic diagrams of projecting the first splicing area onto the unit sphere in the embodiment of the present invention, as shown in FIG. 4b. FIG. 4b shows the first splicing area Sn. As shown in FIG. 4a, the first splicing area is The area Sn is projected onto the unit sphere to obtain the first area Jn to be spliced on the unit sphere.
步骤1244、将单位球面上的多个第一待拼接区域分别映射到单位球面对应的柱面上,得到多个第一待拼接区域对应的柱面区域。Step 1244: Map the plurality of first areas to be spliced on the unit sphere to the cylinder surfaces corresponding to the unit sphere respectively, to obtain cylinder areas corresponding to the plurality of first areas to be spliced.
将单位球面上多个第一待拼接区域J1-Jn分别映射到单位球面对应的柱面上,得到多个第一待拼接区域对应的柱面区域T1-Tn。图5a至图5c为本发明实施例中将第一拼接区域映射到柱面的示意图。如图5a所示,例如,将单位球面上的第一待拼接区域Jn映射到柱面上,得到第一待拼接区域Jn对应的柱面区域 Tn。图5b示出了第一待拼接区域Jn对应的柱面区域Tn,图5c示出了处于展开状态的柱面区域Tn。The plurality of first regions J1-Jn to be spliced on the unit sphere are respectively mapped onto the cylinder corresponding to the unit sphere, thereby obtaining cylinder regions T1-Tn corresponding to the plurality of first regions to be spliced. Figures 5a to 5c are schematic diagrams of mapping the first splicing area to a cylinder in an embodiment of the present invention. As shown in Figure 5a, for example, the first area Jn to be spliced on the unit sphere is mapped to the cylinder surface, and the cylinder area corresponding to the first area Jn to be spliced is obtained. Tn. Figure 5b shows the cylindrical area Tn corresponding to the first area Jn to be spliced, and Figure 5c shows the cylindrical area Tn in the expanded state.
步骤1246、计算多个第一待拼接区域对应的柱面区域的左图像和右图像之间的光流场。Step 1246: Calculate the optical flow field between the left image and the right image of the cylindrical area corresponding to the plurality of first regions to be spliced.
本步骤中,可分别计算N个柱面区域T1-Tn的左图像和右图像之间的光流场。In this step, the optical flow field between the left image and the right image of the N cylindrical regions T1-Tn can be calculated respectively.
其中,计算N个柱面区域T1-Tn的左图像和右图像之间的光流场具体可包括:Among them, calculating the optical flow field between the left image and the right image of the N cylindrical regions T1-Tn may specifically include:
计算柱面区域的左图像到右图像的光流场fL→R(x,y)和右图像到左图像的光流场fR→L(x,y);Calculate the optical flow field f L→R (x, y) from the left image to the right image in the cylindrical area and the optical flow field f R→L (x, y) from the right image to the left image;
根据柱面区域的像素点和柱面区域左边界、右边界之间的距离自适应调整左图像到右图像的光流场fL→R(x,y)的权重值α和右图像到左图像的光流场fR→L(x,y)的权重值β,得到调整后的柱面区域的左图像和右图像之间的光流场。
fL→R(x,y)=α·fL→R(x,y)      公式1
fR→L(x,y)=β·fR→L(x,y)      公式2
According to the distance between the pixels of the cylindrical area and the left and right boundaries of the cylindrical area, the weight value α of the optical flow field f L→R (x, y) from the left image to the right image and the right image to the left are adaptively adjusted. The weight value β of the optical flow field f R→L (x, y) of the image is used to obtain the optical flow field between the left image and the right image of the adjusted cylindrical area.
f L→R (x,y)=α·f L→R (x,y) Formula 1
f R→L (x,y)=β·f R→L (x,y) Formula 2
为了实现无缝拼接,对于柱面区域的左图像,应使其越靠近柱面区域左边界的光流场越小;而对于柱面区域的右图像,应使其越靠近柱面区域右边界的光场值越小,因此,设置两个权重值α和β,其中α∈[0,1],β∈[0,1]。在公式1中,α值随着左图像的区域从左到右逐渐增大;在公式2中,β值随着右图像的区域从左到右逐渐减小。In order to achieve seamless splicing, for the left image of the cylindrical area, the optical flow field should be smaller as it is closer to the left boundary of the cylindrical area; while for the right image of the cylindrical area, it should be closer to the right boundary of the cylindrical area. The smaller the light field value, therefore, set two weight values α and β, where α∈[0,1] and β∈[0,1]. In Formula 1, the α value gradually increases from left to right along with the area of the left image; in Formula 2, the β value gradually decreases along with the area of the right image from left to right.
步骤1248、根据每个柱面区域的左图像和右图像之间的光流场,对每个第一拼接区域的图像进行融合,以生成左眼全景图像。Step 1248: Fusion of the images of each first splicing area according to the optical flow field between the left image and the right image of each cylindrical area to generate a left-eye panoramic image.
本发明实施例中,可采用柱面区域的左图像和右图像之间的光流场,对左眼经纬度图像的第一拼接区域的图像进行融合,以实现对第一拼接区域的无缝拼接,从而实现了对左眼经纬度图像的无缝拼接。In the embodiment of the present invention, the optical flow field between the left image and the right image of the cylindrical area can be used to fuse the images in the first splicing area of the left eye longitude and latitude images to achieve seamless splicing of the first splicing area. , thus achieving seamless splicing of left eye latitude and longitude images.
作为一种可选方案,步骤1248具体可包括:As an optional solution, step 1248 may specifically include:
步骤A1、在经纬度图上,根据区域内的像素点和区域左边界、右边界之间 的距离,自适应调整左图像和右图像融合时左图像对应的权重值λ’和右图像对应的权重值μ’。Step A1. On the longitude and latitude map, according to the distance between the pixels in the area and the left and right boundaries of the area distance, adaptively adjust the weight value λ' corresponding to the left image and the weight value μ' corresponding to the right image when the left image and the right image are fused.
步骤A2、根据柱面到经纬度图像的投影关系,将柱面区域的左图像和右图像之间的光流场反投影到经纬度图像上,得到左眼经纬度图像的第一拼接区域的左图像和右图像之间的光流场。Step A2: According to the projection relationship between the cylinder and the longitude and latitude image, back-project the optical flow field between the left image and the right image of the cylinder area onto the longitude and latitude image, and obtain the left image and the first splicing area of the left eye longitude and latitude image. Optical flow field between right images.
其中,柱面区域的左图像和右图像之间的光流场可包括左图像到右图像的光流场fL→R(x,y)以及右图像到左图像的光流场fR→L(x,y),则反投影后,左眼经纬度图像的第一拼接区域左图像和右图像之间的光流场包括左图像到右图像的光流场f’L→R(x,y)以及右图像到左图像的光流场f’R→L(x,y)。Wherein, the optical flow field between the left image and the right image in the cylindrical area may include the optical flow field f L→R (x, y) from the left image to the right image and the optical flow field f R→ from the right image to the left image. L (x, y), then after back-projection, the optical flow field between the left image and the right image in the first splicing area of the left eye longitude and latitude image includes the optical flow field f' from the left image to the right image L→R (x, y) and the optical flow field f' R→L (x, y) from the right image to the left image.
步骤A3、根据左图像对应的权重值λ’和右图像对应的权重值μ’以及第一拼接区域的左图像和右图像之间的光流场,通过公式3对第一待拼接区域的左图像SL和右图像SR进行图像融合,获取融合后的融合区域SB,以得到左眼全景图像。
SB(x,y)=λ′·SL(x+f′x (L→R)(x,y),y+f′y (L→R)(x,y))+
μ′·SR(x+f x (R→L)(x,y),y+f y (R→L)(x,y))      公式3
Step A3: According to the weight value λ' corresponding to the left image and the weight value μ' corresponding to the right image and the optical flow field between the left image and the right image of the first splicing area, use Formula 3 to calculate the left image of the first splicing area. The image S L and the right image S R are image fused, and the fused fusion area S B is obtained to obtain the left eye panoramic image.
S B (x,y)=λ′·S L (x+f′ x (L→R) (x,y),y+f′ y (L→R) (x,y))+
μ′·S R (x+f x (R→L) (x,y),y+f y (R→L) (x,y)) Formula 3
其中,SB(x,y)表示融合区域SB的像素点(x,y)的值,SL(x,y)表示左图像SL中像素点(x,y)的值,SR(x,y)表示右图像SR中像素点(x,y)的值,λ’为左图像对应的权重值,μ为右图像对应的权重值,λ∈[0,1],μ∈[0,1]。对于靠近左图像的融合区域,应使左图像对应像素值占有较大权重,因此λ’值随着距离SL左边界的距离增大而由大到小变化。而对于靠近右图像的融合区域,应使右图像对应像素值占有较大权重,因此μ’值为随着距离SR右边界的距离增大而由大到小变化。Among them, S B (x, y) represents the value of the pixel point (x, y) in the fusion area S B , S L (x, y) represents the value of the pixel point (x, y) in the left image S L , S R (x,y) represents the value of the pixel point (x,y) in the right image S R , λ' is the weight value corresponding to the left image, μ ' is the weight value corresponding to the right image, λ ' ∈[0,1], μ ' ∈[0,1]. For the fusion area close to the left image, the corresponding pixel value of the left image should have a greater weight, so the λ' value changes from large to small as the distance from the left boundary of S L increases. For the fusion area close to the right image, the corresponding pixel value of the right image should have a greater weight, so the μ' value changes from large to small as the distance from the right boundary of SR increases.
至此,在得到所有的融合区域SB之后,即得到了左眼全景图像,得到的左眼全景图像为无缝拼接的经纬度图。At this point, after all the fusion areas S B are obtained, the left-eye panoramic image is obtained, and the obtained left-eye panoramic image is a seamlessly spliced longitude and latitude map.
步骤A1至步骤A3所示的方案中,首先将左图像和右图像之间的光流场反投影至经纬度图像上,而后直接在经纬度图像上对第一待拼接区域的图像进行 融合,以得到左眼全景图像。In the solution shown in steps A1 to A3, first the optical flow field between the left image and the right image is back-projected onto the latitude and longitude image, and then the image of the first area to be spliced is directly performed on the latitude and longitude image. Fusion to obtain the left eye panoramic image.
作为一种可选方案,步骤1248具体可包括:As an optional solution, step 1248 may specifically include:
步骤B1、根据柱面区域的像素点和柱面区域的左边界、右边界之间的距离,自适应调整左图像和右图像融合时左图像对应的权重值λ和右图像对应的权重值μ。Step B1: According to the distance between the pixels of the cylindrical area and the left and right boundaries of the cylindrical area, adaptively adjust the weight value λ corresponding to the left image and the weight value μ corresponding to the right image when the left image and the right image are fused. .
步骤B2、在柱面区域中,根据左图像对应的权重值λ和右图像对应的权重值μ以及第一待拼接区域的左图像和右图像之间的光流场,通过公式4对第一待拼接区域的左图像TL和右图像TR进行图像融合,获取融合后的融合区域TB
TB(x,y)=λ′·TL(x+f′x(L→R)(x,y),y+f′y(L→R)(x,y))
+μ′·TR(x+f′x(R→L)(x,y),y+f′y(R→L)(x,y))      公式4
Step B2. In the cylindrical area, according to the weight value λ corresponding to the left image and the weight value μ corresponding to the right image and the optical flow field between the left image and the right image of the first to-be-stitched area, use Formula 4 to calculate the first The left image TL and the right image TR of the area to be spliced are image fused to obtain the fused fusion area TB .
T B (x, y)=λ′·T L (x+f′ x(L→R) (x, y), y+f′ y(L→R) (x, y))
+μ′·T R (x+f′ x(R→L) (x, y), y+f′ y(R→L) (x, y)) Formula 4
其中,TB(x,y)表示融合区域TB的像素点(x,y)的值,TL(x,y)表示左图像TL中像素点的值,TR(x,y)表示右图像TR中像素点的值,λ为左图像对应的权重值,μ为右图像对应的权重值,λ∈[0,1],μ∈[0,1]。对于靠近左图像的融合区域,应使左图像对应像素值占有较大权重,因此λ值随着距离柱面区域左边界的距离增大而由大到小变化。而对于靠近右图像的融合区域,应使右图像对应像素值占有较大权重,因此μ值随着距离柱面区域右边界的距离增大而由大到小变化。Among them, T B (x, y) represents the value of the pixel point (x, y) in the fusion area T B , T L (x, y) represents the value of the pixel point in the left image T L , T R (x, y) Represents the value of the pixel point in the right image T R , λ is the weight value corresponding to the left image, μ is the weight value corresponding to the right image, λ∈[0, 1], μ∈[0, 1]. For the fusion area close to the left image, the corresponding pixel value of the left image should have a greater weight, so the λ value changes from large to small as the distance from the left boundary of the cylindrical area increases. For the fusion area close to the right image, the corresponding pixel value of the right image should have a greater weight, so the μ value changes from large to small as the distance from the right boundary of the cylindrical area increases.
本步骤中,分别对每个第一待拼接区域的图像进行融合,直至对所有第一待拼接区域的图像融合后,得到所有的融合区域TB为止。In this step, the images of each first region to be spliced are fused respectively until all the images of the first regions to be spliced are fused and all the fusion regions T B are obtained.
步骤B3、根据柱面到经纬度图像的投影关系,将所有融合区域TB反投影到经纬度图像中,得到左眼全景图像。Step B3: According to the projection relationship between the cylinder and the longitude and latitude image, back-project all the fusion areas T B into the longitude and latitude image to obtain the left eye panoramic image.
本步骤中,由于柱面的融合区域TB是无缝的,因此将反投影到经纬度图上后得到的左眼全景图像也是无缝的。In this step, since the fusion area T B of the cylinder is seamless, the left-eye panoramic image obtained after back-projecting it onto the latitude and longitude map is also seamless.
步骤B1至步骤B3所示的方案中,首先在柱面上对第一待拼接区域的图像进行融合,而后再将融合区域反投影到经纬度图像上,以实现对所述第一拼接区域的图像进行融合,从而得到了左眼全景图像。 In the solution shown in steps B1 to B3, the image of the first region to be spliced is first fused on the cylinder, and then the fused region is back-projected onto the longitude and latitude image to achieve the image of the first splicing region. Fusion is performed to obtain the left eye panoramic image.
步骤14、提取多个右眼经纬度图像之间的第二拼接区域得到多个第二拼接区域,对每个第二拼接区域进行图像融合以生成右眼全景图像。Step 14: Extract second splicing areas between multiple right eye latitude and longitude images to obtain multiple second splicing areas, and perform image fusion on each second splicing area to generate a right eye panoramic image.
本发明实施例中,步骤14具体可包括:In this embodiment of the present invention, step 14 may specifically include:
步骤142、提取多个右眼经纬度图像之间的第二拼接区域得到多个第二拼接区域。Step 142: Extract second splicing areas between multiple right eye longitude and latitude images to obtain multiple second splicing areas.
步骤144、对每个第二拼接区域进行图像融合以生成右眼全景图像。Step 144: Perform image fusion on each second splicing area to generate a right-eye panoramic image.
本发明实施例中,步骤144具体可包括:In this embodiment of the present invention, step 144 may specifically include:
步骤1442、将多个第二拼接区域投影到单位球面上,得到单位球面上的多个第二待拼接区域。Step 1442: Project the plurality of second splicing areas onto the unit sphere to obtain multiple second areas to be spliced on the unit sphere.
步骤1444、将单位球面上的多个第二待拼接区域分别映射到单位球面对应的柱面上,得到多个第二待拼接区域对应的柱面区域。Step 1444: Map the plurality of second regions to be spliced on the unit sphere to the cylinder surfaces corresponding to the unit sphere, respectively, to obtain cylinder regions corresponding to the plurality of second regions to be spliced.
步骤1446、计算多个第二待拼接区域对应的柱面区域的左图像和右图像之间的光流场。Step 1446: Calculate the optical flow field between the left image and the right image of the cylindrical area corresponding to the plurality of second areas to be spliced.
步骤1448、根据每个柱面区域的左图像和右图像之间的光流场,对每个第二拼接区域的图像进行融合,以生成右眼全景图像。Step 1448: Fusion of the images of each second splicing area according to the optical flow field between the left image and the right image of each cylindrical area to generate a right-eye panoramic image.
本发明实施例中,对步骤142至步骤144的具体描述可参见上述对步骤122至步骤124的具体描述,此处不再赘述。In the embodiment of the present invention, for the detailed description of steps 142 to 144, please refer to the above detailed description of steps 122 to 124, which will not be described again here.
步骤16、根据左眼全景图像和右眼全景图像,生成全景立体图像。Step 16: Generate a panoramic stereoscopic image based on the left eye panoramic image and the right eye panoramic image.
本发明实施例中,步骤16具体可包括:In this embodiment of the present invention, step 16 may specifically include:
步骤161、将左眼全景图像进行重投影,生成左眼可视画面。Step 161: Reproject the left-eye panoramic image to generate a left-eye visible picture.
其中,左眼可视画面为全景立体图像左眼可视画面,该左眼可视画面为包含左眼可视范围的图像。The left-eye viewable picture is a panoramic stereoscopic left-eye viewable picture, and the left-eye viewable picture is an image including the left eye's visible range.
步骤162、将右眼全景图像进行重投影,生成左眼可视画面。Step 162: Reproject the right-eye panoramic image to generate a left-eye viewable image.
其中,右眼可视画面为全景立体图像右眼可视画面,该右眼可视画面包含右眼可视范围的图像。The right-eye viewable picture is a panoramic stereoscopic right-eye viewable picture, and the right-eye viewable picture includes images within the right eye's visible range.
在步骤161和步骤162中,重投影可包括平面投影、曲面投影或者球面投影等多种投影方式。 In steps 161 and 162, reprojection may include multiple projection methods such as plane projection, curved surface projection, or spherical projection.
具体地,通过建立的投影模型,根据用户双眼的朝向,将左眼全景图像和右眼全景图像进行重投影,分别生成左眼可视画面和右眼可视画面。Specifically, through the established projection model, the left-eye panoramic image and the right-eye panoramic image are re-projected according to the orientation of the user's eyes to generate left-eye visible images and right-eye visible images respectively.
步骤163、将左眼可视画面和右眼可视画面进行同步处理,生成立体全景图像。Step 163: Synchronize the left eye viewable image and the right eye viewable image to generate a stereoscopic panoramic image.
图6为本发明实施例中生成的全景立体图像的一种呈现方式示意图,如图6所示,左窗口为左眼全景图像经重投影后得到的左眼可视画面,右窗口为右眼全景图像经重投影后得到的右眼可视画面。左窗口和右窗口中的画面具有真实的视差,从而实现立体显示效果。左窗口和右窗口内的画面可以根据用户双眼朝向实时变化,可呈现原左眼全景图像和右眼全景图像中的每一个角度的画面,从而实现全景立体显示效果。Figure 6 is a schematic diagram of a presentation method of a panoramic stereoscopic image generated in an embodiment of the present invention. As shown in Figure 6, the left window is the left eye viewable picture obtained by reprojecting the left eye panoramic image, and the right window is the right eye The panoramic image is re-projected and the right-eye viewable image is obtained. The pictures in the left and right windows have real parallax, thus achieving a three-dimensional display effect. The pictures in the left and right windows can change in real time according to the direction of the user's eyes, and can present pictures from every angle in the original left-eye panoramic image and right-eye panoramic image, thereby achieving a panoramic three-dimensional display effect.
本发明实施例提供的技术方案中,根据获取的多个鱼眼图像,生成每个鱼眼图像对应的左眼经纬度图像和右眼经纬度图像,提取多个左眼经纬度图像之间的第一拼接区域,通过对第一拼接区域进行图像融合生成左眼全景图像,提取多个右眼经纬度图像之间的第二拼接区域,通过对第二拼接区域进行图像融合生成右眼全景图像,根据左眼全景图像和右眼全景图像生成全景立体图像,可消除全景立体图像的拼接区域出现的断层或重影现象,能够减少全景立体图像的画面失真,从而提高了全景立体图像的真实感。In the technical solution provided by the embodiment of the present invention, according to the multiple acquired fisheye images, the left eye longitude and latitude image and the right eye longitude and latitude image corresponding to each fisheye image are generated, and the first splicing between the multiple left eye longitude and latitude images is extracted. area, generate a left eye panoramic image by image fusion of the first splicing area, extract the second splicing area between multiple right eye longitude and latitude images, generate a right eye panoramic image by image fusion of the second splicing area, according to the left eye The panoramic image and the right-eye panoramic image generate a panoramic stereoscopic image, which can eliminate the faults or ghosting phenomena in the splicing area of the panoramic stereoscopic image, and can reduce the picture distortion of the panoramic stereoscopic image, thus improving the realism of the panoramic stereoscopic image.
图7为本发明实施例提供的一种全景立体图像的生成装置的结构示意图,如图7所示,该装置包括:鱼眼图像获取模块11、经纬度图像生成模块12、融合模块13和生成模块14。其中,鱼眼图像获取模块11可包括多个鱼眼镜头。Figure 7 is a schematic structural diagram of a panoramic stereoscopic image generation device provided by an embodiment of the present invention. As shown in Figure 7, the device includes: a fisheye image acquisition module 11, a latitude and longitude image generation module 12, a fusion module 13 and a generation module. 14. Wherein, the fisheye image acquisition module 11 may include multiple fisheye lenses.
鱼眼图像获取模块11用于获取多个鱼眼图像。经纬度图像生成模块12用于根据获取的多个鱼眼图像,生成每个鱼眼图像对应的左眼经纬度图像和右眼经纬度图像;融合模块13用于提取多个左眼经纬度图像之间的第一拼接区域得到多个第一拼接区域,对每个所述第一拼接区域进行图像融合以生成左眼全景图像;提取多个右眼经纬度图像之间的第二拼接区域得到多个第二拼接区域,对每个所述第二拼接区域进行图像融合以生成右眼全景图像;生成模块14用于根据所述左眼全景图像和所述右眼全景图像,生成全景立体图像。 The fisheye image acquisition module 11 is used to acquire multiple fisheye images. The longitude and latitude image generation module 12 is used to generate a left eye longitude and latitude image and a right eye longitude and latitude image corresponding to each fisheye image based on the multiple acquired fisheye images; the fusion module 13 is used to extract the third image between the multiple left eye longitude and latitude images. A splicing area is used to obtain multiple first splicing areas, and image fusion is performed on each of the first splicing areas to generate a left eye panoramic image; second splicing areas between multiple right eye longitude and latitude images are extracted to obtain multiple second splicing areas. area, perform image fusion on each of the second splicing areas to generate a right-eye panoramic image; the generating module 14 is configured to generate a panoramic stereoscopic image according to the left-eye panoramic image and the right-eye panoramic image.
本发明实施例中,经纬度图像生成模块12具体用于在设置的左眼空白经纬度图上划分出左眼视角拼接块区域,在所述左眼视角拼接块区域中,根据鱼眼图像到经纬度图的投影关系,对所述鱼眼图像进行经纬度图展开,生成所述鱼眼图像对应的左眼经纬度图像;在设置的右眼空白经纬度图上划分出右眼视角拼接块区域,在所述右眼视角拼接块区域中,根据鱼眼图像到经纬度图的投影关系,对所述鱼眼图像进行经纬度图展开,生成所述鱼眼图像对应的右眼经纬度图像。In the embodiment of the present invention, the longitude and latitude image generation module 12 is specifically used to divide the left eye view splicing block area on the set left eye blank longitude and latitude map. In the left eye view splicing block area, the fisheye image is converted into the longitude and latitude map. projection relationship, expand the longitude and latitude map of the fisheye image, and generate the left eye longitude and latitude image corresponding to the fisheye image; divide the right eye perspective splicing block area on the set right eye blank longitude and latitude map, and divide the right eye perspective splicing block area on the right eye In the eye view splicing block area, according to the projection relationship between the fisheye image and the longitude and latitude map, the longitude and latitude map of the fisheye image is expanded to generate the right eye longitude and latitude image corresponding to the fisheye image.
本发明实施例中,经纬度图像生成模块12具体用于根据鱼眼图像到经纬度图的投影关系,将所述鱼眼图像的中心点投影到所述左眼空白经纬度图上形成中心点的投影,将所述中心点的投影所在的经线定义为左眼空白经纬度图中心线;将所述左眼空白经纬度图的距离左眼空白经纬度图中心线左侧设定角度值的经线作为左眼视角中心线;在所述左眼空白经纬度图中以所述左眼视角中心线为视场角中心线取设定视场角的图像区域作为所述左眼视角拼接块区域。In the embodiment of the present invention, the latitude and longitude image generation module 12 is specifically configured to project the center point of the fisheye image onto the blank latitude and longitude map of the left eye to form a projection of the center point based on the projection relationship between the fisheye image and the latitude and longitude map. The meridian where the projection of the center point is located is defined as the center line of the left eye blank longitude and latitude map; the meridian with a set angle value to the left of the left eye blank longitude and latitude map center line of the left eye blank longitude and latitude map is used as the left eye viewing angle center line; in the left eye blank longitude and latitude map, the left eye viewing angle center line is the viewing field angle center line, and the image area with the set viewing angle is taken as the left eye viewing angle splicing block area.
本发明实施例中,经纬度图像生成模块12具体用于根据鱼眼图像到经纬度图的投影关系,将所述鱼眼图像的中心点投影到所述右眼空白经纬度图上形成中心点的投影,将所述中心点的投影所在的经线定义为右眼空白经纬度图中心线;将所述右眼空白经纬度图的距离右眼空白经纬度图中心线右侧设定角度值的经线作为右眼视角中心线;在所述右眼空白经纬度图中以所述右眼视角中心线为视场角中心线取设定视场角的图像区域作为所述右眼视角拼接块区域。In the embodiment of the present invention, the latitude and longitude image generation module 12 is specifically configured to project the center point of the fisheye image onto the blank latitude and longitude map of the right eye to form a projection of the center point based on the projection relationship between the fisheye image and the latitude and longitude map. The meridian where the projection of the center point is located is defined as the center line of the right eye blank longitude and latitude map; the meridian with a set angle value to the right of the right eye blank latitude and longitude map from the right eye blank longitude and latitude map is used as the right eye viewing angle center line; in the right eye blank longitude and latitude map, the right eye viewing angle center line is the viewing field angle center line, and the image area with the set viewing angle is taken as the right eye viewing angle splicing block area.
本发明实施例中,融合模块13具体用于将多个第一拼接区域投影到单位球面上,得到单位球面上的多个第一待拼接区域;将单位球面上的多个第一待拼接区域分别映射到单位球面对应的柱面上,得到多个第一待拼接区域对应的柱面区域;计算多个第一待拼接区域对应的柱面区域的左图像和右图像之间的光流场;根据每个柱面区域的左图像和右图像之间的光流场,对每个所述第一拼接区域的图像进行融合,以生成所述左眼全景图像。In the embodiment of the present invention, the fusion module 13 is specifically used to project multiple first splicing areas onto the unit sphere to obtain multiple first areas to be spliced on the unit sphere; Map them to the cylinder corresponding to the unit sphere respectively to obtain the cylinder areas corresponding to the multiple first areas to be spliced; calculate the optical flow field between the left image and the right image of the cylinder areas corresponding to the multiple first areas to be spliced. ; According to the optical flow field between the left image and the right image of each cylindrical area, the images of each first splicing area are fused to generate the left eye panoramic image.
本发明实施例中,融合模块13具体用于将多个第二拼接区域投影到单位球面上,得到单位球面上的多个第二待拼接区域;将单位球面上的多个第二待拼接区域分别映射到单位球面对应的柱面上,得到多个第二待拼接区域对应的柱面 区域;计算多个第二待拼接区域对应的柱面区域的左图像和右图像之间的光流场;根据每个柱面区域的左图像和右图像之间的光流场,对每个所述第二拼接区域的图像进行融合,以生成所述右眼全景图像。In the embodiment of the present invention, the fusion module 13 is specifically used to project multiple second splicing areas onto the unit sphere to obtain multiple second areas to be spliced on the unit sphere; Map them to the cylinder corresponding to the unit sphere respectively, and obtain the cylinders corresponding to multiple second areas to be spliced. area; calculate the optical flow field between the left image and the right image of the cylindrical area corresponding to the multiple second areas to be spliced; according to the optical flow field between the left image and the right image of each cylindrical area, for each The images of the second splicing area are fused to generate the right eye panoramic image.
本发明实施例中,生成模块14具体用于将所述左眼全景图像进行重投影,生成所述左眼可视画面;将所述右眼全景图像进行重投影,生成所述右眼可视画面;将所述左眼可视画面和所述右眼可视画面进行同步处理,生成所述全景立体图像。In the embodiment of the present invention, the generation module 14 is specifically configured to re-project the left-eye panoramic image to generate the left-eye viewable picture; re-project the right-eye panoramic image to generate the right-eye viewable picture. Picture; synchronize the left-eye visible picture and the right-eye visible picture to generate the panoramic stereoscopic image.
本发明实施例提供的技术方案中,通过本发明实施例中全景立体图像的生成装置生成全景立体图像,可消除全景立体图像的拼接区域出现的断层或重影现象,能够减少全景立体图像的画面失真,从而提高了全景立体图像的真实感。In the technical solution provided by the embodiment of the present invention, the panoramic stereoscopic image is generated by the panoramic stereoscopic image generating device in the embodiment of the present invention, which can eliminate the faults or ghosting phenomena that appear in the splicing area of the panoramic stereoscopic image, and can reduce the appearance of the panoramic stereoscopic image. Distortion, thus improving the realism of panoramic stereoscopic images.
本发明实施例提供了一种存储介质,存储介质包括存储的程序,其中,在程序运行时控制存储介质所在设备执行上述全景立体图像的生成方法的实施例的各步骤,具体描述可参见上述全景立体图像的生成方法的实施例。An embodiment of the present invention provides a storage medium. The storage medium includes a stored program. When the program is running, the device where the storage medium is located is controlled to execute each step of the embodiment of the method for generating a panoramic stereoscopic image. For detailed description, please refer to the above panoramic view. An embodiment of a stereoscopic image generation method.
本发明实施例提供了一种电子设备,电子设备包括多个用于获取鱼眼图像的鱼眼镜头,电子设备还包括存储器和处理器,存储器用于存储包括程序指令的信息,处理器用于控制程序指令的执行,程序指令被处理器加载并执行时实现上述全景立体图像的生成方法的实施例的各步骤,具体描述可参见上述全景立体图像的生成方法的实施例。An embodiment of the present invention provides an electronic device. The electronic device includes a plurality of fisheye lenses for acquiring fisheye images. The electronic device also includes a memory and a processor. The memory is used to store information including program instructions, and the processor is used to control Execution of the program instructions. When the program instructions are loaded and executed by the processor, each step of the embodiment of the above-mentioned method for generating a panoramic stereoscopic image is implemented. For detailed description, please refer to the embodiment of the above-mentioned method for generating a panoramic stereoscopic image.
图8为本发明实施例提供的一种电子设备的示意图,图8中鱼眼镜头未具体画出。如图8所示,该实施例的电子设备30包括:处理器31、存储器32以及存储在存储器32中并可在处理器31上运行的计算机程序33,该计算机程序33被处理器31执行时实现实施例中的应用于全景立体图像的生成方法,为避免重复,此处不一一赘述。或者,该计算机程序被处理器31执行时实现实施例中应用于全景立体图像的生成装置中各模型/单元的功能,为避免重复,此处不一一赘述。FIG. 8 is a schematic diagram of an electronic device provided by an embodiment of the present invention. The fisheye lens is not specifically shown in FIG. 8 . As shown in FIG. 8 , the electronic device 30 of this embodiment includes: a processor 31 , a memory 32 and a computer program 33 stored in the memory 32 and executable on the processor 31 . When the computer program 33 is executed by the processor 31 To avoid duplication, the methods for generating panoramic stereoscopic images in the implementation embodiment will not be described one by one here. Alternatively, when the computer program is executed by the processor 31, the functions of each model/unit in the device for generating panoramic stereoscopic images in the embodiment are implemented. To avoid duplication, they will not be described one by one here.
电子设备30包括,但不仅限于,处理器31、存储器32。本领域技术人员可以理解,图8仅仅是电子设备30的示例,并不构成对电子设备30的限定,可 以包括比图示更多或更少的部件,或者组合某些部件,或者不同的部件,例如电子设备30还可以包括输入输出设备、网络接入设备、总线等。The electronic device 30 includes, but is not limited to, a processor 31 and a memory 32 . Those skilled in the art can understand that FIG. 8 is only an example of the electronic device 30 and does not constitute a limitation on the electronic device 30. To include more or less components than shown in the figures, or to combine certain components, or to use different components, for example, the electronic device 30 may also include input and output devices, network access devices, buses, etc.
所称处理器31可以是中央处理单元(Central Processing Unit,CPU),还可以是其他通用处理器、数字信号处理器(Digital Signal Processor,DSP)、专用集成电路(Application Specific Integrated Circuit,ASIC)、现场可编程门阵列(Field-Programmable Gate Array,FPGA)或者其他可编程逻辑器件、分立门或者晶体管逻辑器件、分立硬件组件等。通用处理器可以是微处理器或者该处理器也可以是任何常规的处理器等。The so-called processor 31 can be a central processing unit (Central Processing Unit, CPU), or other general-purpose processor, digital signal processor (Digital Signal Processor, DSP), application specific integrated circuit (Application Specific Integrated Circuit, ASIC), Field-Programmable Gate Array (FPGA) or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components, etc. A general-purpose processor may be a microprocessor or the processor may be any conventional processor, etc.
存储器32可以是电子设备30的内部存储单元,例如电子设备30的硬盘或内存。存储器32也可以是电子设备30的外部存储设备,例如电子设备30上配备的插接式硬盘,智能存储卡(Smart Media Card,SMC),安全数字(Secure Digital,SD)卡,闪存卡(Flash Card)等。进一步地,存储器32还可以既包括服务器30的内部存储单元也包括外部存储设备。存储器32用于存储计算机程序以及服务器所需的其他程序和数据。存储器32还可以用于暂时地存储已经输出或者将要输出的数据。The memory 32 may be an internal storage unit of the electronic device 30 , such as a hard disk or memory of the electronic device 30 . The memory 32 can also be an external storage device of the electronic device 30, such as a plug-in hard disk, a smart memory card (Smart Media Card, SMC), a secure digital (SD) card, a flash memory card (Flash) equipped on the electronic device 30. Card) etc. Further, the memory 32 may also include both an internal storage unit of the server 30 and an external storage device. Memory 32 is used to store computer programs and other programs and data required by the server. The memory 32 may also be used to temporarily store data that has been output or is to be output.
所属领域的技术人员可以清楚地了解到,为描述的方便和简洁,上述描述的系统,装置和单元的具体工作过程,可以参考前述方法实施例中的对应过程,在此不再赘述。Those skilled in the art can clearly understand that for the convenience and simplicity of description, the specific working processes of the systems, devices and units described above can be referred to the corresponding processes in the foregoing method embodiments, and will not be described again here.
在本发明所提供的几个实施例中,应该理解到,所揭露的系统,装置和方法,可以通过其它的方式实现。例如,以上所描述的装置实施例仅仅是示意性的,例如,所述单元的划分,仅仅为一种逻辑功能划分,实际实现时可以有另外的划分方式,例如,多个单元或组件可以结合或者可以集成到另一个系统,或一些特征可以忽略,或不执行。另一点,所显示或讨论的相互之间的耦合或直接耦合或通信连接可以是通过一些接口,装置或单元的间接耦合或通信连接,可以是电性,机械或其它的形式。In the several embodiments provided by the present invention, it should be understood that the disclosed systems, devices and methods can be implemented in other ways. For example, the device embodiments described above are only illustrative. For example, the division of the units is only a logical function division. In actual implementation, there may be other division methods. For example, multiple units or components may be combined. Either it can be integrated into another system, or some features can be ignored, or not implemented. On the other hand, the coupling or direct coupling or communication connection between each other shown or discussed may be through some interfaces, and the indirect coupling or communication connection of the devices or units may be in electrical, mechanical or other forms.
所述作为分离部件说明的单元可以是或者也可以不是物理上分开的,作为单元显示的部件可以是或者也可以不是物理单元,即可以位于一个地方,或者也 可以分布到多个网络单元上。可以根据实际的需要选择其中的部分或者全部单元来实现本实施例方案的目的。The units described as separate components may or may not be physically separate. The components shown as units may or may not be physical units, that is, they may be located in one place, or they may not be physically separated. Can be distributed to multiple network units. Some or all of the units can be selected according to actual needs to achieve the purpose of the solution of this embodiment.
另外,在本发明各个实施例中的各功能单元可以集成在一个处理单元中,也可以是各个单元单独物理存在,也可以两个或两个以上单元集成在一个单元中。上述集成的单元既可以采用硬件的形式实现,也可以采用硬件加软件功能单元的形式实现。In addition, each functional unit in various embodiments of the present invention can be integrated into one processing unit, or each unit can exist physically alone, or two or more units can be integrated into one unit. The above integrated unit can be implemented in the form of hardware or in the form of hardware plus software functional units.
上述以软件功能单元的形式实现的集成的单元,可以存储在一个计算机可读取存储介质中。上述软件功能单元存储在一个存储介质中,包括若干指令用以使得一台计算机装置(可以是个人计算机,服务器,或者网络装置等)或处理器(Processor)执行本发明各个实施例所述方法的部分步骤。而前述的存储介质包括:U盘、移动硬盘、只读存储器(Read-Only Memory,ROM)、随机存取存储器(Random Access Memory,RAM)、磁碟或者光盘等各种可以存储程序代码的介质。The above-mentioned integrated unit implemented in the form of a software functional unit can be stored in a computer-readable storage medium. The above-mentioned software functional unit is stored in a storage medium and includes a number of instructions to cause a computer device (which can be a personal computer, server, or network device, etc.) or processor (Processor) to execute the methods described in various embodiments of the present invention. Some steps. The aforementioned storage media include: U disk, mobile hard disk, read-only memory (ROM), random access memory (Random Access Memory, RAM), magnetic disk or optical disk and other media that can store program code. .
以上所述仅为本发明的较佳实施例而已,并不用以限制本发明,凡在本发明的精神和原则之内,所做的任何修改、等同替换、改进等,均应包含在本发明保护的范围之内。 The above are only preferred embodiments of the present invention and are not intended to limit the present invention. Any modifications, equivalent substitutions, improvements, etc. made within the spirit and principles of the present invention shall be included in the present invention. within the scope of protection.

Claims (10)

  1. 一种全景立体图像的生成方法,其特征在于,包括:A method for generating panoramic stereoscopic images, which is characterized by including:
    根据获取的多个鱼眼图像,生成每个鱼眼图像对应的左眼经纬度图像和右眼经纬度图像;Based on the multiple acquired fisheye images, generate the left eye longitude and latitude image and the right eye longitude and latitude image corresponding to each fisheye image;
    提取多个左眼经纬度图像之间的第一拼接区域得到多个第一拼接区域,对每个所述第一拼接区域进行图像融合以生成左眼全景图像;Extract first splicing areas between multiple left-eye longitude and latitude images to obtain multiple first splicing areas, and perform image fusion on each of the first splicing areas to generate a left-eye panoramic image;
    提取多个右眼经纬度图像之间的第二拼接区域得到多个第二拼接区域,对每个所述第二拼接区域进行图像融合以生成右眼全景图像;Extract second splicing areas between multiple right eye latitude and longitude images to obtain multiple second splicing areas, and perform image fusion on each of the second splicing areas to generate a right eye panoramic image;
    根据所述左眼全景图像和所述右眼全景图像,生成全景立体图像。A panoramic stereoscopic image is generated based on the left eye panoramic image and the right eye panoramic image.
  2. 根据权利要求1所述的方法,其特征在于,所述根据获取的多个鱼眼图像,生成每个鱼眼图像对应的左眼经纬度图像和右眼经纬度图像,包括:The method according to claim 1, characterized in that generating a left eye longitude and latitude image and a right eye longitude and latitude image corresponding to each fisheye image based on the acquired multiple fisheye images includes:
    在设置的左眼空白经纬度图上划分出左眼视角拼接块区域,在所述左眼视角拼接块区域中,根据鱼眼图像到经纬度图的投影关系,对所述鱼眼图像进行经纬度图展开,生成所述鱼眼图像对应的左眼经纬度图像;A left-eye view splicing block area is divided on the set left-eye blank longitude and latitude map. In the left-eye view splicing block area, the longitude and latitude map of the fisheye image is expanded according to the projection relationship between the fisheye image and the longitude and latitude map. , generate the left eye latitude and longitude image corresponding to the fisheye image;
    在设置的右眼空白经纬度图上划分出右眼视角拼接块区域,在所述右眼视角拼接块区域中,根据鱼眼图像到经纬度图的投影关系,对所述鱼眼图像进行经纬度图展开,生成所述鱼眼图像对应的右眼经纬度图像。A right-eye view splicing block area is divided on the set right-eye blank longitude and latitude map. In the right-eye view splicing block area, the longitude and latitude map of the fisheye image is expanded according to the projection relationship between the fisheye image and the longitude and latitude map. , generate the right eye latitude and longitude image corresponding to the fisheye image.
  3. 根据权利要求2所述的方法,其特征在于,所述在设置的左眼空白经纬度图上划分出左眼视角拼接块区域,包括:The method according to claim 2, characterized in that dividing the left eye perspective splicing block area on the set left eye blank longitude and latitude map includes:
    根据鱼眼图像到经纬度图的投影关系,将所述鱼眼图像的中心点投影到所述左眼空白经纬度图上形成中心点的投影,将所述中心点的投影所在的经线定义为左眼空白经纬度图中心线;According to the projection relationship between the fisheye image and the latitude and longitude map, the center point of the fisheye image is projected onto the blank latitude and longitude map of the left eye to form a projection of the center point, and the meridian where the projection of the center point is located is defined as the left eye Blank latitude and longitude map centerline;
    将所述左眼空白经纬度图的距离左眼空白经纬度图中心线左侧设定角度值的经线作为左眼视角中心线;The meridian with a set angle value to the left of the center line of the left eye blank longitude and latitude map from the left eye blank longitude and latitude map is used as the left eye viewing angle centerline;
    在所述左眼空白经纬度图中以所述左眼视角中心线为视场角中心线取设定视场角的图像区域作为所述左眼视角拼接块区域。 In the left-eye blank longitude and latitude map, the left-eye viewing angle center line is the viewing field angle center line, and the image area with the set viewing angle is taken as the left-eye viewing angle splicing block area.
  4. 根据权利要求1所述的方法,其特征在于,所述在设置的右眼空白经纬度图上划分出右眼视角拼接块区域,包括:The method according to claim 1, characterized in that dividing the right eye perspective splicing block area on the set right eye blank longitude and latitude map includes:
    根据鱼眼图像到经纬度图的投影关系,将所述鱼眼图像的中心点投影到所述右眼空白经纬度图上形成中心点的投影,将所述中心点的投影所在的经线定义为右眼空白经纬度图中心线;According to the projection relationship between the fisheye image and the longitude and latitude map, the center point of the fisheye image is projected onto the blank longitude and latitude map of the right eye to form a projection of the center point, and the meridian where the projection of the center point is located is defined as the right eye Blank latitude and longitude map centerline;
    将所述右眼空白经纬度图的距离右眼空白经纬度图中心线右侧设定角度值的经线作为右眼视角中心线;The meridian with a set angle value to the right of the center line of the blank latitude and longitude map of the right eye from the center line of the blank latitude and longitude map of the right eye is used as the center line of the right eye viewing angle;
    在所述右眼空白经纬度图中以所述右眼视角中心线为视场角中心线取设定视场角的图像区域作为所述右眼视角拼接块区域。In the right eye blank latitude and longitude map, the right eye viewing angle center line is the viewing field angle center line, and the image area with the set viewing angle is taken as the right eye viewing angle splicing block area.
  5. 根据权利要求1所述的方法,其特征在于,所述对每个所述第一拼接区域进行图像融合以生成左眼视角全景图像,包括:The method according to claim 1, characterized in that, performing image fusion on each of the first splicing areas to generate a left-eye perspective panoramic image includes:
    将多个第一拼接区域投影到单位球面上,得到单位球面上的多个第一待拼接区域;Project multiple first splicing areas onto the unit sphere to obtain multiple first areas to be spliced on the unit sphere;
    将单位球面上的多个第一待拼接区域分别映射到单位球面对应的柱面上,得到多个第一待拼接区域对应的柱面区域;Map the multiple first areas to be spliced on the unit sphere to the cylinder corresponding to the unit sphere respectively to obtain the cylinder areas corresponding to the multiple first areas to be spliced;
    计算多个第一待拼接区域对应的柱面区域的左图像和右图像之间的光流场;Calculate the optical flow field between the left image and the right image of the cylindrical area corresponding to the plurality of first areas to be spliced;
    根据每个柱面区域的左图像和右图像之间的光流场,对每个所述第一拼接区域的图像进行融合,以生成所述左眼全景图像。According to the optical flow field between the left image and the right image of each cylindrical area, the images of each first splicing area are fused to generate the left eye panoramic image.
  6. 根据权利要求1所述的方法,其特征在于,所述对每个所述第二拼接区域进行图像融合以生成右眼视角全景图像,包括:The method according to claim 1, characterized in that, performing image fusion on each of the second splicing areas to generate a right-eye perspective panoramic image includes:
    将多个第二拼接区域投影到单位球面上,得到单位球面上的多个第二待拼接区域;Project multiple second splicing areas onto the unit sphere to obtain multiple second areas to be spliced on the unit sphere;
    将单位球面上的多个第二待拼接区域分别映射到单位球面对应的柱面上,得到多个第二待拼接区域对应的柱面区域;Map the multiple second areas to be spliced on the unit sphere to the cylinder corresponding to the unit sphere respectively, to obtain the cylinder areas corresponding to the multiple second areas to be spliced;
    计算多个第二待拼接区域对应的柱面区域的的左图像和右图像之间的光流场;Calculate the optical flow field between the left image and the right image of the cylindrical area corresponding to the plurality of second areas to be spliced;
    根据每个柱面区域的左图像和右图像之间的光流场,对每个所述第二拼接 区域的图像进行融合,以生成所述右眼全景图像。According to the optical flow field between the left image and the right image of each cylinder area, for each second splicing The regional images are fused to generate the right eye panoramic image.
  7. 根据权利要求1所述的方法,其特征在于,所述根据所述左眼全景图像和所述右眼全景图像,生成全景立体图像,包括:The method of claim 1, wherein generating a panoramic stereoscopic image based on the left eye panoramic image and the right eye panoramic image includes:
    将所述左眼全景图像进行重投影,生成所述左眼可视画面;Reproject the left-eye panoramic image to generate the left-eye visible picture;
    将所述右眼全景图像进行重投影,生成所述右眼可视画面;Reproject the right-eye panoramic image to generate the right-eye visible picture;
    将所述左眼可视画面和所述右眼可视画面进行同步处理,生成所述全景立体图像。The left-eye viewable picture and the right-eye viewable picture are synchronized to generate the panoramic stereoscopic image.
  8. 一种全景立体图像的生成装置,其特征在于,包括:A device for generating panoramic stereoscopic images, which is characterized by including:
    鱼眼图像获取模块,用于获取多个鱼眼图像;Fisheye image acquisition module, used to acquire multiple fisheye images;
    经纬度图像生成模块,用于根据获取的多个鱼眼图像,生成每个鱼眼图像对应的左眼经纬度图像和右眼经纬度图像;The longitude and latitude image generation module is used to generate the left eye longitude and latitude image and the right eye longitude and latitude image corresponding to each fisheye image based on the multiple acquired fisheye images;
    融合模块,用于提取多个左眼经纬度图像之间的第一拼接区域得到多个第一拼接区域,对每个所述第一拼接区域进行图像融合以生成左眼全景图像;提取多个右眼经纬度图像之间的第二拼接区域得到多个第二拼接区域,对每个所述第二拼接区域进行图像融合以生成右眼全景图像;The fusion module is used to extract the first splicing area between multiple left-eye longitude and latitude images to obtain multiple first splicing areas, perform image fusion on each of the first splicing areas to generate a left-eye panoramic image; extract multiple right-eye panoramic images. A plurality of second splicing areas are obtained from the second splicing areas between the eye longitude and latitude images, and image fusion is performed on each of the second splicing areas to generate a right eye panoramic image;
    生成模块,用于根据所述左眼全景图像和所述右眼全景图像,生成全景立体图像。A generating module, configured to generate a panoramic stereoscopic image based on the left eye panoramic image and the right eye panoramic image.
  9. 一种电子设备,其特征在于,所述电子设备包括多个用于获取鱼眼图像的鱼眼镜头;所述电子设备还包括存储器和处理器,所述存储器用于存储包括程序指令的信息,所述处理器用于控制程序指令的执行,其特征在于,所述程序指令被处理器加载并执行时实现权利要求1至7任意一项所述的全景立体图像的生成方法的步骤。An electronic device, characterized in that the electronic device includes a plurality of fisheye lenses for acquiring fisheye images; the electronic device further includes a memory and a processor, and the memory is used to store information including program instructions, The processor is used to control the execution of program instructions, which are characterized in that, when the program instructions are loaded and executed by the processor, the steps of the panoramic stereoscopic image generation method described in any one of claims 1 to 7 are implemented.
  10. 一种存储介质,其特征在于,所述存储介质包括存储的程序,其中,在所述程序运行时控制所存储介质所在电子设备执行权利要求1至7中任一项所述的全景立体图像的生成方法的步骤。 A storage medium, characterized in that the storage medium includes a stored program, wherein when the program is run, the electronic device where the stored medium is located is controlled to execute the panoramic stereoscopic image according to any one of claims 1 to 7. Generate the steps of the method.
PCT/CN2023/102498 2022-06-27 2023-06-26 Method and apparatus for generating panoramic stereoscopic image, and electronic device WO2024002023A1 (en)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN202210744903.5 2022-06-27
CN202210744903.5A CN115174805B (en) 2022-06-27 2022-06-27 Panoramic stereo image generation method and device and electronic equipment

Publications (1)

Publication Number Publication Date
WO2024002023A1 true WO2024002023A1 (en) 2024-01-04

Family

ID=83489272

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2023/102498 WO2024002023A1 (en) 2022-06-27 2023-06-26 Method and apparatus for generating panoramic stereoscopic image, and electronic device

Country Status (2)

Country Link
CN (1) CN115174805B (en)
WO (1) WO2024002023A1 (en)

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN115174805B (en) * 2022-06-27 2024-07-02 影石创新科技股份有限公司 Panoramic stereo image generation method and device and electronic equipment
WO2024103366A1 (en) * 2022-11-18 2024-05-23 影石创新科技股份有限公司 Panoramic unmanned aerial vehicle

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20160269717A1 (en) * 2015-03-12 2016-09-15 Canon Kabushiki Kaisha Image processing apparatus, image processing method, and recording medium
CN106534832A (en) * 2016-11-21 2017-03-22 深圳岚锋创视网络科技有限公司 Stereoscopic image processing method and system
CN106791762A (en) * 2016-11-21 2017-05-31 深圳岚锋创视网络科技有限公司 Method for processing stereo image and system
CN107369129A (en) * 2017-06-26 2017-11-21 深圳岚锋创视网络科技有限公司 A kind of joining method of panoramic picture, device and portable terminal
CN110349077A (en) * 2018-04-02 2019-10-18 杭州海康威视数字技术股份有限公司 A kind of panoramic image synthesis method, device and electronic equipment
CN115174805A (en) * 2022-06-27 2022-10-11 影石创新科技股份有限公司 Panoramic stereo image generation method and device and electronic equipment

Family Cites Families (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106981050A (en) * 2016-01-18 2017-07-25 深圳岚锋创视网络科技有限公司 The method and apparatus of the image flame detection shot to fish eye lens
CN107274340A (en) * 2016-04-08 2017-10-20 北京岚锋创视网络科技有限公司 A kind of panorama image generation method and device
CN108122191B (en) * 2016-11-29 2021-07-06 成都美若梦景科技有限公司 Method and device for splicing fisheye images into panoramic image and panoramic video

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20160269717A1 (en) * 2015-03-12 2016-09-15 Canon Kabushiki Kaisha Image processing apparatus, image processing method, and recording medium
CN106534832A (en) * 2016-11-21 2017-03-22 深圳岚锋创视网络科技有限公司 Stereoscopic image processing method and system
CN106791762A (en) * 2016-11-21 2017-05-31 深圳岚锋创视网络科技有限公司 Method for processing stereo image and system
CN107369129A (en) * 2017-06-26 2017-11-21 深圳岚锋创视网络科技有限公司 A kind of joining method of panoramic picture, device and portable terminal
CN110349077A (en) * 2018-04-02 2019-10-18 杭州海康威视数字技术股份有限公司 A kind of panoramic image synthesis method, device and electronic equipment
CN115174805A (en) * 2022-06-27 2022-10-11 影石创新科技股份有限公司 Panoramic stereo image generation method and device and electronic equipment

Also Published As

Publication number Publication date
CN115174805B (en) 2024-07-02
CN115174805A (en) 2022-10-11

Similar Documents

Publication Publication Date Title
WO2024002023A1 (en) Method and apparatus for generating panoramic stereoscopic image, and electronic device
US11076142B2 (en) Real-time aliasing rendering method for 3D VR video and virtual three-dimensional scene
EP2328125B1 (en) Image splicing method and device
US8928654B2 (en) Methods, systems, devices and associated processing logic for generating stereoscopic images and video
US20140098186A1 (en) System and method for creating a navigable, three-dimensional virtual reality environment having ultra-wide field of view
CN108475327A (en) three-dimensional acquisition and rendering
US6388666B1 (en) System and method for generating stereoscopic image data
Devernay et al. Stereoscopic cinema
WO2015196791A1 (en) Binocular three-dimensional graphic rendering method and related system
CN109510975B (en) Video image extraction method, device and system
US11812009B2 (en) Generating virtual reality content via light fields
US20190266802A1 (en) Display of Visual Data with a Virtual Reality Headset
WO2017128887A1 (en) Method and system for corrected 3d display of panoramic image and device
US11417060B2 (en) Stereoscopic rendering of virtual 3D objects
CN104599308B (en) A kind of dynamic chart pasting method based on projection
CN111294580B (en) Camera video projection method, device and equipment based on GPU and storage medium
JP2018504009A (en) Digital video rendering
Bourke Synthetic stereoscopic panoramic images
CN108765582B (en) Panoramic picture display method and device
CN114513646B (en) Method and device for generating panoramic video in three-dimensional virtual scene
Kutka Reconstruction of correct 3-D perception on screens viewed at different distances
CN113821107B (en) Indoor and outdoor naked eye 3D system with real-time and free viewpoint
CN116957913A (en) Panoramic video mapping method, device, electronic equipment and storage medium
CA2252063C (en) System and method for generating stereoscopic image data
CN117459694A (en) Image generation method, device, electronic equipment and storage medium

Legal Events

Date Code Title Description
121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 23830200

Country of ref document: EP

Kind code of ref document: A1