Method, apparatus, computer device and storage medium for generating 3D images
By subtracting the left and right images in 3D display technology to generate parallax images and adjusting the image according to the user's parallax tolerance value, the stun problem caused by parallax differences is solved, and user-friendly 3D image generation is achieved.
Patent Information
- Application Number
- CN202210723914.5
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2022-06-23
- Publication Date
- 2025-08-01
- Estimated Expiration
- 2042-06-23
AI Technical Summary
In the existing 3D display technology, the large parallax difference between left and right images causes the user to feel dizzy and destroys stereo vision.
By decrementing images on the left and right images, we will determine the stereoscopic parallax intensity evaluation value and the user parallax tolerance value, and adjust the image to generate the target image to avoid excessive differences in retinal imaging.
It effectively avoids dizziness caused by excessive parallax differences, ensures the user's stereoscopic visual effect, and generates 3D images suitable for users.
Smart Images

Figure CN114998562B_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the field of image processing, and in particular to a method, apparatus, computer device, and storage medium for generating a 3D image. Background Art
[0002] Binocular vision refers to the vision of observing an object with both eyes simultaneously. Although the two eyes form retinal images respectively, normal binocular vision can fuse the two visual images into a single perceptual object. If the object observed by the two eyes is a flat object, the two retinal images both fall on the corresponding points of the two eyes' retinas, and the positions of the corresponding points are the same; if the object observed by the two eyes is a three-dimensional object, the retinal images of the two eyes are not exactly the same, forming binocular disparity and generating a stereoscopic perception.
[0003] In 3D display, the left image and the right image that are fused into a 3D image are observed by the left eye and the right eye respectively. The virtual images formed by the left image and the right image on the retina are transmitted to the same area of the cortical visual center through the optic nerves on both sides, and a complete and single perceptual experience of the object image is fused. Since the left image and the right image are not exactly the same, the retinal images of the two eyes are not exactly the same, forming binocular disparity and generating a stereoscopic perception. If the left image and the right image of the 3D image to be fused are too different from the retinal images of the two eyes, the user's stereoscopic vision will be damaged, and the user will feel dizzy when watching the 3D image. Summary of the Invention
[0004] The present invention provides a method, apparatus, computer device, and storage medium for generating a 3D image, which can be adjusted when the difference between the tolerance value of the user's disparity intensity and the evaluation value of the stereoscopic disparity intensity of the image is too large, so as to avoid the difference in retinal imaging of the two images forming the 3D display image being too large, damaging the stereoscopic vision, and generating a sense of dizziness.
[0005] The first aspect of the present invention provides a method for generating a 3D image, including the following steps:
[0006] Subtract the left image and the right image to obtain a disparity image, where the left image and the right image have an associated relationship;
[0007] Determine the evaluation value of the stereoscopic disparity intensity corresponding to the disparity image;
[0008] Determine the tolerance value of the target user for the disparity intensity according to the visual data of the target user;
[0009] Compare the evaluation value of the stereoscopic disparity intensity with the tolerance value of the target user for the disparity intensity to obtain a comparison result;
[0010] If the comparison result is greater than a preset adjustment value, adjust the left image and the right image according to the comparison result to obtain a target left image and a target right image;
[0011] Interleave the target left image and the target right image to generate a 3D image.
[0012] A second aspect of the present invention provides a terminal device, including:
[0013] A parallax image determination unit, configured to subtract the left image and the right image to obtain a parallax image, where the left image and the right image have an associated relationship;
[0014] An evaluation value determination unit, configured to determine a stereoscopic parallax intensity evaluation value corresponding to the parallax image;
[0015] A tolerance value determination unit, configured to determine a tolerance value of the target user for the parallax intensity according to visual data of the target user;
[0016] A comparison unit, configured to compare the stereoscopic parallax intensity evaluation value with the tolerance value of the target user for the parallax intensity to obtain a comparison result;
[0017] An adjustment unit, configured to adjust the left image and the right image according to the comparison result to obtain a target left image and a target right image when the comparison result is greater than a preset adjustment value;
[0018] An interleaving unit, configured to interleave the target left image and the target right image to generate a 3D image.
[0019] A third aspect of the present invention provides a computer device, which includes at least one connected processor, a memory, and a transceiver. Among them, the memory is used to store program codes, and the processor is used to call the program codes in the memory to execute the steps of the method for generating a 3D image described in the first aspect above.
[0020] A fourth aspect of the present invention provides a computer storage medium, which includes instructions that, when running on a computer, cause the computer to execute the steps of the method for generating a 3D image described in any of the above aspects.
[0021] In the embodiments provided by the present invention, compared with the prior art, a terminal device can first subtract the left and right images to obtain a disparity image, determine a stereoscopic disparity intensity evaluation value of the disparity image, and determine a tolerance value of the target user for the disparity intensity according to the visual data of the target user. Then, when the difference between the stereoscopic disparity intensity evaluation value and the tolerance value of the target user for the disparity intensity is greater than a preset adjustment value, the left and right images are adjusted according to the difference, and the adjusted images are interleaved to generate a 3D image corresponding to the target image. Thus, when the difference between the tolerance value of the user for the disparity intensity and the stereoscopic disparity intensity evaluation value of the image is too large, adjustment can be performed to avoid excessive difference in retinal imaging of the two images forming the 3D display image, which destroys the stereoscopic vision and causes dizziness. BRIEF DESCRIPTION OF THE DRAWINGS
[0022] Figure 1 is a schematic flowchart of a method for generating a 3D image provided by an embodiment of the present invention;
[0023] Figure 2 is a schematic virtual structure diagram of a terminal device provided by an embodiment of the present invention;
[0024] Figure 3 is a schematic hardware structure diagram of a terminal device provided by an embodiment of the present invention. DETAILED DESCRIPTION OF THE EMBODIMENTS
[0025] The technical solutions in the embodiments of the present invention will be clearly and completely described below. Apparently, the described embodiments are only a part of the embodiments of the present invention, rather than all the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by those of ordinary skill in the art without creative efforts shall fall within the protection scope of the present invention.
[0026] The method for generating a 3D image provided by an embodiment of the present invention will be described below from the perspective of a terminal device. Please refer to Figure 1 , Figure 1 is a schematic flowchart of a method for generating a 3D image provided by an embodiment of the present invention, including:
[0027] 101. Subtract the left image and the right image to obtain a disparity image.
[0028] In this embodiment, the terminal device may first determine a target image to be 3D displayed, and then segment or copy the target image to obtain a left image and a right image corresponding to the target image. Then, the left image and the right image are subtracted from each other to obtain a disparity image. Specifically, the terminal device may construct a filtering system in advance. The filtering system includes an optical 4f system and a sine grating. The sine grating is disposed on the spectrum plane of the optical 4f system. Then, the left image and the right image are respectively input into the filtering system to obtain a first target image corresponding to the left image and a second target image corresponding to the right image on the image plane of the filtering system. Then, the distance between the left image and the right image on the object plane of the filtering system is adjusted so that the first target image and the second target image coincide. Finally, the sine grating is displaced until the phase difference between the first target image and the second target image is an odd multiple of π to obtain a disparity image.
[0029] That is, the sine grating provided in the filtering system can cause three images (A′ +1 , A0′, A -1 ′) and (B +1 ′, B0′, B -1 ′) to appear on the image plane for the left image A and the right image B respectively. Then, the distance between A and B on the object plane is adjusted so that the image A′ +1 (i.e., the first target image) and the image B +1 ′ (i.e., the second target image) coincide in spatial position. Then, the sine grating filter is finely displaced to continuously change the phase difference δ between the image A′ +1 and the image B +1 ′. When the phase difference δ = π, 3π..., image subtraction is achieved to obtain a disparity image.
[0030] It should be noted that the above explains image subtraction through a filtering system. Of course, other methods can also be used for image subtraction, and specific methods are not limited.
[0031] 102. Determine the stereoscopic disparity intensity evaluation value corresponding to the disparity image.
[0032] In this embodiment, the terminal device may process each pixel point in the disparity image to obtain the electrical signal value corresponding to each pixel point. Specifically, each pixel point may be processed by a photoelectric converter to obtain the electrical signal value corresponding to each pixel point. Then, the electrical signal values corresponding to each pixel point in the disparity image are squared and then added together to calculate the sum of the squares of the electrical signal values of all pixel points in the disparity image. And based on the sum of the electrical signal values of all pixel points in the disparity image and the number of all pixel points in the disparity image, the average electrical signal value is determined, and the average electrical signal value is determined as the stereoscopic disparity intensity evaluation value corresponding to the disparity image.
[0033] 103. Determine the tolerance value of the target user for the parallax intensity based on the visual data of the target user.
[0034] In this embodiment, the terminal device may first obtain the visual data of the target user, where the visual data of the target user includes the subjective strabismus angle of the target user and the pupil distance of the target user. Then, the terminal device determines the tolerance value of the target user for the parallax intensity based on the subjective strabismus angle of the target user and the pupil distance of the target user. Specifically, the terminal device may determine the tolerance value of the target user for the parallax intensity through the following formula:
[0035] ScreenOffsetX = (TargetDistance - ScreenDistance) * tan(thetaInArc + theta0);
[0036] Among them, ScreenOffsetX is the tolerance value of the target user for the parallax intensity, TargetDistance is the distance between the virtual image corresponding to the target image and the binoculars of the target user, ScreenDistance is the vertical distance between the target user and the display screen, thetaInArc is the horizontal angle between the monocular line of sight of the target user and the horizontal direction directly in front of the binoculars of the target user, and theta0 is the subjective strabismus angle. thetaInArc is determined through the following formula:
[0037] thetaInArc = arctan(PD * 0.5 / TargetDistance);
[0038] Among them, PD is the pupil distance of the target user.
[0039] It should be noted that when the distance of the virtual image (TargetDistance) changes, the horizontal offset (ScreenOffsetX) of the left and right images projected onto the display screen by perspective projection will also change accordingly. The distance of the virtual image refers to the distance between the virtual image of the visual object and the two eyes in visual training or for normal people to view, that is, from the nearest fusion distance to infinity. In addition, if the target user is a normal user, the subjective strabismus angle of the target user is 0.
[0040] Another way to determine the tolerance value of the target user for the parallax intensity is also provided in the embodiment of the present invention, as follows:
[0041] The terminal device can also determine the tolerance value of the target user for the parallax intensity through the following formula:
[0042] ScreenOffsetX = PD * 0.5 * (TargetDistance - ScreenDistance) / TargetDistance;
[0043] Among them, ScreenOffsetX is the tolerance value of the target user for the parallax intensity, PD is the interpupillary distance of the target user, TargetDistance is the distance between the virtual image corresponding to the target image and the binoculars of the target user, and ScreenDistance is the vertical distance between the target user and the display screen.
[0044] It should be noted that through steps 101 to 102, the terminal device can determine the stereoscopic parallax intensity evaluation value corresponding to the parallax image. Through step 103, the terminal device can determine the tolerance value of the target user for the parallax intensity according to the visual data of the target user. However, there is no restriction on the execution order between steps 101 to 102 and step 103. Step 101 to 102 can be executed first, step 103 can be executed first, or they can be executed simultaneously, and there is no specific limitation.
[0045] 104. Compare the stereoscopic parallax intensity evaluation value with the tolerance value of the target user for the parallax intensity to obtain a comparison result.
[0046] In this embodiment, after the terminal device determines the stereoscopic parallax intensity evaluation value corresponding to the parallax image and the tolerance value of the target user for the parallax intensity, it can compare the stereoscopic parallax intensity evaluation value with the tolerance value of the target user for the parallax intensity to obtain a comparison result. The comparison here is mainly to compare the difference between the two.
[0047] 105. If the comparison result is greater than the preset adjustment value, adjust the left image and / or the right image according to the comparison result.
[0048] In this embodiment, after the terminal device obtains the comparison result, it can compare the comparison result with the preset adjustment value set in advance to determine whether the comparison result is greater than the preset adjustment value. If the comparison result is greater than the preset adjustment value, it means that the target user will feel dizzy when viewing the 3D image formed by the interweaving of the left image and the right image. Then, it is necessary to adjust the left image and the right image according to the comparison result.
[0049] It should be noted that when the terminal device adjusts the left and right pictures through the horizontal offset, it can keep the left picture fixed and move the right picture away from the left picture or closer to the left picture according to the comparison result, or keep the right picture fixed and move the left picture away from the right picture or closer to the right picture according to the comparison result, or move the left and right pictures simultaneously, moving away from or closer to each other according to the comparison result. When the left picture is fixed, the original left picture is the target left picture, and the right picture is adjusted based on the comparison result. The adjusted right picture is the target right picture, and vice versa.
[0050] 106. Interleave the target left image and the target right image to generate a 3D image.
[0051] In this embodiment, after determining the target left screen and the target right screen, the terminal device may interleave the target left screen and the target right screen to generate a target 3D image corresponding to the target image.
[0052] Compared with the prior art, in the embodiment provided by the present invention, the terminal device may first subtract the left and right images to obtain a disparity image, determine the stereo disparity intensity evaluation value of the disparity image, and determine the tolerance value of the target user for the disparity intensity according to the visual data of the target user. Then, when the difference between the stereo disparity intensity evaluation value and the tolerance value of the target user for the disparity intensity is greater than a preset adjustment value, adjust the left image and the right image according to the difference, and interleave the adjusted images to generate a 3D image corresponding to the target image. Thus, adjustment can be performed when the difference between the tolerance value of the user's disparity intensity and the stereo disparity intensity evaluation value of the image is too large, avoiding the destruction of stereoscopic vision and the generation of dizziness due to the excessive difference in retinal imaging of the two images forming the 3D display image.
[0053] The above describes the embodiments of the present invention from the perspective of the method for generating a 3D image. The following describes the embodiments of the present invention from the perspective of the terminal device.
[0054] Please refer to Figure 2 , Figure 2 which is a schematic virtual structure diagram of the terminal device provided by the embodiment of the present invention. The terminal device 200 includes:
[0055] A disparity image determination unit 201, configured to subtract the left image and the right image to obtain a disparity image, where the left image and the right image have an associated relationship;
[0056] An evaluation value determination unit 202, configured to determine the stereo disparity intensity evaluation value corresponding to the disparity image;
[0057] A tolerance value determination unit 203, configured to determine the tolerance value of the target user for the disparity intensity according to the visual data of the target user;
[0058] A comparison unit 204, configured to compare the stereo disparity intensity evaluation value with the tolerance value of the target user for the disparity intensity to obtain a comparison result;
[0059] An adjustment unit 205, configured to adjust the left image and the right image according to the comparison result when the comparison result is greater than a preset adjustment value to obtain a target left image and a target right image;
[0060] An interleaving unit 206 for interleaving the target left image and the target right image to generate a 3D image.
[0061] In a possible design, the parallax image determination unit 201 is specifically configured to:
[0062] Input the left image and the right image into a filtering system to obtain a first target image corresponding to the left image and a second target image corresponding to the right image on the image plane of the filtering system. The filtering system includes an optical 4f system and a sine grating, and the sine grating is disposed on the spectrum plane of the optical 4f system;
[0063] Adjust the distance between the left image and the right image on the object plane of the filtering system so that the first target image coincides with the second target image;
[0064] Displace the sine grating to an odd multiple of π in the phase difference between the first target image and the second target image to obtain the parallax image.
[0065] In a possible design, the evaluation value determination unit 202 is specifically configured to:
[0066] Process each pixel point in the parallax image to obtain an electrical signal value corresponding to each pixel point;
[0067] Calculate the sum of the squares of the electrical signal values of all pixel points in the parallax image according to the electrical signal value corresponding to each pixel point;
[0068] Determine an average electrical signal value according to the sum of the squares of the electrical signal values of all pixel points in the parallax image and the number of all pixel points in the parallax image;
[0069] Determine the average electrical signal value as the stereoscopic parallax intensity evaluation value corresponding to the parallax image.
[0070] In a possible design, the tolerance value determination unit 203 is specifically configured to:
[0071] Obtain the subjective strabismus angle of the target user and the interpupillary distance of the target user;
[0072] Determine the tolerance value of the target user to the parallax intensity according to the subjective strabismus angle of the target user and the interpupillary distance of the target user.
[0073] In a possible design, the tolerance value determination unit 203 is specifically configured to:
[0074] Determine the tolerance value of the target user to the parallax intensity through the following formula:
[0075] ScreenOffsetX = (TargetDistance - ScreenDistance) * tan(thetaInArc +
[0076] theta0);
[0077] Wherein, ScreenOffsetX is the tolerance value of the target user for the parallax intensity, TargetDistance is the distance between the virtual image corresponding to the parallax image and the binoculars of the target user, ScreenDistance is the vertical distance between the target user and the display screen, thetaInArc is the horizontal angle between the monocular line of sight of the target user and the front of the binoculars of the target user, and theta0 is the subjective strabismus angle. The thetaInArc is determined by the following formula:
[0078] thetaInArc = arctan(PD * 0.5 / TargetDistance);
[0079] Wherein, PD is the interpupillary distance of the target user.
[0080] In a possible design, the tolerance value determination unit 203 is specifically configured to:
[0081] Determine the tolerance value of the target user for the parallax intensity by the following formula:
[0082] ScreenOffsetX = PD * 0.5 * (TargetDistance - ScreenDistance) / TargetDistance;
[0083] Wherein, ScreenOffsetX is the tolerance value of the target user for the parallax intensity, PD is the interpupillary distance of the target user, TargetDistance is the distance between the virtual image corresponding to the parallax image and the binoculars of the target user, and ScreenDistance is the vertical distance between the target user and the display screen.
[0084] Next, another terminal device provided by the embodiments of the present invention will be introduced. Please refer to Figure 3 as shown in Figure 3 is a schematic hardware structure diagram of the terminal device provided by the embodiments of the present invention. The terminal device 300 includes:
[0085] a receiver 301, a transmitter 302, a processor 303, and a memory 304 (where the number of processors 303 in the terminal device 300 can be one or more, Figure 3Take a processor as an example). In some embodiments of the present invention, the receiver 301, the transmitter 302, the processor 303, and the memory 304 may be connected by a bus or other means. Among them, Figure 3 Take the connection by bus as an example.
[0086] The memory 304 may include a read-only memory and a random access memory, and provide instructions and data to the processor 303. A part of the memory 304 may also include NVRAM. The memory 304 stores an operating system and operation instructions, executable modules, or data structures, or subsets thereof, or extended sets thereof. Among them, the operation instructions may include various operation instructions for implementing various operations. The operating system may include various system programs for implementing various basic services and processing hardware-based tasks.
[0087] The processor 303 controls the operation of the terminal device. The processor 303 may also be referred to as a CPU. In a specific application, the various components of the terminal device are coupled together through a bus system. Among them, the bus system may include a power bus, a control bus, a status signal bus, etc. in addition to the data bus. However, for the sake of clear illustration, various buses are referred to as a bus system in the figure.
[0088] The method for generating the 3D image disclosed in the above embodiments of the present invention may be applied to the processor 303 or implemented by the processor 303. The processor 303 may be an integrated circuit chip with signal processing capabilities. During the implementation process, each step of the above Figure 1 shown method may be completed by the integrated logic circuit in the hardware of the processor 303 or the instructions in the form of software. The above-mentioned processor 303 may be a general-purpose processor, DSP, ASIC, FPGA, or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components. It can implement or execute the various methods, steps, and logic block diagrams disclosed in the embodiments of the present invention. The general-purpose processor may be a microprocessor or the processor may also be any conventional processor, etc. The steps of the method disclosed in combination with the embodiments of the present invention may be directly embodied as being executed by a hardware decoding processor, or executed by a combination of hardware and software modules in the decoding processor. The software module may be located in a mature storage medium in the art such as a random access memory, a flash memory, a read-only memory, a programmable read-only memory, or an electrically erasable programmable memory, a register, etc. This storage medium is located in the memory 304, and the processor 303 reads the information in the memory 304 and combines its hardware to complete the steps of the above method.
[0089] An embodiment of the present invention also provides a computer-readable medium containing computer-executable instructions that enable a server to execute the method for generating a 3D image described in the above embodiments. The implementation principle and technical effects are similar and will not be elaborated here.
[0090] In addition, it should be noted that the device embodiments described above are merely illustrative. The units described as separate components may or may not be physically separated, and the components shown as units may or may not be physical units, that is, they may be located in one place or distributed to multiple network units. Some or all of the modules can be selected according to actual needs to achieve the purpose of the solution of this embodiment. In addition, in the attached drawings of the device embodiments provided by the present invention, the connection relationship between modules indicates that they have a communication connection, which can be specifically implemented as one or more communication buses or signal lines.
[0091] In the above embodiments, it can be implemented in whole or in part by software, hardware, firmware, or any combination thereof. When implemented using software, it can be implemented in whole or in part in the form of a computer program product.
[0092] The above are only partial embodiments of the present invention, and thus do not limit the patent scope of the present invention. Any equivalent structural or equivalent process transformation made by using the content of the specification and drawings of the present invention, or directly or indirectly applied in other related technical fields, shall be similarly included in the patent protection scope of the present invention.
Claims
1. A method for generating a 3D image, characterized in that, Including: Performing image subtraction on the left image and the right image to obtain a disparity image, where the left image and the right image have an associated relationship; Determining a stereoscopic disparity intensity evaluation value corresponding to the disparity image; Determining a tolerance value of the target user for the disparity intensity according to the subjective strabismus angle of the target user and the pupil distance of the target user; Comparing the stereoscopic disparity intensity evaluation value with the tolerance value of the target user for the disparity intensity to obtain a comparison result; If the comparison result is greater than a preset adjustment value, adjusting the left image and the right image according to the comparison result to obtain a target left image and a target right image; Interleaving the target left image and the target right image to generate a 3D image, wherein the tolerance value of the target user for the disparity intensity is determined by the following formula: ScreenOffsetX = (TargetDistance - ScreenDistance) * tan(thetaInArc + theta0); where ScreenOffsetX is the tolerance value of the target user for the disparity intensity, TargetDistance is the distance between the virtual image corresponding to the disparity image and the binoculars of the target user, ScreenDistance is the vertical distance between the target user and the display screen, thetaInArc is the horizontal angle between the monocular line of sight of the target user and the front of the binoculars of the target user, theta0 is the subjective strabismus angle, and thetaInArc is determined by the following formula: thetaInArc = arctan(PD * 0.5 / TargetDistance); where PD is the pupil distance of the target user.
2. The method for generating a 3D image according to claim 1, wherein, The performing image subtraction on the left image and the right image to obtain a disparity image includes: Inputting the left image and the right image into a filtering system to obtain a first target image corresponding to the left image and a second target image corresponding to the right image on the image plane of the filtering system, where the filtering system includes an optical 4f system and a sinusoidal grating, and the sinusoidal grating is disposed on the spectrum plane of the optical 4f system; Adjusting the distance between the left image and the right image on the object plane of the filtering system so that the first target image and the second target image coincide; Displacing the sinusoidal grating to an odd multiple of π of the phase difference between the first target image and the second target image to obtain the disparity image.
3. The method according to claim 1, wherein The determining the stereoscopic disparity intensity evaluation value corresponding to the disparity image includes: Processing each pixel point in the disparity image to obtain an electrical signal value corresponding to each pixel point; Calculating the sum of the squares of the electrical signal values of all pixel points in the disparity image according to the electrical signal value corresponding to each pixel point; Determining an electrical signal average value according to the sum of the squares of the electrical signal values of all pixel points in the disparity image and the number of all pixel points in the disparity image; Determining the electrical signal average value as the stereoscopic disparity intensity evaluation value corresponding to the disparity image.
4. A terminal device, characterized in that, Including: A parallax image determination unit for subtracting an image of a left image and a right image to obtain a parallax image, where the left image and the right image have an associated relationship; An evaluation value determination unit for determining a stereoscopic parallax intensity evaluation value corresponding to the parallax image; A tolerance value determination unit for determining a tolerance value of the target user for the parallax intensity according to the subjective strabismus angle of the target user and the interpupillary distance of the target user; A comparison unit for comparing the stereoscopic parallax intensity evaluation value with the tolerance value of the target user for the parallax intensity to obtain a comparison result; An adjustment unit for adjusting the left image and the right image according to the comparison result to obtain a target left image and a target right image when the comparison result is greater than a preset adjustment value; An interleaving unit for interleaving the target left image and the target right image to generate a 3D image, wherein the tolerance value of the target user for the parallax intensity is determined by the following formula: ScreenOffsetX = (TargetDistance - ScreenDistance) * tan(thetaInArc + theta0); where ScreenOffsetX is the tolerance value of the target user for the parallax intensity, TargetDistance is the distance between the virtual image corresponding to the parallax image and the binoculars of the target user, ScreenDistance is the vertical distance between the target user and the display screen, thetaInArc is the horizontal angle between the monocular line of sight of the target user and the front of the binoculars of the target user, theta0 is the subjective strabismus angle, and thetaInArc is determined by the following formula: thetaInArc = arctan(PD * 0.5 / TargetDistance); where PD is the interpupillary distance of the target user.
5. The terminal device according to claim 4, wherein The parallax image determination unit is specifically configured to: Input the left image and the right image into a filtering system to obtain a first target image corresponding to the left image and a second target image corresponding to the right image on the image plane of the filtering system. The filtering system includes an optical 4f system and a sinusoidal grating, and the sinusoidal grating is disposed on the spectrum plane of the optical 4f system; Adjust the distance between the left image and the right image on the object plane of the filtering system so that the first target image and the second target image coincide; Displace the sinusoidal grating to an odd multiple of π in the phase difference between the first target image and the second target image to obtain the parallax image.
6. A computer device, characterized in that, Comprising: At least one connected processor, memory, and transceiver, wherein the memory is used to store program code, and the processor is used to call the program code in the memory to execute the 3D image generation method according to any one of claims 1 to 3 above.
7. A computer storage medium, characterized in that, Comprising: Instructions that, when run on a computer, cause the computer to execute the 3D image generation method according to any one of claims 1 to 3.
Citation Information
Patent Citations
Three-dimensional image processing method and device and electronic equipment
CN108156437A
Visual fusion intersection angle measuring method and device and storage medium
CN113940622A