Naked-eye 3D Image Generation Method, System, Electronic Device and Storage Medium
By modulating the correspondence between pixel points and pixelated harmonic diffraction subunits, optimizing pixel resource allocation and imaging focal length, the brightness and clarity problems in naked-eye 3D display technology are solved, and a more realistic 3D image effect is achieved.
Patent Information
- Application Number
- CN202510578641.3
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2025-05-07
- Publication Date
- 2025-07-11
- Estimated Expiration
- 2045-05-07
AI Technical Summary
The existing naked-eye 3D display technology has low brightness and poor clarity, making it difficult to meet the clear and realistic image effects, and is difficult to design and costly.
By acquiring image information at different angles of the display panel, the pixelated harmonic diffraction subunit modulates pixel points, adjusts pixel resource allocation and imaging focal length, optimizes the pixelated harmonic diffraction subunit position, and generates a mixed parallax image.
Improve image brightness and clarity, enhance visual effects, make images more realistic, reduce design difficulty and reduce costs.
Smart Images

Figure CN120111202B_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the technical field of naked-eye 3D display technology, and in particular, to a method, a system, an electronic device, and a storage medium for generating a naked-eye 3D image. Background Art
[0002] At present, the development of flat panel display technology has become increasingly mature, from black and white to color, from static to dynamic, and the resolution has also been greatly improved. However, the flat panel display technology lacks three-dimensional information, which limits the perception of three-dimensional real scenes. And 3D movies with stereoscopic visual effects are more popular than 2D movies lacking a sense of reality. Nowadays, naked-eye 3D has been widely used in fields such as advertising media, exhibitions, etc., and can bring a more profound visual experience to the audience.
[0003] In the prior art, the brightness of traditional naked-eye 3D display technology is still relatively low, and the clarity is poor, resulting in a poor visual effect of the image, making it difficult to meet the requirements of clear and real images, and the design is difficult, resulting in a high cost. Summary of the Invention
[0004] Based on this, the purpose of the present invention is to provide a method, a system, an electronic device, and a storage medium for generating a naked-eye 3D image to solve the above deficiencies in the prior art.
[0005] In a first aspect, the present invention provides a method for generating a naked-eye 3D image, the method including:
[0006] Obtaining image information of several angles of a display panel providing amplitude information, and arranging and mixing the image information of several angles to obtain a multi-view image;
[0007] Modulating pixel points in the multi-view image based on a plurality of pixelated harmonic diffraction sub-units attached to the display panel to obtain modulated pixel points, and corresponding the modulated pixel points to the pixels on the pixelated harmonic diffraction sub-units one by one to obtain a mixed parallax image;
[0008] Allocating pixel resources in the mixed parallax image, and obtaining the coordinates of the optimal viewing position, and adjusting the resolution in the mixed parallax image after allocating the pixel resources according to the coordinates of the optimal viewing position;
[0009] Calculating the focal length information of the pixelated harmonic diffraction sub-units, and solving the focal length of the nth imaging of the pixelated harmonic diffraction sub-units according to the focal length information and the designed wavelength;
[0010] Obtaining the spatial coordinates of several viewing angles, and adjusting the positions of several pixelated harmonic diffraction sub-units according to the spatial coordinates and the imaging focal length.
[0011] Compared with the prior art, the beneficial effects of the present invention are as follows: The mixed parallax image obtained by corresponding the modulated pixel points to the pixels on the pixelated harmonic diffraction sub-units can not only improve the image brightness and clarity, but also enhance the visual effect. By allocating pixel resources to adjust the resolution, the clarity is effectively improved, making the image more realistic. And by adjusting the position of the pixelated harmonic diffraction sub-units through the imaging focal length, the clarity of the image is further improved and the image becomes more realistic.
[0012] Further, the step of obtaining the image information of several angles of the display panel providing amplitude information includes:
[0013] Obtaining the relative position of the display panel according to different viewing positions in space;
[0014] Discretizing each light source of the display panel according to the relative position to obtain several discrete point light sources, and generating three-dimensional image information based on the several discrete point light sources.
[0015] Further, the step of arranging and mixing the image information of several angles to obtain a multi-view image includes:
[0016] Interleaving and arranging the image information of several angles according to the distribution law and arrangement law of the viewpoints of the display panel;
[0017] Converging the interleaved and arranged image information of several angles to the lens focus to obtain stereoscopic three-dimensional image information.
[0018] Further, the step of corresponding the modulated pixel points to the pixels on the pixelated harmonic diffraction sub-units one by one includes:
[0019] Obtaining the tilt parameter and position coordinates of the multi-view image corresponding to the structural center point of the pixelated harmonic diffraction sub-unit;
[0020] Adjusting the pixel point positions in the multi-view image according to the tilt parameter and the position coordinates so that the modulated pixel points are corresponding to the pixels on the pixelated harmonic diffraction sub-units one by one.
[0021] Further, the step of allocating the pixel resources in the mixed parallax image and obtaining the optimal viewing position coordinates includes:
[0022] Based on the optimal viewing position coordinates and the display panel, obtaining the viewing angle between the optimal viewing position and the display panel;
[0023] Based on the viewing angle, the pixel points in the pixelated harmonic diffraction sub-units are mutually mapped with the pixel points in the mixed parallax image.
[0024] Further, the expression for obtaining the focal length information of the pixelated harmonic diffraction sub-unit is:
[0025] ;
[0026] In the formula, represents the focal length, represents the radius of curvature of the pixelated harmonic diffraction sub-unit, represents the refractive index, represents the design wavelength;
[0027] The height expression of the pixelated harmonic diffraction sub-unit is:
[0028] ;
[0029] In the formula, represents the height of the pixelated harmonic diffraction sub-unit, represents the harmonic coefficient;
[0030] The expression for the focal length of the nth imaging is:
[0031] ;
[0032] In the formula, represents the focal length of the nth imaging, represents the wavelength of the incident light, represents the diffraction order, represents the design focal length.
[0033] Further, the steps of obtaining the spatial coordinates of several viewing angles and adjusting the positions of several pixelated harmonic diffraction sub-units according to the spatial coordinates and the imaging focal length include:
[0034] Establish a coordinate system based on the pixelated harmonic diffraction sub-unit, and obtain the spatial coordinates of several viewing angles based on the coordinate system;
[0035] Obtain the distance and angle information between the pixelated harmonic diffraction sub-unit and the display panel according to the spatial coordinates of several viewing angles, and adjust the positions of several pixelated harmonic diffraction sub-units according to the distance, the angle information, and the imaging focal length.
[0036] In a second aspect, the present invention further provides a naked-eye 3D image generation system, and the system includes:
[0037] An acquisition and arrangement module, configured to acquire image information of a display panel providing amplitude information at a plurality of angles, and arrange and mix the image information at the plurality of angles to obtain a multi-view image;
[0038] A modulation and correspondence module, configured to modulate pixel points in the multi-view image based on a plurality of pixelated harmonic diffraction sub-units attached to the display panel to obtain modulated pixel points, and correspond the modulated pixel points to pixels on the pixelated harmonic diffraction sub-units one by one to obtain a mixed parallax image;
[0039] An allocation and adjustment module, configured to allocate pixel resources in the mixed parallax image, obtain the coordinates of the optimal viewing position, and adjust the resolution in the mixed parallax image after allocating the pixel resources according to the coordinates of the optimal viewing position;
[0040] A calculation module, configured to calculate the focal length information of the pixelated harmonic diffraction sub-units, and solve the focal length of the nth imaging of the pixelated harmonic diffraction sub-units according to the focal length information and the designed wavelength;
[0041] An acquisition and adjustment module, configured to acquire the spatial coordinates of a plurality of viewing angles, and adjust the positions of the plurality of pixelated harmonic diffraction sub-units according to the spatial coordinates and the imaging focal length.
[0042] In a third aspect, the present invention further provides an electronic device, including a memory, a processor, and a computer program stored on the memory and executable on the processor, where when the processor executes the computer program, the above-mentioned naked-eye 3D image generation method is implemented.
[0043] In a fourth aspect, the present invention further provides a storage medium, on which a computer program is stored, and when the program is executed by a processor, the above-mentioned naked-eye 3D image generation method is implemented. Description of the Drawings
[0044] Figure 1 It is a flowchart of the naked-eye 3D image generation method in the first embodiment of the present invention;
[0045] Figure 2 It is a structural block diagram of the naked-eye 3D image generation system in the second embodiment of the present invention;
[0046] Figure 3 It is a schematic hardware structure diagram of the electronic device in the third embodiment of the present invention.
[0047] Main Element Symbol Description:
[0048] 10. Acquisition and Arrangement Module; 20. Modulation and Correspondence Module; 30. Allocation and Adjustment Module; 40. Calculation Module; 50. Acquisition and Adjustment Module;
[0049] 60, Bus; 61, Processor; 62, Memory; 63, Communication Interface.
[0050] The following specific embodiments will further illustrate the present invention in conjunction with the above-mentioned drawings. Specific Embodiments
[0051] To facilitate the understanding of the present invention, the present invention will be described more comprehensively below with reference to the relevant drawings. Several embodiments of the present invention are given in the drawings. However, the present invention can be implemented in many different forms and is not limited to the embodiments described herein. On the contrary, these embodiments are provided to make the disclosure of the present invention more thorough and comprehensive.
[0052] It should be noted that when an element is referred to as "fixedly provided on" another element, it can be directly on the other element or there may also be an intermediate element. When an element is considered to be "connected" to another element, it can be directly connected to the other element or there may be an intermediate element at the same time. The terms "vertical", "horizontal", "left", "right" and similar expressions used herein are for illustrative purposes only.
[0053] Unless otherwise defined, all technical and scientific terms used herein have the same meaning as commonly understood by those skilled in the technical field to which the present invention belongs. The terms used in the description of the present invention herein are only for the purpose of describing specific embodiments and are not intended to limit the present invention. The term "and / or" used herein includes any and all combinations of one or more of the related listed items.
[0054] Embodiment 1
[0055] Please refer to Figure 1 , which shows the method for generating a naked-eye 3D image in the first embodiment of the present invention. The method includes steps S1 to S5:
[0056] S1. Obtain the image information of several angles of a display panel providing amplitude information, and arrange and mix the image information of several angles to obtain a multi-view image;
[0057] Specifically, step S1 includes steps S11 to S14:
[0058] S11. Obtain the relative position of the display panel according to different viewing positions in space;
[0059] S12. Discretize each light source of the display panel according to the relative position to obtain several discrete point light sources, and generate three-dimensional image information based on the several discrete point light sources;
[0060] S13. Interleave and arrange the image information at several angles according to the distribution law and arrangement law of the viewpoints of the display panel;
[0061] S14. Converge the image information at several angles after interleaving and arranging to the lens focus to obtain stereoscopic three-dimensional image information;
[0062] It should be noted that the display panel displays a two-dimensional planar image, and the relative spatial position relative to the viewing position can be obtained according to different viewing positions. In three-dimensional space, a three-dimensional object can be regarded as composed of light rays emitted by countless tiny discretized point light sources. Each light source in the image displayed on the display panel is discretized according to the relative position, and each light source emits independent light rays. Then, according to the independently emitted light rays, that is, the light rays independently emitted in the images displayed on the display panel at different viewing positions, three-dimensional image information is generated. Interleave and arrange the image information according to the distribution and arrangement law of the viewpoints of the display panel, and converge it to the lens focus, so as to generate a stereoscopic three-dimensional image corresponding to the two-dimensional image.
[0063] S2. Modulate the pixel points in the multi-view image based on a number of pixelated harmonic diffraction sub-units attached to the display panel to obtain modulated pixel points, and one-to-one correspond the modulated pixel points with the pixels on the pixelated harmonic diffraction sub-units to obtain a mixed parallax image;
[0064] Specifically, step S2 includes steps S21 to S22:
[0065] S21. Obtain the tilt parameter and position coordinates of the multi-view image corresponding to the structural center point of the pixelated harmonic diffraction sub-unit;
[0066] S22. Adjust the position of the pixel points in the multi-view image according to the tilt parameter and the position coordinates, so that the modulated pixel points are one-to-one corresponding to the pixels on the pixelated harmonic diffraction sub-units;
[0067] It should be noted that in this embodiment, the pixelated harmonic diffraction sub-unit is a phase modulation panel, and there are several pixelated harmonic diffraction micro-prisms in the phase modulation panel. By obtaining the tilt parameter and position coordinates of the structural center point of the pixelated harmonic diffraction sub-unit and the pixel points of the corresponding multi-view image, and one-to-one corresponding the remaining pixel points of the multi-view image with the modulated pixel points according to the tilt parameter and the position coordinates;
[0068] It should be noted that during the one-to-one correspondence process, interleaving and arranging are also required to form a multi-view mixed parallax image. In this embodiment, a single image can be expressed as:
[0069] ;
[0070] In the formula, represents a single image, respectively represent the pixel points of the image, represents the diffraction order, represents the harmonic coefficient.
[0071] S3. Allocate the pixel resources in the mixed parallax image, and obtain the coordinates of the optimal viewing position. Adjust the resolution in the mixed parallax image after allocating the pixel resources according to the coordinates of the optimal viewing position;
[0072] Specifically, the step S3 includes steps S31 to S32:
[0073] S31. Based on the coordinates of the optimal viewing position and the display panel, obtain the viewing angle between the optimal viewing position and the display panel;
[0074] S32. Based on the viewing angle, mutually map the pixel points in the pixelated harmonic diffraction sub-unit and the pixel points in the mixed parallax image;
[0075] It should be noted that the optimal viewing point can view the image generated by the display panel more effectively and clearly. Obtain the viewing angle between the optimal viewing point and the display panel according to the position of the optimal viewing point, and then mutually map a number of pixelated harmonic diffraction micro-prisms in the pixelated harmonic diffraction sub-unit and the pixel points in the mixed parallax image according to the viewing angle, so that the generated 3D image is more real and clearer.
[0076] S4. Obtain the focal length information of the pixelated harmonic diffraction sub-unit, and solve the focal length of the nth imaging of the pixelated harmonic diffraction sub-unit according to the focal length information and the design wavelength;
[0077] It should be noted that in this embodiment, the expression for obtaining the focal length information of the pixelated harmonic diffraction sub-unit is:
[0078] ;
[0079] In the formula, represents the focal length, represents the radius of curvature of the pixelated harmonic diffraction sub-unit, represents the refractive index, represents the design wavelength;
[0080] The height expression of the pixelated harmonic diffraction sub-unit is:
[0081] ;
[0082] In the formula, represents the height of the pixelated harmonic diffraction sub-unit, represents the harmonic coefficient;
[0083] The expression for the focal length of the [[n]]-th imaging is:
[0084] ;
[0085] wherein, represents the focal length of the -th imaging, represents the wavelength of the incident light, represents the diffraction order, represents the designed focal length.
[0086] It should be noted that since each pixelated harmonic diffraction sub-unit is non-periodic, each pixelated harmonic diffraction sub-unit has a consistent height.
[0087] S5. Obtain the spatial coordinates of several viewing perspectives, and adjust the positions of several pixelated harmonic diffraction sub-units according to the spatial coordinates and the imaging focal length;
[0088] Specifically, the step S5 includes steps S51 to S52:
[0089] S51. Establish a coordinate system based on the pixelated harmonic diffraction sub-unit, and obtain the spatial coordinates of several viewing perspectives based on the coordinate system;
[0090] S52. Obtain the distance and angle information between the pixelated harmonic diffraction sub-unit and the display panel according to the spatial coordinates of several viewing perspectives, and adjust the positions of several pixelated harmonic diffraction sub-units according to the distance, the angle information and the imaging focal length;
[0091] It should be noted that the length and width of the pixelated harmonic diffraction sub-unit are regarded as the x-axis and y-axis in the spatial coordinate system, and the line perpendicular to the plane of the pixelated harmonic diffraction sub-unit is used as the z-axis. Through this coordinate system, the spatial coordinates of several viewing perspective points can be obtained. Then, the distance and angle information between the pixelated harmonic diffraction sub-unit can be obtained according to the spatial coordinates of several perspective points, and the positions of the pixelated harmonic diffraction sub-units are adjusted according to the distance, angle information and imaging focal length, so that the 3D image formed by the cooperation of the pixelated harmonic diffraction sub-unit and the display panel is clearer, and there is always a feeling of viewing the image at the best viewing position, further improving the clarity and authenticity of the 3D image.
[0092] In summary, in the above-described embodiments of the present invention, the naked-eye 3D image generation method obtains a mixed parallax image by corresponding the modulated pixel points to the pixels on the pixelated harmonic diffraction sub-units one by one. This not only improves the image brightness and clarity but also enhances the visual effect. By allocating pixel resources to adjust the resolution, the clarity is effectively improved, making the image more realistic. And by adjusting the position of the pixelated harmonic diffraction sub-units through the imaging focal length, the clarity of the image is further improved and the image becomes more realistic.
[0093] Embodiment 2
[0094] The present invention also provides a naked-eye 3D image generation system. Please refer to Figure 2 , which shows the naked-eye 3D image generation system in the second embodiment of the present invention. The system includes:
[0095] An acquisition and arrangement module 10, configured to acquire image information of a plurality of angles of a display panel providing amplitude information, and arrange and mix the image information of the plurality of angles to obtain a multi-view image;
[0096] A modulation and correspondence module 20, configured to modulate the pixel points in the multi-view image based on a plurality of pixelated harmonic diffraction sub-units attached to the display panel to obtain modulated pixel points, and correspond the modulated pixel points to the pixels on the pixelated harmonic diffraction sub-units one by one to obtain a mixed parallax image;
[0097] An allocation and adjustment module 30, configured to allocate pixel resources in the mixed parallax image, obtain the coordinates of the optimal viewing position, and adjust the resolution in the mixed parallax image after allocating the pixel resources according to the coordinates of the optimal viewing position;
[0098] A calculation module 40, configured to calculate the focal length information of the pixelated harmonic diffraction sub-unit, and solve the imaging focal length of the pixelated harmonic diffraction sub-unit for the nth time according to the focal length information and the designed wavelength;
[0099] The expression for calculating the focal length information of the pixelated harmonic diffraction sub-unit is:
[0100] ;
[0101] In the formula, represents the focal length, represents the radius of curvature of the pixelated harmonic diffraction sub-unit, represents the refractive index, represents the designed wavelength;
[0102] The expression for the height of the pixelated harmonic diffraction sub-unit is:
[0103] ;
[0104] In the formula, represents the height of the pixelated harmonic diffraction sub-unit, represents the harmonic coefficient;
[0105] The expression for the focal length of the [[[number]]]th imaging is:
[0106] ;
[0107] In the formula, represents the [[[number]]]th imaging focal length, represents the wavelength of the incident light, represents the diffraction order, represents the designed focal length;
[0108] An acquisition and adjustment module 50 is obtained, which is used to acquire the spatial coordinates of a plurality of viewing perspectives, and adjust the positions of the plurality of pixelated harmonic diffraction sub-units according to the spatial coordinates and the imaging focal length.
[0109] Specifically, in some alternative embodiments, the acquisition and arrangement module 10 includes:
[0110] A first acquisition unit, which is used to acquire the relative position of the display panel according to different viewing positions in space;
[0111] A discretization unit, which is used to discretize each light source of the display panel according to the relative position to obtain a plurality of discrete point light sources, and generate three-dimensional image information based on the plurality of discrete point light sources;
[0112] An arrangement unit, which is used to interleave and arrange the image information at a plurality of angles according to the distribution rule and arrangement rule of the viewpoints of the display panel;
[0113] A convergence unit, which is used to converge the image information at a plurality of angles after interleaving arrangement to the lens focus to obtain stereoscopic three-dimensional image information.
[0114] Specifically, in some alternative embodiments, the modulation corresponding module 20 includes:
[0115] A second acquisition unit, which is used to acquire the tilt parameter and position coordinates of the multi-view image corresponding to the structure center point of the pixelated harmonic diffraction sub-unit;
[0116] An adjustment corresponding unit, which is used to adjust the pixel positions in the multi-view image according to the tilt parameter and the position coordinates, so that the modulated pixels correspond one by one to the pixels on the pixelated harmonic diffraction sub-unit.
[0117] Specifically, in some alternative embodiments, the allocation adjustment module 30 includes:
[0118] A third acquisition unit, configured to obtain a viewing angle between the optimal viewing point and the display panel based on the optimal viewing point coordinates and the display panel;
[0119] A mapping unit, configured to mutually map the pixel points in the pixelated harmonic diffraction sub-units and the pixel points in the mixed parallax image based on the viewing angle.
[0120] Specifically, in some alternative embodiments, the acquisition adjustment module 50 includes:
[0121] A building unit, configured to establish a coordinate system based on the pixelated harmonic diffraction sub-units, and obtain the spatial coordinates of several viewing angles based on the coordinate system;
[0122] An acquisition adjustment unit, configured to obtain the distance and angle information between the pixelated harmonic diffraction sub-units and the display panel according to the spatial coordinates of several viewing angles, and adjust the positions of several pixelated harmonic diffraction sub-units according to the distance, the angle information, and the imaging focal length.
[0123] The functions or operation steps realized when the above-mentioned modules and units are executed are substantially the same as those in the above method embodiments, and will not be elaborated here.
[0124] The principle of realization and the technical effects generated by the naked-eye 3D image generation system provided in the embodiments of the present invention are the same as those in the foregoing method embodiments. For a brief description, for the parts not mentioned in the system embodiments, reference may be made to the corresponding content in the foregoing method embodiments.
[0125] Embodiment III
[0126] The present invention also provides an electronic device. Please refer to Figure 3 , which shows a schematic hardware structure diagram of the electronic device in the third embodiment of the present invention.
[0127] The electronic device may include a processor 61 and a memory 62 storing computer program instructions.
[0128] Specifically, the above-mentioned processor 61 may include a central processing unit (CPU), or an application specific integrated circuit (ASIC), or may be configured as one or more integrated circuits implementing the present application.
[0129] Among them, the memory 62 may include a mass storage for data or instructions. By way of example and not limitation, the memory 62 may include a hard disk drive (HDD), a floppy disk drive, a solid state drive (SSD), a flash memory, an optical disc, a magneto-optical disc, a magnetic tape, or a universal serial bus (USB) drive, or a combination of two or more of these. In a suitable case, the memory 62 may include a removable or non-removable (or fixed) medium. In a suitable case, the memory 62 may be inside or outside the data processing device. In a particular embodiment, the memory 62 is a non-volatile memory. In a particular embodiment, the memory 62 includes a read-only memory (ROM) and a random access memory (RAM). In a suitable case, the ROM may be a mask-programmed ROM, a programmable ROM (PROM), an erasable PROM (EPROM), an electrically erasable PROM (EEPROM), an electrically alterable read-only memory (EAROM), or a flash memory (FLASH), or a combination of two or more of these. In a suitable case, the RAM may be a static random access memory (SRAM) or a dynamic random access memory (DRAM), where the DRAM may be a fast page mode dynamic random access memory (FPMDRAM), an extended date out dynamic random access memory (EDODRAM), a synchronous dynamic random access memory (SDRAM), etc.
[0130] The memory 62 can be used to store or cache various data files required for processing and / or communication, as well as possible computer program instructions executed by the processor 61.
[0131] The processor 61 reads and executes the computer program instructions stored in the memory 62 to implement the naked-eye 3D image generation method of the first embodiment above.
[0132] In some of the embodiments, the electronic device may further include a communication interface 63 and a bus 60. Among them, as Figure 3 shown, the processor 61, the memory 62, and the communication interface 63 are connected through the bus 60 and complete communication with each other.
[0133] The communication interface 63 is used to implement communication between the various modules, devices, units, and / or devices in the present application. The communication interface 63 can also implement data communication with other components such as external devices, image / data acquisition devices, databases, external storage, and image / data processing workstations, etc.
[0134] Bus 60 includes hardware, software, or both, and couples components of the device together. Bus 60 includes, but is not limited to, at least one of the following: Data Bus, Address Bus, Control Bus, Expansion Bus, Local Bus. By way of example and not limitation, Bus 60 may include an Accelerated Graphics Port (AGP) or other graphics bus, an Extended Industry Standard Architecture (EISA) bus, a Front Side Bus (FSB), a Hyper Transport (HT) interconnect, an Industry Standard Architecture (ISA) bus, an InfiniBand interconnect, a Low Pin Count (LPC) bus, a memory bus, a Micro Channel Architecture (MCA) bus, a Peripheral Component Interconnect (PCI) bus, a PCI-Express (PCI-X) bus, a Serial Advanced Technology Attachment (SATA) bus, a Video Electronics Standards Association Local Bus (VLB) bus, or other suitable bus or a combination of two or more of these. In suitable cases, Bus 60 may include one or more buses. Although the present application describes and illustrates specific buses, the present application contemplates any suitable bus or interconnect.
[0135] The electronic device can obtain a naked-eye 3D image generation system and execute the naked-eye 3D image generation method of Embodiment 1.
[0136] In addition, in combination with the naked-eye 3D image generation method in Embodiment 1 above, the present application can be implemented by providing a storage medium. Computer program instructions are stored on the storage medium; when the computer program instructions are executed by a processor, the naked-eye 3D image generation method of Embodiment 1 above is implemented.
[0137] In the description of this specification, the description with reference to terms such as "one embodiment", "some embodiments", "examples", "specific examples", or "some examples" means that the specific features, structures, materials, or characteristics described in connection with the embodiment or example are included in at least one embodiment or example of the present invention. In this specification, the schematic representations of the above terms do not necessarily refer to the same embodiment or example. Moreover, the specific features, structures, materials, or characteristics described can be combined in any one or more embodiments or examples in a suitable manner.
[0138] The above-described embodiments merely represent several implementation manners of the present invention. The description is relatively specific and detailed, but it should not be construed as a limitation on the scope of the patent of the present invention. It should be noted that for those of ordinary skill in the art, without departing from the concept of the present invention, several modifications and improvements can still be made, and these all belong to the protection scope of the present invention. Therefore, the protection scope of the patent of the present invention shall be subject to the appended claims.
Claims
1. A method for generating a naked-eye 3D image, characterized in that The method includes: Obtaining image information of a display panel providing amplitude information at a plurality of angles, and arranging and mixing the image information at the plurality of angles to obtain a multi-view image; Modulating pixel points in the multi-view image based on a plurality of pixelated harmonic diffraction subunits attached to the display panel to obtain modulated pixel points, and corresponding the modulated pixel points to the pixels on the pixelated harmonic diffraction subunits one by one to obtain a mixed parallax image; The step of corresponding the modulated pixel points to the pixels on the pixelated harmonic diffraction subunits one by one includes: Obtaining the tilt parameter and position coordinates of the multi-view image corresponding to the structural center point of the pixelated harmonic diffraction subunit; Adjusting the positions of the pixel points in the multi-view image according to the tilt parameter and the position coordinates so that the modulated pixel points are corresponding to the pixels on the pixelated harmonic diffraction subunits one by one; Allocating pixel resources in the mixed parallax image, and obtaining the optimal viewing position coordinates, and adjusting the resolution in the mixed parallax image after allocating the pixel resources according to the optimal viewing position coordinates; Obtaining the focal length information of the pixelated harmonic diffraction subunit, and solving the focal length of the pixelated harmonic diffraction subunit for the nth imaging according to the focal length information and the designed wavelength; Obtaining the spatial coordinates of a plurality of viewing angles, and adjusting the positions of the plurality of pixelated harmonic diffraction subunits according to the spatial coordinates and the imaging focal length.
2. The method for generating a naked-eye 3D image according to claim 1, wherein The step of obtaining image information of a display panel providing amplitude information at a plurality of angles includes: Obtaining the relative position of the display panel according to different viewing positions in space; Discretizing each light source of the display panel according to the relative position to obtain a plurality of discrete point light sources, and generating three-dimensional image information based on the plurality of discrete point light sources.
3. The naked-eye 3D image generation method according to claim 1, wherein The step of arranging and mixing the image information at a plurality of angles to obtain a multi-view image includes: Interleaving and arranging the image information at a plurality of angles according to the distribution rule and arrangement rule of the viewpoints of the display panel; Converging the interleaved and arranged image information at a plurality of angles to the lens focal point to obtain three-dimensional image information.
4. The method for generating a naked-eye 3D image according to claim 1, wherein, The step of allocating pixel resources in the mixed parallax image and obtaining the optimal viewing position coordinates includes: Obtaining the viewing angle between the optimal viewing position and the display panel based on the optimal viewing position coordinates and the display panel; Mutually mapping the pixel points in the pixelated harmonic diffraction subunit and the pixel points in the mixed parallax image based on the viewing angle.
5. The method for generating a naked-eye 3D image according to claim 1, wherein The expression for obtaining the focal length information of the pixelated harmonic diffraction subunit is: ; In the formula, represents the focal length, represents the radius of curvature of the pixelated harmonic diffraction sub-unit, represents the refractive index, represents the design wavelength; The expression for the height of the pixelated harmonic diffraction subunit is: ; Wherein, represents the height of the pixelated harmonic diffraction sub-unit, represents the harmonic coefficient; The expression for the focal length of the nth imaging is: ; In the formula, represents the th imaging focal length, represents the incident light wavelength, represents the diffraction order, represents the designed focal length.
6. The method for generating a naked-eye 3D image according to claim 1, wherein The step of obtaining the spatial coordinates of a plurality of viewing angles, and adjusting the positions of the plurality of pixelated harmonic diffraction subunits according to the spatial coordinates and the imaging focal length includes: Establishing a coordinate system based on the pixelated harmonic diffraction subunit, and obtaining the spatial coordinates of a plurality of viewing angles based on the coordinate system; Obtain the distance and angle information between the pixelated harmonic diffraction sub-units and the display panel according to the spatial coordinates of several of the viewing perspectives, and adjust the positions of several pixelated harmonic diffraction sub-units according to the distance, the angle information, and the imaging focal length.
7. A naked-eye 3D image generation system, characterized in that, The system includes: An acquisition and arrangement module, configured to acquire image information of several angles of a display panel providing amplitude information, and arrange and mix the image information of several angles to obtain a multi-view image; A modulation and correspondence module, configured to modulate pixel points in the multi-view image based on several pixelated harmonic diffraction sub-units attached to the display panel to obtain modulated pixel points, and correspond the modulated pixel points to the pixels on the pixelated harmonic diffraction sub-units one by one to obtain a mixed parallax image; The modulation and correspondence module includes: A second acquisition unit, configured to acquire the tilt parameter and position coordinates of the multi-view image corresponding to the structural center point of the pixelated harmonic diffraction sub-unit; An adjustment and correspondence unit, configured to adjust the positions of pixel points in the multi-view image according to the tilt parameter and the position coordinates, so that the modulated pixel points are corresponded to the pixels on the pixelated harmonic diffraction sub-units one by one; An allocation and adjustment module, configured to allocate pixel resources in the mixed parallax image, and obtain the coordinates of the optimal viewing position, and adjust the resolution in the mixed parallax image after allocating the pixel resources according to the coordinates of the optimal viewing position; A calculation module, configured to calculate the focal length information of the pixelated harmonic diffraction sub-unit, and solve the imaging focal length of the pixelated harmonic diffraction sub-unit for the several-th time according to the focal length information and the designed wavelength; An acquisition and adjustment module, configured to acquire the spatial coordinates of several viewing perspectives, and adjust the positions of several pixelated harmonic diffraction sub-units according to the spatial coordinates and the imaging focal length.
8. An electronic device, comprising a memory, a processor, and a computer program stored on the memory and executable on the processor, characterized in that, When the processor executes the computer program, it implements the naked-eye 3D image generation method according to any one of claims 1 to 6.
9. A storage medium having a computer program stored thereon, characterized in that, When the program is executed by the processor, it implements the naked-eye 3D image generation method according to any one of claims 1 to 6.
Citation Information
Patent Citations
Naked eye three-dimensional display device
CN112255820A
System and method for realizing super multi-view three-dimensional display
CN116600097A