Naked eye 3D dynamic region image fusion method, device, equipment and medium
Through the dynamic area image fusion method, thread resources are dynamically allocated, and only the area where the 3D fusion object is located is rendered, which solves the problem of insufficient computing power of the vehicle head-up display device when processing 3D images, and achieves a smooth 3D display experience.
Patent Information
- Application Number
- CN202411040094.5
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-07-31
- Publication Date
- 2024-10-11
AI Technical Summary
When existing vehicle heads-up display devices process full-frame 3D images, insufficient computing power causes the screen to freeze and cannot provide a smooth 3D display experience.
Through the dynamic area image fusion method, thread resources are dynamically allocated, relatively fixed threads are used to render different areas in the image, and only the dynamic area where the 3D fusion object is located is image fused, reducing unnecessary calculations and improving the efficiency of computing power utilization. .
It solves the problem of insufficient computing power, ensures the smoothness of 3D images, is suitable for projection equipment with low computing power, and provides a good driving experience and indication accuracy.
Smart Images

Figure CN118764600A_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the technical field of 3D head-up display, and in particular to a method, device, equipment and medium for naked-eye 3D dynamic area image fusion. Background Art
[0002] Naked-eye 3D display technology refers to a 3D display technology that allows users to directly watch three-dimensional images with their naked eyes and present 3D effects without wearing special 3D glasses or other auxiliary equipment. Naked-eye 3D display technology has a wide range of applications, such as movie playback, interactive projection, stage performances, and head-up displays.
[0003] In the vehicle's head-up display application scenario, naked-eye 3D display technology can provide drivers with richer and more intuitive information display, increase driving safety and convenience, especially naked-eye 3D display combined with augmented reality effects, which can provide 3D holographic images in the head-up display, helping drivers to obtain road information in an immersive way.
[0004] In the process of implementing the present invention, the inventors found that the prior art has the following problems: the head-up display device of the vehicle is generally equipped with a processing system that can be used by mobile terminals such as Android system and Hongmeng system, but the existing processing system can generally provide sufficient computing power for 2D image processing. For 3D images, the GPU (Graphics Processing Unit) calculates the pixels of the entire screen display area to achieve image fusion. In the process of ensuring real-time performance, the device will have insufficient computing power and cannot provide sufficient computing power support for the full-frame 3D image, which may cause the screen to freeze. Summary of the invention
[0005] The present invention provides a naked-eye 3D dynamic area image fusion method, device, equipment and medium, which can dynamically allocate thread resources and use relatively fixed threads to dynamically render different areas in the image, thereby solving the problem of consuming a lot of computing power for processing full-frame 3D images in the prior art, and is suitable for projection equipment with lower computing power to ensure the smoothness of 3D images.
[0006] According to one aspect of the present invention, a method for fusion of dynamic area images of naked eye 3D is provided, comprising:
[0007] After the display of the current projection image is completed, if it is determined that the current projection image contains the 3D fusion object to be moved, obtaining a target dynamic area of the 3D fusion object in the next projection image;
[0008] According to the target dynamic area, the target pixel points corresponding to each target thread are determined, and the corresponding target pixel points are rendered by using the target thread to obtain the next projection image;
[0009] The next projection image is projected onto a display screen for projection display.
[0010] Optionally, determining the target pixel positions corresponding to the target threads respectively according to the target dynamic area includes:
[0011] Extracting target partition description information and screen anchor information according to the target dynamic area, and acquiring multiple dynamic parameters according to the target partition description information and the screen anchor information;
[0012] According to the dynamic parameters and the screen anchoring information, the target pixel positions corresponding to the target threads are determined.
[0013] The advantage of this setting is that by dynamically updating dynamic parameters and then determining the target pixel positions corresponding to each target thread, the rendering pixels of each thread can be dynamically allocated, so that the image fusion processing of the display area can be completed based on calling the minimum thread.
[0014] Optionally, the target partition description information includes a first coordinate of a center point of the target dynamic area in the next projection image, and size information of the target dynamic area in the next projection image;
[0015] The screen anchoring information includes size information of the next projection image and second coordinates of the anchor point in the next projection image.
[0016] The advantage of such a setting is that by setting the above target partition description information and screen anchoring information, the number of calculation parameters of the target dynamic area can be reduced, and while ensuring the calculation efficiency, the accuracy of the target dynamic area calculation can also be guaranteed.
[0017] Optionally, multiple dynamic parameters are obtained according to the target partition description information and the screen anchoring information, including:
[0018] Determine the area width and area height of the target dynamic area in the next projection image according to the size information of the target dynamic area in the next projection image;
[0019] According to the first coordinate and the second coordinate, a horizontal coordinate difference and a vertical coordinate difference between the center point of the target dynamic area and the anchor point are determined.
[0020] The advantage of this setting is that by calculating the dynamic parameters according to the target partition description information and the screen anchoring information, the calculation amount of the dynamic parameters is reduced, the real-time update of the dynamic parameters can be guaranteed, and the projection delay of the 3D fusion object is reduced.
[0021] Optionally, determining the target pixel positions corresponding to the target threads respectively according to the dynamic parameters and the screen anchoring information includes:
[0022] The compute shader in the image processing engine is called to determine the target pixel position corresponding to the target thread within the target dynamic area according to the following formula:
[0023] id.x1=id.x2+LocalX+ScreenWidth / 2-ΔWidth / 2;
[0024] id.y1=id.y2+LocalY+ScreenHeight / 2-ΔHeight / 2;
[0025] Among them, id.x1 and id.y1 are the horizontal and vertical coordinates of the target pixel point respectively, id.x2 and id.y2 are the horizontal and vertical coordinates of the pixel point processed by the target thread in the current projection image respectively, LocalX and LocalY are the horizontal relative coordinates and vertical relative coordinates between the center point of the target dynamic area and the anchor point respectively, ScreenWidth is the screen width of the next projection image, ScreenHeight is the screen height of the next projection image, ΔWidth is the area width of the target dynamic area in the next projection image, and ΔHeight is the reference height of the target dynamic area in the next projection image.
[0026] The advantage of this setting is that the above formula is used to calculate the target pixel position corresponding to each target thread, and the pixel to be rendered of the target thread can be quickly updated in combination with dynamic parameters, which is simple to calculate and has good real-time performance.
[0027] Optionally, after acquiring multiple dynamic parameters according to the target partition description information and the screen anchoring information, the method further includes:
[0028] According to the target dynamic area and the dynamic parameter, target threads for performing image fusion on the target dynamic area are determined in a computing shader.
[0029] The advantage of this setting is that it can minimize the occupancy of the thread group, maximize the use of threads in the thread group, avoid occupying the thread group of other tasks, and maximize the computing efficiency of the compute shader.
[0030] Optionally, according to the target dynamic area and the dynamic parameter, determining in a compute shader each target thread for performing image fusion on the target dynamic area includes:
[0031] Determining a thread arrangement pattern in each thread group predefined in the compute shader;
[0032] At least one target thread group for performing image fusion on a target dynamic area is defined in a compute shader according to the thread arrangement mode, the area width, and the area height, and a plurality of target threads are determined according to the target thread group.
[0033] The advantage of this setting is that by determining the target thread group and the target thread according to the thread arrangement mode, the thread group occupancy can be minimized, the threads in the thread group can be maximized, and the thread groups occupying other tasks can be avoided, so as to maximize the computing performance of the compute shader, improve the parallelism of image processing, and improve image processing efficiency.
[0034] Optionally, the target thread in the compute shader is used to render the unique target pixel corresponding to it according to the fusion rule to obtain the rendering result value of the target pixel. When each target thread completes the rendering, the target dynamic area is determined to complete the image fusion processing.
[0035] The advantage of this setting is that by having a one-to-one correspondence between threads and pixels, and a single thread only rendering a unique pixel at a time, it can fully utilize the characteristics of the compute shader, improve the parallelism of image processing, and improve image processing efficiency.
[0036] Optionally, the next projected image is a 3D head-up display image;
[0037] The display screen is an imaging element arranged on the vehicle; the imaging element includes a front windshield of the vehicle, a reflective layer film arranged in the vehicle, or an imaging window arranged in the vehicle.
[0038] The advantage of this setting is that by adopting the naked-eye 3D dynamic area image fusion method when generating 3D head-up display images, virtual reality can be used to provide users with a good driving experience, reduce the computing pressure of the vehicle system, improve computing efficiency, and ensure smooth pictures.
[0039] Optionally, the 3D fused object to be moved is an augmented reality (AR) prompt element;
[0040] The AR prompt elements specifically include AR navigation elements and AR obstacle prompt elements.
[0041] The advantage of this setting is that by projecting AR navigation elements and AR obstacle prompt elements into the 3D head-up display image, virtual reality can be used to provide users with a good driving experience. At the same time, the 3D displayed AR prompt elements can improve the accuracy of instructions, and are more readable and interactive.
[0042] Optionally, obtaining a target dynamic region of the 3D fusion object in the next projection image includes:
[0043] When a moving condition of the AR prompt element is detected, obtaining first position description information of the AR prompt element in the real world;
[0044] Determine, according to the first position description information of the AR prompt element in the real world, second position description information of the AR prompt element in the heads-up display coordinate system in the virtual image plane;
[0045] According to the second position description information, a dynamic area for displaying the AR prompt element is determined in the next projection image.
[0046] The advantage of this setting is that by determining the target dynamic area based on the position description information of the real world and the virtual image plane, the determination accuracy of the target dynamic area can be improved, so that the position of the generated 3D fusion object is accurate, which can provide accurate instructions to users and improve the visual experience.
[0047] Optionally, the target dynamic area of the next projection image includes a left-eye visible image and a right-eye visible image of the 3D fusion object.
[0048] The advantage of such a setting is that by displaying the left-eye visible image and the right-eye visible image of the 3D fusion object in the target dynamic area, the naked-eye 3D effect can be achieved, thereby improving the user's viewing experience.
[0049] According to another aspect of the present invention, a naked-eye 3D dynamic area image fusion device is provided, comprising:
[0050] A dynamic region determination module, configured to, after displaying the current projection image, obtain a target dynamic region of the 3D fusion object in the next projection image if it is determined that the current projection image contains the 3D fusion object to be moved;
[0051] A projection image generation module, used to determine the target pixel points corresponding to each target thread according to the target dynamic area, and use the target thread to render the corresponding target pixel points to obtain the next projection image;
[0052] The projection display module is used to project the next projection image onto a display screen for projection display.
[0053] According to another aspect of the present invention, a projection device is provided, the projection device comprising:
[0054] at least one processor; and
[0055] a memory communicatively connected to the at least one processor; wherein,
[0056] The memory stores a computer program executable by the at least one processor, and the computer program is executed by the at least one processor so that the at least one processor can execute the naked-eye 3D dynamic area image fusion method described in any embodiment of the present invention.
[0057] According to another aspect of the present invention, a computer-readable storage medium is provided, wherein the computer-readable storage medium stores computer instructions, and the computer instructions are used to enable a processor to implement the naked-eye 3D dynamic area image fusion method described in any embodiment of the present invention when executed.
[0058] The technical solution of the embodiment of the present invention is that after completing the display of the current projection image, if it is determined that the current projection image contains a 3D fusion object to be moved, the target dynamic area of the 3D fusion object in the next projection image is obtained, and the target pixel points corresponding to each target thread are determined according to the target dynamic area, and the corresponding target pixel points are rendered by the target thread to obtain the next projection image, and the next projection image is projected onto the display screen for display. The target pixel points processed by the target thread are dynamically allocated, and different areas in the image are dynamically rendered by relatively fixed threads. In each frame of the projection image, only the dynamic area where the 3D fusion object is located is image fused, and other parts of the image are not processed, thereby solving the problem of insufficient computing power when the existing processing system processes a full-frame 3D image, and adapting to projection devices with lower computing power to ensure the smoothness of the 3D picture.
[0059] It should be understood that the contents described in this section are not intended to identify the key or important features of the embodiments of the present invention, nor are they intended to limit the scope of the present invention. Other features of the present invention will become easily understood through the following description. BRIEF DESCRIPTION OF THE DRAWINGS
[0060] In order to more clearly illustrate the technical solutions in the embodiments of the present invention, the following briefly introduces the drawings required for use in the description of the embodiments. Obviously, the drawings described below are only some embodiments of the present invention. For ordinary technicians in this field, other drawings can be obtained based on these drawings without creative work.
[0061] Figure 1is a flow chart of a naked-eye 3D dynamic area image fusion method provided according to Embodiment 1 of the present invention;
[0062] Figure 2 is a schematic diagram of a head-up display imaging process provided according to an embodiment of the present invention;
[0063] Figure 3 is a schematic diagram of a dynamic region provided according to an embodiment of the present invention;
[0064] Figure 4 is a schematic diagram of a naked-eye 3D imaging principle provided according to an embodiment of the present invention;
[0065] Figure 5 is a schematic diagram of a projection effect of a naked-eye 3D image in a head-up display scene provided by an embodiment of the present invention;
[0066] Figure 6 is a flowchart of another naked-eye 3D dynamic area image fusion method provided according to Embodiment 2 of the present invention;
[0067] Figure 7 is a schematic diagram of a thread group arrangement mode provided according to an embodiment of the present invention;
[0068] Figure 8 is a schematic diagram of a thread arrangement mode provided according to an embodiment of the present invention;
[0069] Fig. 9 is a relationship diagram between a thread group and threads provided according to an embodiment of the present invention;
[0070] Fig.10 is a schematic diagram of image fusion region division provided according to an embodiment of the present invention;
[0071] Fig.11 is a flow chart of naked-eye 3D dynamic area image fusion provided according to an embodiment of the present invention;
[0072] Fig.12 is a structural schematic diagram of a naked-eye 3D dynamic area image fusion device provided according to Embodiment 3 of the present invention;
[0073] Fig.13 It is a structural schematic diagram of a projection device for implementing the naked-eye 3D dynamic area image fusion method of an embodiment of the present invention. DETAILED DESCRIPTION
[0074] In order to enable those skilled in the art to better understand the scheme of the present invention, the technical scheme in the embodiments of the present invention will be clearly and completely described below in conjunction with the drawings in the embodiments of the present invention. Obviously, the described embodiments are only part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work should fall within the scope of protection of the present invention.
[0075] It should be noted that the terms "first", "second", etc. in the specification and claims of the present invention and the above-mentioned drawings are used to distinguish similar objects, and are not necessarily used to describe a specific order or sequence. It should be understood that the data used in this way can be interchanged where appropriate, so that the embodiments of the present invention described herein can be implemented in an order other than those illustrated or described herein. In addition, the terms "including" and "having" and any variations thereof are intended to cover non-exclusive inclusions, for example, a process, method, system, product or device that includes a series of steps or units is not necessarily limited to those steps or units that are clearly listed, but may include other steps or units that are not clearly listed or inherent to these processes, methods, products or devices.
[0076] In this application, the head-up display of a vehicle is used as an example to specifically illustrate the naked-eye 3D dynamic area image fusion method, wherein the vehicle is intended to represent various forms of transportation. For example, the transportation may include but is not limited to land transportation such as vehicles, air transportation such as aircraft (or aircraft), or water or underwater transportation, etc.
[0077] Optionally, in the application of the head-up display of the vehicle, the head-up display device of the vehicle can realize the processing and projection display of the projected image, and the head-up display device can include at least one display as a display pixel unit, at least one optical grating device as a pixel imaging unit, at least one optical mirror device as an imaging unit, and at least one optical sensor device as an image capture unit. The front-end display part of the naked-eye 3D display technology needs to calculate and generate the projected image through the pixel imaging unit, so that the left and right eyes of the person see different pictures, and merge them into a 3D effect picture in the brain.
[0078] Embodiment 1
[0079] Figure 1This is a flow chart of a naked-eye 3D dynamic area image fusion method provided in the first embodiment of the present invention. This embodiment is applicable to the case of image fusion of dynamic areas in 3D projection images. The method can be executed by a naked-eye 3D dynamic area image fusion device. The naked-eye 3D dynamic area image fusion device can be implemented in the form of hardware and / or software, and can generally be configured in a projection device with image processing function. Figure 1 As shown, the method includes:
[0080] S110 . After the current projection image is displayed, if it is determined that the current projection image contains a 3D fusion object to be moved, a target dynamic region of the 3D fusion object in the next projection image is obtained.
[0081] Figure 2 is a schematic diagram of an optional head-up display imaging process, such as Figure 2 As shown, the image source in the HUD (Head-Up display) emits light and forms an image, which is then projected onto the vehicle's windshield via a plane mirror and a curved mirror. The windshield is an optional imaging element. If the vehicle is equipped with other imaging elements, the image can also be projected onto other imaging elements. The eye box refers to the range of imaging light that can be received by the driver's eye height. The head-up display content actually observed from the driver's perspective is actually a virtual image on a virtual image plane in space. By correcting the projected image, the virtual image in the virtual image plane can be adjusted, ultimately achieving the effect of image change from the driver's perspective.
[0082] Optionally, in most naked-eye 3D projection display scenarios, the projected content is video or dynamic images, and whether it is video or dynamic images, it is actually projecting multiple frames of images in a short period of time. For example, if the usage scenario is a head-up display in a vehicle, the projected image can be a 3D head-up display image, and each frame of the projected image includes the 3D head-up display content at the current time point.
[0083] It is understandable that, for a moving 3D fusion object, its position in the display screen is different at different time points, and in each frame of image, the area displaying the 3D fusion object to be moved can be used as the dynamic area.
[0084] Figure 3 is an optional dynamic region diagram, such as Figure 3As shown, Position A may be the current dynamic area in the current projection image, in which the 3D fusion object to be moved is displayed, and Position B and Position C show two optional dynamic areas. In the next projection image, if the 3D fusion object to be moved needs to be moved to Position B, then Position B is the target dynamic area in the next projection image, and it may also be moved to Position B and Position C at the same time, then Position B and Position C are two different target dynamic areas respectively. The shape and number of the dynamic areas are not limited here. Figure 3 This is for illustrative purposes only.
[0085] Optionally, the 3D fusion object may refer to a 3D target to be displayed in the image. Taking the head-up display in a vehicle as an example, the AR navigation element in the head-up display screen may be used as a 3D target, and the AR obstacle prompt element may be used as a 3D target. When there are multiple different obstacles and each obstacle corresponds to an AR obstacle prompt element, each AR obstacle prompt element may be used as a 3D target.
[0086] Figure 4 is a schematic diagram of an optional naked-eye 3D imaging principle. Figure 4 In the HUD, the optical design is performed on the HUD so that the user's left eye sees image P1 and the right eye sees image P2 through the imaging structure, such as the windshield. Due to the binocular parallax formed by images P1 and P2, the objects seen by the user have a sense of depth and space. The right eye sees the image of the right eye, which is synthesized into a three-dimensional picture with a sense of depth in the user's brain. Naked-eye 3D imaging can adjust the binocular parallax by changing the position between the two images, so that the distance of the virtual image perceived by the user changes (the actual distance of the virtual image remains unchanged). The closer the two images are, the closer the virtual image distance perceived by the user is; conversely, the farther the two images are, the farther the virtual image distance perceived by the user is.
[0087] Optionally, the 3D fusion object can be generated by fusing the left eye image and the right eye image of the 3D target to be displayed. When the 3D fusion object to be moved is generated for the first time, the 3D fusion object can be fused in the area where the 3D fusion object is first displayed, which is equivalent to a static fusion method in the initial state, but dynamically displaying the 3D fusion object during subsequent movement.
[0088] Optionally, the target dynamic area of the 3D fusion object in the next projection image can be determined according to pre-set 3D projection content, and the target dynamic area of the 3D fusion object in the next projection image can be determined according to information collected in real time. For example, in the head-up display application scenario of the vehicle, the area where the head-up display element is located in the next projection image, that is, the target dynamic area, can be determined according to the vehicle information collected in real time.
[0089] S120 , determining the target pixel positions corresponding to the target threads respectively according to the target dynamic area, and using the target threads to render the corresponding target pixel points to obtain the next projection image.
[0090] Optionally, after determining the target dynamic area of the 3D fusion object in the next projection image, the target partition description information and the screen anchoring information may be determined.
[0091] Optionally, the target partition description information includes the first coordinates of the center point of the target dynamic area in the projection image, and the size information of the target dynamic area in the projection image; the screen anchoring information includes the size information of the projection image and the second coordinates of the anchor point in the projection image.
[0092] Optionally, the shape of the target dynamic area may be a rectangle, a triangle, a circle, an ellipse, etc., or an irregular shape, which is not limited here.
[0093] Optionally, for target dynamic areas of different shapes, the selected size information is also different. For example, for a target dynamic area of a rectangle, triangle or ellipse, the size information selects the area width and the area height of the target dynamic area. For a circular target dynamic area, the size information can select the radius of the circle. For an irregularly shaped target dynamic area, the minimum bounding box of the target dynamic area can be determined first using a regular shape, and then the width and height of the minimum bounding box of the target dynamic area are determined. Only a few optional methods of obtaining the size information are shown here, and the size information is not specifically limited.
[0094] Optionally, the size information of the target dynamic area in the projection image may be the same as or different from the shape and size information of the target dynamic area in the next projection image, depending on the specific display requirements of the 3D projection image.
[0095] Optionally, based on existing projection technology, the projected image is generally a regular image, and the size information of the projected image may include the screen height and screen width of the projected image. Of course, the projected image may also be an irregular image. When the projected image is an irregular image, the size information of the projected image may be the size information of the minimum external frame of the projected image. The size information of the projected image is not specifically limited here.
[0096] Optionally, the anchor point may refer to a pre-calibrated point in the projection image, which may be used as a reference point in the projection image. The anchor point may be the center point of the projection image, corner points around the projection image, etc., but this is not limited.
[0097] Optionally, the target pixel positions corresponding to each target thread in the next projection image may be determined according to the target partition description information and the screen anchoring information, and then the corresponding target pixel positions may be rendered by the target threads respectively.
[0098] It can be understood that in order to reduce the resource occupation of image fusion, based on the threads that perform image fusion on the current projection image, the target thread for performing image fusion on the next projection image is determined. The specific determination method is: if the number of pixels occupied by the dynamic area in the current projection image is the same as that in the next projection image, then the threads that perform image fusion on the current projection image are used as target threads; if the number of pixels occupied by the dynamic area in the current projection image is less than the number of pixels in the next projection image, then based on the threads that perform image fusion on the current projection image, new threads are confirmed as target threads together; if the number of pixels occupied by the dynamic area in the current projection image is greater than the number of pixels in the next projection image, then some threads are selected from the threads that perform image fusion on the current projection image as target threads, which is not limited here.
[0099] Optionally, the current dynamic area in the current projection image may be one or more. After the rendering process of each target pixel point is completed, the rendered image is used as the next projection image.
[0100] S130, projecting the next projection image onto the display screen for projection display.
[0101] Optionally, when the application scenario is a head-up display function of a vehicle, the display screen may be an imaging element configured on the vehicle; the imaging element may include a front windshield of the vehicle, a reflective layer film disposed in the vehicle, or an imaging window disposed in the vehicle, but this is not limited. Imaging through the windshield is W-HUD (Windshield-HUD, windshield head-up display), and imaging through the imaging window is C-HUD (Combiner HUD, combined head-up display). Optionally, the imaging window is generally made of a transparent material (transparent to visible light) or an imaging plate with a certain curvature.
[0102] Figure 5 Schematic diagram of an optional projection effect of a naked-eye 3D image in a head-up display scene, such as Figure 5As shown, the black box in the middle can be regarded as a dynamic area, in which the 3D fusion object is the navigation arrow in the AR navigation element. The ghosting effect indicated by the arrow in the figure is actually the superposition effect of the left and right eye images. It is a 3D dynamic arrow from the driver's human eye perspective. The rest can be regarded as a simulated segmentation of the vehicle's front windshield and other areas inside the car from the driver's perspective, which can be ignored.
[0103] The technical solution of the embodiment of the present invention is that after completing the display of the current projection image, if it is determined that the current projection image contains a 3D fusion object to be moved, the target dynamic area of the 3D fusion object in the next projection image is obtained, and the target pixel points corresponding to each target thread are determined according to the target dynamic area, and the corresponding target pixel points are rendered by the target thread to obtain the next projection image, and the next projection image is projected onto the display screen for display. The target pixel points processed by the target thread are dynamically allocated, and different areas in the image are dynamically rendered by relatively fixed threads. In each frame of the projection image, only the dynamic area where the 3D fusion object is located is image fused, and other parts of the image are not processed, thereby solving the problem of insufficient computing power when the existing processing system processes a full-frame 3D image, and adapting to projection devices with lower computing power to ensure the smoothness of the 3D picture.
[0104] Embodiment 2
[0105] Figure 6 This is a flow chart of a naked-eye 3D dynamic area image fusion method provided in Embodiment 2 of the present invention. Based on the above embodiments, this embodiment further illustrates the naked-eye 3D dynamic area image fusion method.
[0106] like Figure 6 As shown, the method includes:
[0107] S210: After the current projection image is displayed, if it is determined that the current projection image contains a 3D fusion object to be moved, a target dynamic region of the 3D fusion object in the next projection image is obtained.
[0108] Optionally, when the application scenario is a head-up display function of a vehicle, the 3D fused object to be moved may be an AR prompt element; the AR prompt element may specifically include an AR navigation element and an AR obstacle prompt element, but is not limited to the AR prompt elements exemplified above.
[0109] Optionally, an AR prompt element may refer to an element that uses augmented reality technology and real-time vehicle auxiliary information to provide prompts to users in the form of a head-up display; an AR navigation element may refer to a navigation element that uses virtual models, arrows, dotted lines and other elements to guide users; an AR obstacle prompt element may refer to an element that uses indicator marks to prompt users of obstacles around the vehicle, such as triangles, horizontal lines and other indicator marks.
[0110] Optionally, obtaining a target dynamic region of the 3D fusion object in the next projection image includes:
[0111] When a moving condition of the AR prompt element is detected, obtaining first position description information of the AR prompt element in the real world;
[0112] Determine, according to the first position description information of the AR prompt element in the real world, second position description information of the AR prompt element in the heads-up display coordinate system in the virtual image plane;
[0113] According to the second position description information, a dynamic area for displaying the AR prompt element is determined in the next projection image.
[0114] Optionally, when the AR prompt elements are different, the movement conditions of the AR prompt elements are also different. For example, for the AR navigation element, when the navigation information changes or the AR navigation element is dynamically displayed and reaches the time point of dynamic change, the movement conditions of the AR navigation element can be determined to be detected. For the AR obstacle prompt element, when the obstacle moves or the vehicle moves, causing the obstacle position to deviate from the position at the previous time point, the movement conditions of the AR obstacle prompt element can also be determined to be detected. This is only an exemplary explanation, and the detection of the movement conditions is not specifically limited.
[0115] It can be understood that the virtual image plane serves as the virtual image imaging plane of the AR prompt element (refer to the mirror imaging principle). When the light source in the HUD projects the AR prompt element onto the imaging element of the vehicle, the AR prompt element actually observed in the driver's perspective is actually located on the virtual image plane in the space. By controlling the imaging size and imaging position of the AR prompt element in the virtual image plane, what is finally presented in the driver's perspective is the effect of integrating the virtual image of the AR prompt element with the road environment in the real world.
[0116] Optionally, the position description information may refer to the coordinates of the positioning point of the AR prompt element in a specified coordinate system. After obtaining the second position description information in the head-up display coordinate system in the virtual image plane, the dynamic area for displaying the AR prompt element may be determined in the projection image based on the mapping relationship between the virtual image plane and the projection image.
[0117] S220 . Extract target partition description information and screen anchor information according to the target dynamic area, and obtain multiple dynamic parameters according to the target partition description information and the screen anchor information.
[0118] Optionally, multiple dynamic parameters are obtained according to the target partition description information and the screen anchoring information, including:
[0119] Determine the area width and area height of the target dynamic area in the next projection image according to the size information of the target dynamic area in the next projection image;
[0120] According to the first coordinate and the second coordinate, a horizontal coordinate difference and a vertical coordinate difference between the center point of the target dynamic area and the anchor point are determined.
[0121] Optionally, the first coordinate is the coordinate of the center point of the target dynamic area in the projected image, and the second coordinate is the coordinate of the anchor point in the projected image.
[0122] Optionally, the horizontal coordinate difference between the center point and the anchor point can be obtained by subtracting the horizontal coordinate in the first coordinate from the horizontal coordinate in the second coordinate, and the vertical coordinate difference between the center point and the anchor point can be obtained by subtracting the vertical coordinate in the first coordinate from the vertical coordinate in the second coordinate.
[0123] Optionally, the method proposed in the present application can be processed by an image processing engine in the projection device calling a compute shader, and the image processing engine can create and render the 3D model.
[0124] In a specific application scenario, dynamic parameters of integer type (int) such as area width ΔWidth, area height ΔHeight, horizontal coordinate difference LocalX and vertical coordinate difference LocalY can be defined, and the parameters can be assigned to the imaging area Image. The specific definition can be expressed as ImageRectTransform.sizeDelta = new Vector2(ΔWidth, ΔHeight) and ImageRectTransform.anchoredPosition = new Vector2(PositionX, PositionY), where ImageRectTransform.anchoredPosition is the position of the 3D fusion object relative to the anchor point and ImageRectTransform.sizeDelta is the object size of the 3D fusion object, both of which are attributes in the image processing engine.
[0125] S230: Determine, in a compute shader, target threads for performing image fusion on the target dynamic area according to the target dynamic area and the dynamic parameters.
[0126] Optionally, according to the target dynamic area and the dynamic parameter, determining in a compute shader each target thread for performing image fusion on the target dynamic area includes:
[0127] Determining a thread arrangement pattern in each thread group predefined in the compute shader;
[0128] At least one target thread group for performing image fusion on a target dynamic area is defined in a compute shader according to the thread arrangement mode, the area width, and the area height, and a plurality of target threads are determined according to the target thread group.
[0129] Optionally, the compute shader of the image processing engine may include multiple regularly arranged thread groups, each thread group including multiple regularly arranged threads. Based on the properties of the image processing engine itself, each thread in the compute shader can perform image processing on a pixel in the projected image, and each thread can process in parallel. Therefore, for complex image processing of multiple pixels, computing time can be greatly saved by calling each thread in the compute shader to perform processing simultaneously.
[0130] Optionally, the number of thread groups in the compute shader can be specified through pre-configured thread group properties. A thread group can be understood as a combination of a bunch of threads. A thread group can contain many threads. The usage of the thread group property is as follows: the first parameter is the kernel index value, and the next three parameters are the number of thread groups on the x, y, and z axes respectively.
[0131] Continuing from the previous example, Figure 7 is a schematic diagram of an optional thread group arrangement mode. Figure 7 In the example shown, cs.Dispatch(kernal,4,4,2) is set. Figure 7 Each cube in the diagram can be considered as a thread group. The thread groups are arranged in the following pattern: 4 in the X-axis direction, 4 in the Y-axis direction, and 2 in the Z-axis direction. Figure 7 This is only an exemplary description and does not limit the actual arrangement of thread groups.
[0132] Optionally, the compute shader can also specify the number of threads in the thread group through pre-configured thread properties. The arrangement of threads in the thread group is also similar to the rectangular arrangement. The thread properties specify the number of threads in the x, y, and z directions.
[0133] Continuing from the previous example, Figure 8 A schematic diagram of an optional thread arrangement mode is shown in FIG. Figure 8In the example shown, [numthreads(8,4,2)] is specified, which specifies 8, 4, and 2 threads for the x, y, and z axes respectively, so a thread group has 64 threads. Figure 8 A small cube in the box represents a thread.
[0134] Optional, Fig. 9 is an optional relationship diagram between thread groups and threads, such as Fig. 9 As shown, the right side is a schematic diagram of the thread group arrangement mode, the left side is a schematic diagram of the thread arrangement mode, and the right image is an expansion of one of the threads in the left thread arrangement mode diagram. When there are 32 thread groups in the left image and each thread group in the right image has 64 threads, there are a total of 32×64=2048 threads in the image processing engine.
[0135] S240: Determine the target pixel positions corresponding to the target threads according to the dynamic parameters and the screen anchoring information.
[0136] Optionally, each target thread in the compute shader corresponds one-to-one to each pixel point in the target dynamic area, and the target thread is used to perform image rendering processing on the corresponding pixel points in the target dynamic area.
[0137] Optionally, the target thread in the compute shader is used to render the unique target pixel corresponding to it according to the fusion rule to obtain the rendering result value of the target pixel. When each target thread completes the rendering, the target dynamic area is determined to complete the image fusion processing.
[0138] In a specific application scenario, the target thread group can be defined by CS.Dispatch(kernal,ΔWidth / numberThreasdX,ΔHeight / numberThreasdY,1), where numberThreasdX is the number of threads on the X-axis in the thread group, and numberThreasdY is the number of threads on the Y-axis in the thread group. The kernel keyword is used to define a computing kernel. A computing kernel is a function that can be executed in parallel. It accepts a set of input data and returns a set of output data. In a computing shader, one or more computing kernels can be defined, and then computing tasks can be performed by calling these kernels.
[0139] Optionally, determining the target pixel positions corresponding to the target threads according to the dynamic parameters and the screen anchoring information may include:
[0140] The compute shader in the image processing engine is called to determine the target pixel position corresponding to the target thread within the target dynamic area according to the following formula:
[0141] id.x1=id.x2+LocalX+ScreenWidth / 2-ΔWidth / 2;
[0142] id.y1=id.y2+LocalY+ScreenHeight / 2-ΔHeight / 2;
[0143] Among them, id.x1 and id.y1 are the horizontal and vertical coordinates of the target pixel point respectively, id.x2 and id.y2 are the horizontal and vertical coordinates of the pixel point processed by the target thread in the current projection image respectively, LocalX and LocalY are the horizontal relative coordinates and vertical relative coordinates between the center point of the target dynamic area and the anchor point respectively, ScreenWidth is the screen width of the next projection image, ScreenHeight is the screen height of the next projection image, ΔWidth is the area width of the target dynamic area in the next projection image, and ΔHeight is the reference height of the target dynamic area in the next projection image.
[0144] S250: Project the next projection image onto the display screen for projection display.
[0145] Optionally, the target dynamic area of the next projection image includes a left-eye visible image and a right-eye visible image of the 3D fusion object.
[0146] Optionally, the next projected image may be a 3D head-up display image; the display screen is an imaging element configured on the vehicle; the imaging element includes a front windshield of the vehicle, a reflective layer film disposed in the vehicle, or an imaging window disposed in the vehicle.
[0147] The technical solution of the embodiment of the present invention is that after completing the display of the current projection image, if it is determined that the current projection image contains a 3D fusion object to be moved, the target dynamic area of the 3D fusion object in the next projection image is obtained, and the target pixel points corresponding to each target thread are determined according to the target dynamic area, and the corresponding target pixel points are rendered by the target thread to obtain the next projection image, and the next projection image is projected onto the display screen for display. The target pixel points processed by the target thread are dynamically allocated, and different areas in the image are dynamically rendered by relatively fixed threads. In each frame of the projection image, only the dynamic area where the 3D fusion object is located is image fused, and other parts of the image are not processed, thereby solving the problem of insufficient computing power when the existing processing system processes a full-frame 3D image, and adapting to projection devices with lower computing power to ensure the smoothness of the 3D picture.
[0148] Fig.10 is an optional image fusion region division diagram, such as Fig.10As shown, image fusion can be divided into full-screen image fusion and indefinite area image fusion. In actual usage scenarios, image fusion technology is generally used in car systems, that is, Android systems. However, the GPU performance required when computing shaders is running is relatively high. In the case of a high number of threads, the Android system cannot provide sufficient GPU computing power, which will cause the screen to freeze. Based on such scenarios, the inventor of the present application proposed splitting the image fusion algorithm into full-screen image fusion and indefinite area image fusion. For images that do not require full-screen display, indefinite areas are selected in the projected image for regional image fusion. The indefinite area can refer to a static indefinite area and a dynamic indefinite area. This application focuses on the naked-eye 3D image fusion method for dynamic indefinite areas.
[0149] Fig.11 It is an optional naked eye 3D dynamic area image fusion flow chart. Fig.11 Another optional naked-eye 3D dynamic area image fusion application scenario is shown in the figure, that is, firstly, the dynamic partition size parameter and the dynamic partition position parameter are obtained, which can be similar to the dynamic area size information and the coordinate difference between the dynamic area center point and the anchor point in the present application, and the total number of Shader threads is determined according to the dynamic partition size parameter, and the dynamic partition position parameter and the dynamic partition size parameter are input into the pre-established 3D image fusion model together to obtain the subscript, fused pixel value and slope, and then the fusion imaging result of the dynamic partition image is generated according to the total number of Shader threads, the subscript, the fused pixel value and the slope.
[0150] Embodiment 3
[0151] Fig.12 This is a schematic diagram of the structure of a naked-eye 3D dynamic area image fusion device provided in Embodiment 3 of the present invention. Fig.12 As shown, the device includes: a dynamic area determination module 310 , a projection image generation module 320 and a projection display module 330 .
[0152] The dynamic region determination module 310 is used to obtain a target dynamic region of the 3D fusion object in the next projection image if it is determined that the current projection image contains the 3D fusion object to be moved after the current projection image is displayed.
[0153] The projection image generation module 320 is used to determine the target pixel points corresponding to each target thread according to the target dynamic area, and use the target thread to render the corresponding target pixel points to obtain the next projection image;
[0154] The projection display module 330 is used to project the next projection image onto a display screen for projection display.
[0155] The technical solution of the embodiment of the present invention is that after completing the display of the current projection image, if it is determined that the current projection image contains a 3D fusion object to be moved, the target dynamic area of the 3D fusion object in the next projection image is obtained, and the target pixel points corresponding to each target thread are determined according to the target dynamic area, and the corresponding target pixel points are rendered by the target thread to obtain the next projection image, and the next projection image is projected onto the display screen for display. The target pixel points processed by the target thread are dynamically allocated, and different areas in the image are dynamically rendered by relatively fixed threads. In each frame of the projection image, only the dynamic area where the 3D fusion object is located is image fused, and other parts of the image are not processed, thereby solving the problem of insufficient computing power when the existing processing system processes a full-frame 3D image, and adapting to projection devices with lower computing power to ensure the smoothness of the 3D picture.
[0156] Based on the above embodiments, the projection image generation module 320 may include:
[0157] A dynamic parameter acquisition unit, configured to extract target partition description information and screen anchor information according to the target dynamic area, and acquire a plurality of dynamic parameters according to the target partition description information and the screen anchor information;
[0158] The pixel matching unit is used to determine the target pixel positions corresponding to each target thread according to various dynamic parameters and screen anchoring information.
[0159] Based on the above embodiments, the target partition description information includes the first coordinate of the center point of the target dynamic area in the projection image, and the size information of the target dynamic area in the projection image;
[0160] The screen anchoring information includes size information of the projected image and the second coordinates of the anchor point in the projected image.
[0161] Based on the above embodiments, the dynamic parameter acquisition unit can be specifically used for:
[0162] Determine the area width and area height of the target dynamic area in the next projection image according to the size information of the target dynamic area in the next projection image;
[0163] According to the first coordinate and the second coordinate, a horizontal coordinate difference and a vertical coordinate difference between the center point of the target dynamic area and the anchor point are determined.
[0164] Based on the above embodiments, the pixel matching unit can be specifically used for:
[0165] The compute shader in the image processing engine is called to determine the target pixel position corresponding to the target thread within the target dynamic area according to the following formula:
[0166] id.x1=id.x2+LocalX+ScreenWidth / 2-ΔWidth / 2;
[0167] id.y1=id.y2+LocalY+ScreenHeight / 2-ΔHeight / 2;
[0168] Among them, id.x1 and id.y1 are the horizontal and vertical coordinates of the target pixel point respectively, id.x2 and id.y2 are the horizontal and vertical coordinates of the pixel point processed by the target thread in the current projection image respectively, LocalX and LocalY are the horizontal relative coordinates and vertical relative coordinates between the center point of the target dynamic area and the anchor point respectively, ScreenWidth is the screen width of the next projection image, ScreenHeight is the screen height of the next projection image, ΔWidth is the area width of the target dynamic area in the next projection image, and ΔHeight is the reference height of the target dynamic area in the next projection image.
[0169] Based on the above embodiments, a thread determination module may be further included, which is used to determine target threads for performing image fusion on the target dynamic area in the compute shader according to the target dynamic area and the dynamic parameters.
[0170] Based on the above embodiments, the thread determination module can be specifically used for:
[0171] Determining a thread arrangement pattern in each thread group predefined in the compute shader;
[0172] At least one target thread group for performing image fusion on a target dynamic area is defined in a compute shader according to the thread arrangement mode, the area width, and the area height, and a plurality of target threads are determined according to the target thread group.
[0173] Based on the above embodiments, the target thread in the compute shader is used to render the unique target pixel point corresponding to it according to the fusion rule to obtain the rendering result value of the target pixel point. When each target thread completes the rendering, the target dynamic area is determined to complete the image fusion processing.
[0174] Based on the above embodiments, the next projection image is a 3D head-up display image;
[0175] The display screen is an imaging element arranged on the vehicle; the imaging element includes a front windshield of the vehicle, a reflective layer film arranged in the vehicle, or an imaging window arranged in the vehicle.
[0176] On the basis of the above embodiments, the 3D fused object to be moved is an AR prompt element;
[0177] The AR prompt elements specifically include AR navigation elements and AR obstacle prompt elements.
[0178] Based on the above embodiments, the projection image generation module 320 may further include a dynamic area determination unit, which is used to:
[0179] When a moving condition of the AR prompt element is detected, obtaining first position description information of the AR prompt element in the real world;
[0180] Determine, according to the first position description information of the AR prompt element in the real world, second position description information of the AR prompt element in the heads-up display coordinate system in the virtual image plane;
[0181] According to the second position description information, a dynamic area for displaying the AR prompt element is determined in the next projection image.
[0182] On the basis of the above embodiments, the target dynamic area of the next projection image includes a left-eye visible image and a right-eye visible image of the 3D fusion object.
[0183] The naked-eye 3D dynamic area image fusion device provided in the embodiment of the present invention can execute the naked-eye 3D dynamic area image fusion method provided in any embodiment of the present invention, and has the corresponding functional modules and beneficial effects of the execution method.
[0184] Embodiment 4
[0185] Fig.13 A schematic diagram of a projection device 10 that can be used to implement an embodiment of the present invention is shown. The projection device is intended to represent various forms of digital computers, such as laptop computers, desktop computers, workbenches, personal digital assistants, servers, blade servers, mainframe computers, and other suitable computers. The projection device can also represent various forms of mobile devices, such as personal digital processing, cellular phones, smart phones, wearable devices (such as helmets, glasses, watches, etc.) and other similar computing devices. The components shown herein, their connections and relationships, and their functions are merely examples and are not intended to limit the implementation of the present invention described and / or required herein.
[0186] like Fig.13As shown, the projection device 10 includes at least one processor 11, and a memory connected to the at least one processor 11, such as a read-only memory (ROM) 12, a random access memory (RAM) 13, etc., wherein the memory stores a computer program that can be executed by the at least one processor, and the processor 11 can perform various appropriate actions and processes according to the computer program stored in the read-only memory (ROM) 12 or the computer program loaded from the storage unit 18 to the random access memory (RAM) 13. In the RAM 13, various programs and data required for the operation of the projection device 10 can also be stored. The processor 11, the ROM 12, and the RAM 13 are connected to each other through a bus 14. An input / output (I / O) interface 15 is also connected to the bus 14.
[0187] A number of components in the projection device 10 are connected to the I / O interface 15, including: an input unit 16, such as a keyboard, a mouse, etc.; an output unit 17, such as various types of displays, speakers, etc.; a storage unit 18, such as a disk, an optical disk, etc.; and a communication unit 19, such as a network card, a modem, a wireless communication transceiver, etc. The communication unit 19 allows the projection device 10 to exchange information / data with other devices through a computer network such as the Internet and / or various telecommunication networks.
[0188] The processor 11 may be a variety of general and / or special processing components with processing and computing capabilities. Some examples of the processor 11 include, but are not limited to, a central processing unit (CPU), a graphics processing unit (GPU), various special artificial intelligence (AI) computing chips, various processors running machine learning model algorithms, a digital signal processor (DSP), and any appropriate processor, controller, microcontroller, etc. The processor 11 executes the various methods and processes described above, such as the dynamic area image fusion method of naked eye 3D as described in an embodiment of the present invention.
[0189] That is:
[0190] After the display of the current projection image is completed, if it is determined that the current projection image contains the 3D fusion object to be moved, obtaining a target dynamic area of the 3D fusion object in the next projection image;
[0191] According to the target dynamic area, the target pixel points corresponding to each target thread are determined, and the corresponding target pixel points are rendered by using the target thread to obtain the next projection image;
[0192] The next projection image is projected onto a display screen for projection display.
[0193] In some embodiments, the dynamic area image fusion method of naked eye 3D can be implemented as a computer program, which is tangibly contained in a computer readable storage medium, such as a storage unit 18. In some embodiments, part or all of the computer program can be loaded and / or installed on the projection device 10 via the ROM 12 and / or the communication unit 19. When the computer program is loaded into the RAM 13 and executed by the processor 11, one or more steps of the dynamic area image fusion method of naked eye 3D described above can be performed. Alternatively, in other embodiments, the processor 11 can be configured to perform the dynamic area image fusion method of naked eye 3D in any other appropriate manner (for example, by means of firmware).
[0194] Various implementations of the systems and techniques described above herein can be implemented in digital electronic circuit systems, integrated circuit systems, field programmable gate arrays (FPGAs), application specific integrated circuits (ASICs), application specific standard products (ASSPs), systems on chips (SOCs), load programmable logic devices (CPLDs), computer hardware, firmware, software, and / or combinations thereof. These various implementations can include: being implemented in one or more computer programs that can be executed and / or interpreted on a programmable system including at least one programmable processor, which can be a special purpose or general purpose programmable processor that can receive data and instructions from a storage system, at least one input device, and at least one output device, and transmit data and instructions to the storage system, the at least one input device, and the at least one output device.
[0195] Computer programs for implementing the methods of the present invention may be written in any combination of one or more programming languages. These computer programs may be provided to a processor of a general-purpose computer, a special-purpose computer, or other programmable data processing device, so that when the computer program is executed by the processor, the functions / operations specified in the flow chart and / or block diagram are implemented. The computer program may be executed entirely on the machine, partially on the machine, partially on the machine and partially on a remote machine as a stand-alone software package, or entirely on a remote machine or server.
[0196] In the context of the present invention, a computer-readable storage medium may be a tangible medium that may contain or store a computer program for use by or in combination with an instruction execution system, device or equipment. A computer-readable storage medium may include, but is not limited to, electronic, magnetic, optical, electromagnetic, infrared, or semiconductor systems, devices or equipment, or any suitable combination of the foregoing. Alternatively, a computer-readable storage medium may be a machine-readable signal medium. A more specific example of a machine-readable storage medium may include an electrical connection based on one or more lines, a portable computer disk, a hard disk, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disk read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing.
[0197] To provide interaction with a user, the systems and techniques described herein can be implemented on a projection device having: a display device (e.g., a CRT (cathode ray tube) or LCD (liquid crystal display) monitor) for displaying information to the user; and a keyboard and pointing device (e.g., a mouse or trackball) through which the user can provide input to the projection device. Other types of devices can also be used to provide interaction with the user; for example, the feedback provided to the user can be any form of sensory feedback (e.g., visual feedback, auditory feedback, or tactile feedback); and input from the user can be received in any form (including acoustic input, voice input, or tactile input).
[0198] The systems and techniques described herein may be implemented in a computing system that includes backend components (e.g., as a data server), or a computing system that includes middleware components (e.g., an application server), or a computing system that includes frontend components (e.g., a user computer with a graphical user interface or a web browser through which a user can interact with implementations of the systems and techniques described herein), or a computing system that includes any combination of such backend components, middleware components, or frontend components. The components of the system may be interconnected by any form or medium of digital data communication (e.g., a communication network). Examples of communication networks include: a local area network (LAN), a wide area network (WAN), a blockchain network, and the Internet.
[0199] A computing system may include a client and a server. The client and the server are generally remote from each other and usually interact through a communication network. The client and server relationship is generated by computer programs running on the corresponding computers and having a client-server relationship with each other. The server may be a cloud server, also known as a cloud computing server or cloud host, which is a host product in the cloud computing service system to solve the defects of difficult management and weak business scalability in traditional physical hosts and VPS services.
[0200] It should be understood that the various forms of processes shown above can be used to reorder, add or delete steps. For example, the steps described in the present invention can be executed in parallel, sequentially or in different orders, as long as the desired results of the technical solution of the present invention can be achieved, and this document does not limit this.
[0201] The above specific implementations do not constitute a limitation on the protection scope of the present invention. It should be understood by those skilled in the art that various modifications, combinations, sub-combinations and substitutions can be made according to design requirements and other factors. Any modification, equivalent substitution and improvement made within the spirit and principle of the present invention should be included in the protection scope of the present invention.
Claims
1. A method for fusion of dynamic area images of naked eye 3D, characterized in that: include: After the display of the current projection image is completed, if it is determined that the current projection image contains the 3D fusion object to be moved, obtaining a target dynamic area of the 3D fusion object in the next projection image; According to the target dynamic area, the target pixel points corresponding to each target thread are determined, and the corresponding target pixel points are rendered by using the target thread to obtain the next projection image; The next projection image is projected onto a display screen for projection display.
2. The method according to claim 1, characterized in that Determining the target pixel positions corresponding to the target threads respectively according to the target dynamic area includes: Extracting target partition description information and screen anchor information according to the target dynamic area, and acquiring multiple dynamic parameters according to the target partition description information and the screen anchor information; According to the dynamic parameters and the screen anchoring information, the target pixel positions corresponding to the target threads are determined.
3. The method according to claim 2, characterized in that The target partition description information includes the first coordinate of the center point of the target dynamic area in the next projection image, and the size information of the target dynamic area in the next projection image; The screen anchoring information includes size information of the next projection image and second coordinates of the anchor point in the next projection image.
4. The method according to claim 3, characterized in that According to the target partition description information and the screen anchoring information, multiple dynamic parameters are obtained, including: Determine the area width and area height of the target dynamic area in the next projection image according to the size information of the target dynamic area in the next projection image; According to the first coordinate and the second coordinate, a horizontal coordinate difference and a vertical coordinate difference between the center point of the target dynamic area and the anchor point are determined.
5. The method according to claim 4, characterized in that According to the dynamic parameters and the screen anchoring information, the target pixel positions corresponding to the target threads are determined, including: The compute shader in the image processing engine is called to determine the target pixel position corresponding to the target thread within the target dynamic area according to the following formula: id.x1=id.x2+LocalX+ScreenWidth / 2-ΔWidth / 2; id.y1=id.y2+LocalY+ScreenHeight / 2-ΔHeight / 2; Among them, id.x1 and id.y1 are the horizontal and vertical coordinates of the target pixel point respectively, id.x2 and id.y2 are the horizontal and vertical coordinates of the pixel point processed by the target thread in the current projection image respectively, LocalX and LocalY are the horizontal relative coordinates and vertical relative coordinates between the center point of the target dynamic area and the anchor point respectively, ScreenWidth is the screen width of the next projection image, ScreenHeight is the screen height of the next projection image, ΔWidth is the area width of the target dynamic area in the next projection image, and ΔHeight is the reference height of the target dynamic area in the next projection image.
6. The method according to claim 5, characterized in that After obtaining a plurality of dynamic parameters according to the target partition description information and the screen anchoring information, the method further includes: According to the target dynamic area and the dynamic parameter, target threads for performing image fusion on the target dynamic area are determined in a computing shader.
7. The method according to claim 6, characterized in that According to the target dynamic area and the dynamic parameter, determining in the compute shader each target thread for performing image fusion on the target dynamic area includes: Determining a thread arrangement pattern in each thread group predefined in the compute shader; At least one target thread group for performing image fusion on a target dynamic area is defined in a compute shader according to the thread arrangement mode, the area width, and the area height, and a plurality of target threads are determined according to the target thread group.
8. The method according to claim 7, characterized in that The target thread in the compute shader is used to render the unique target pixel corresponding to it according to the fusion rule to obtain the rendering result value of the target pixel. When each target thread completes the rendering, the target dynamic area is determined to complete the image fusion processing.
9. The method according to any one of claims 1 to 8, characterized in that The next projected image is a 3D head-up display image; The display screen is an imaging element arranged on the vehicle; the imaging element includes a front windshield of the vehicle, a reflective layer film arranged in the vehicle, or an imaging window arranged in the vehicle.
10. The method according to claim 9, characterized in that The 3D fused object to be moved is an augmented reality (AR) prompt element; The AR prompt elements specifically include AR navigation elements and AR obstacle prompt elements.
11. The method according to claim 10, characterized in that Obtaining the target dynamic area of the 3D fusion object in the next projection image, including: When a moving condition of the AR prompt element is detected, obtaining first position description information of the AR prompt element in the real world; Determine, according to the first position description information of the AR prompt element in the real world, second position description information of the AR prompt element in the heads-up display coordinate system in the virtual image plane; According to the second position description information, a dynamic area for displaying the AR prompt element is determined in the next projection image.
12. The method according to any one of claims 1 to 8, characterized in that The target dynamic area of the next projection image includes a left-eye visible image and a right-eye visible image of the 3D fused object.
13. A naked eye 3D dynamic area image fusion device, characterized in that: include: A dynamic region determination module, configured to, after displaying the current projection image, obtain a target dynamic region of the 3D fusion object in the next projection image if it is determined that the current projection image contains the 3D fusion object to be moved; A projection image generation module, used to determine the target pixel points corresponding to each target thread according to the target dynamic area, and use the target thread to render the corresponding target pixel points to obtain the next projection image; The projection display module is used to project the next projection image onto a display screen for projection display.
14. A projection device, characterized in that: The projection device comprises: at least one processor; and a memory communicatively connected to the at least one processor; wherein, The memory stores a computer program executable by the at least one processor, and the computer program is executed by the at least one processor so that the at least one processor can execute the naked-eye 3D dynamic area image fusion method described in any one of claims 1 to 12 of the present invention.
15. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores computer instructions, and the computer instructions are used to enable a processor to implement the naked-eye 3D dynamic area image fusion method according to any one of claims 1 to 12 when executed.
Citation Information
Cited By
Vehicle, readable storage medium, image processing method, system and device
CN122510514A
Naked-eye 3D dynamic-area image fusion method and apparatus, device, and medium
WO2026025891A1
