Advanced time domain low light filtering with global and local motion compensation
By using inertial measurement unit data in the MR system for global motion compensation and optical flow vector adjustment, the problems of ghosting effects and image quality reduction in temporal filtering are solved, and high-resolution image generation under low-light conditions is achieved.
Patent Information
- Application Number
- CN202280090331.1
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Priority Date
- 2022-02-28
- Filing Date
- 2022-11-25
- Publication Date
- 2024-09-13
AI Technical Summary
When existing MR systems perform temporal filtering, they face the problem of ghosting effects and reduced image quality caused by global camera motion and local movement within the scene. Especially in low-light conditions, it is difficult to generate high-resolution output images.
By obtaining the historical frame and current frame of the scene, using the inertial measurement unit data for global motion compensation, reprojecting the historical frame to match the posture of the current frame, and calculating the optical flow vector to adjust the pixel position, thereby generating the compensated historical frame progress time Domain filtering to reduce ghosting effects and improve image quality.
Effectively compensates for global camera motion and local movement within the scene, significantly improving image quality, especially in low-light conditions to produce high-resolution output images and reducing noise and ghosting effects.
Smart Images

Figure CN118648019A
Abstract
Description
Background Art
[0001] Mixed reality (MR) systems, including virtual reality (VR) and augmented reality (AR) systems, have received great attention for their ability to create truly unique experiences for their users. For reference, traditional VR systems create a fully immersive experience by limiting their users' field of view to only the virtual environment. This is typically achieved through the use of a head mounted device (HMD) that completely blocks any view of the real world. Thus, the user is completely immersed in the virtual environment. In contrast, traditional AR systems create an augmented reality experience by visually presenting virtual objects that are placed in the real world or interact with the real world.
[0002] As used herein, VR and AR systems may be described and referenced interchangeably. Unless otherwise noted, the description herein is equally applicable to all types of MR systems, which (as described in detail above) include AR systems, VR reality systems, and / or any other similar systems capable of displaying virtual content.
[0003] MR systems may also employ different types of cameras to display content to a user, such as in the form of a through-image. The through-image or view may help the user avoid disorientation and / or safety hazards when transitioning to and / or navigating within an MR environment. MR systems may present the view captured by the camera in a variety of ways. However, the process of providing a view of a real-world environment using images captured by a world-facing camera creates a number of challenges.
[0004] To improve the quality of the images displayed to the user, some MR systems perform what is known as "temporal filtering." "Temporal filtering" refers to the process by which the system combines data captured at multiple points in time to generate a specific output. In other words, the system essentially stacks multiple images on top of each other and combines them in some way to produce an aggregated image with improved quality.
[0005] For example, in the context of an MR system, the system combines image data of continuously captured images to generate an improved output. As an example, consider a low-light scenario. Due to the presence of low light, each individual image may only be able to provide a limited amount of image data. However, by combining data from multiple continuously captured images, the system (e.g., by combining data from all of these images via time-domain filtering) can produce a suitable output image. In this sense, the process of time-domain filtering involves capturing multiple image frames within a certain period of time, and then combining image data from these frames to produce an output frame, resulting in a scenario where the output frame is actually an aggregation of multiple input frames.
[0006] However, various challenges arise when performing temporal filtering. For example, if an object in a scene or environment is moving while the system is capturing multiple consecutive images, a so-called "ghosting effect" may result. More specifically, ghosting occurs when an object or image artifact has a trail of pixels that follows the object (e.g., in the form of motion blur). This trail of pixels occurs because the object is at different locations when the multiple consecutive images are generated, and these different locations are then reflected in the final composite image.
[0007] Another challenge occurs when the camera itself experiences movement while generating the image. The movement of the camera can also skew the temporal filtering process. This may be the case when the camera moves in a non-MR system context, such as perhaps in a vehicle. In this regard, there are other technical areas where these challenges occur. Yet another challenge relates to the quality or resolution of the final output image. In view of these and other challenges, there is a substantial need for improved temporal filtering processes.
[0008] The subject matter claimed herein is not limited to embodiments that solve any disadvantages or that operate only in environments such as described above. Rather, this background is merely provided to illustrate one exemplary technology area in which some embodiments described herein may be practiced. Summary of the invention
[0009] Embodiments disclosed herein relate to systems, devices, and methods for generating temporally filtered images designed to compensate for global motion of a camera and to compensate for local motion of one or more objects moving locally within a scene.
[0010] Some embodiments obtain a historical frame and a current frame of a scene, wherein the current frame is generated by a camera. In response to determining a first pose of the camera when generating the current frame (e.g., possibly using inertial measurement unit (IMU) data), the embodiment performs a global motion compensation operation on the historical frame to reproject a second pose of the historical frame to match the first pose. After performing the global motion compensation operation, the motion-compensated historical frame is compared with the current frame to identify a set of pixels located at a first set of positions within the motion-compensated historical frame but at a second set of positions within the current frame. The set of pixels corresponds to one or more objects that move locally within the scene. Moreover, the second set of positions is different from the first set of positions. For each pixel in the set of pixels, the embodiment calculates a corresponding optical flow vector. As a result, a plurality of optical flow vectors are calculated. These optical flow vectors map the movement of the object, wherein the movement is represented by a set of pixels at a first set of positions in the motion-compensated historical frame and at a second set of positions in the current frame. The embodiment generates an adjusted historical frame from the motion-compensated historical frame by applying the optical flow vector to a set of pixels included in the motion-compensated historical frame so that the set of pixels is shifted from the first set of positions in the motion-compensated historical frame to a new position. The new positions in the adjusted historical frame correspond to the second set of positions identified for the set of pixels in the current frame.After shifting the set of pixels to the new positions in the adjusted historical frame, an embodiment performs temporal filtering on the current frame using the adjusted historical frame to generate a temporal filtered image.
[0011] This summary is provided to introduce selected concepts in a simplified form that are further described in the detailed description below. This summary is not intended to identify key features or essential features of the claimed subject matter, nor is it intended to be used as an aid in determining the scope of the claimed subject matter.
[0012] Additional features and advantages will be set forth in the description that follows, and in part will be apparent from the description, or may be learned by practicing the teachings herein. The features and advantages of the present invention may be realized and obtained by means of the instruments and combinations particularly pointed out in the appended claims. The features of the present invention will become more apparent from the following description and the appended claims, or may be learned by practicing the present invention as set forth below. BRIEF DESCRIPTION OF THE DRAWINGS
[0013] In order to describe the manner in which the above-recited and other advantages and features can be obtained, a more particular description of the subject matter briefly described above will be rendered by reference to specific embodiments that are illustrated in the accompanying drawings. Understanding that these drawings depict only typical embodiments and are not therefore to be considered limiting of scope, the embodiments will be described and explained with additional specificity and detail through the use of the accompanying drawings, in which:
[0014] Figure 1 An example of an HMD is shown.
[0015] Figure 2 It shows how an HMD may generate an image and how in some cases the image may be noisy.
[0016] Figure 3 An example timeline showing how time domain filtering is performed is shown.
[0017] Figure 4A , Figure 4B , Figure 4C , Figure 4D and Figure 4E Various operations are shown for performing global and local motion compensation operations.
[0018] Figure 5A and Figure 5B A high-level overview of the disclosed operations is shown.
[0019] Figure 6 A flow chart is shown of an example method for generating a temporally filtered image designed to compensate for global motion of a camera and to compensate for local motion of one or more objects moving locally within a scene.
[0020] Figure 7 An example computer system configured to perform any of the disclosed operations is shown. DETAILED DESCRIPTION
[0021] Embodiments disclosed herein relate to systems, devices, and methods for generating temporally filtered images designed to compensate for global motion of a camera and to compensate for local motion of one or more objects moving locally within a scene.
[0022] Some embodiments obtain a historical frame and a current frame of a scene. In response to determining a first pose of the camera when generating the current frame, the embodiment performs a global motion compensation operation on the historical frame to reproject a second pose of the historical frame to match the first pose. Thereafter, the motion-compensated historical frame is compared with the current frame to identify a set of pixels (corresponding to specific content in the scene) located at a first set of positions within the motion-compensated historical frame but at a second set of positions within the current frame. In other words, the content moves in the scene, and the pixels representing the content are now at new positions in the current frame. For each pixel in the set, the embodiment calculates a corresponding optical flow vector. These optical flow vectors map the movement of the object. The embodiment applies the optical flow vector to the set of pixels so that the pixels are shifted from the first set of positions to new positions in the adjusted historical frame. These new positions in the adjusted historical frame correspond to the second set of positions identified in the current frame. Thereafter, the embodiment uses the adjusted historical frame to perform time-domain filtering on the current frame to generate a time-domain filtered image.
[0023] Examples of technology benefits, improvements and real-world applications
[0024] The following section summarizes some example improvements and practical applications provided by the disclosed embodiments. However, it will be understood that these are merely examples, and the embodiments are not limited to these improvements.
[0025] The disclosed embodiments bring many benefits, advantages, and practical applications to the art. In other words, the embodiments provide improvements in the field of temporal filtering and image generation technology. For example, the disclosed embodiments provide the ability for a system to operate in suboptimal conditions such as low light conditions, but still be able to produce a high resolution output image. For illustration, the disclosed principles can be practiced in low light environments where a camera sensor may detect less than 1 photon per image frame (also referred to as an "image"). Despite these suboptimal conditions, the embodiments advantageously achieve an improved output signal by combining multiple frames together in time.
[0026] Embodiments also advantageously reduce or completely eliminate ghosting effects that might otherwise occur in conventional systems when objects in the scene move. These principles can be implemented even when there are high noise levels in the generated images, or when there is a low signal to noise ratio for the image. In other words, these principles can be practiced under a wide range of conditions.
[0027] If the camera is moving, a motion compensation operation may be performed to compensate for the motion. As used herein, the phrase "motion compensation" (MC) refers to the process by which the pose in one image is modified / reprojected based on motion data (e.g., IMU data). The modification is designed to make the original pose match a subsequent or predicted pose, which is optionally predicted or determined based on the IMU data. Optionally, some embodiments may use feature matching to determine the pose.
[0028] Embodiments may also take into account objects that move locally with the scene / environment. Traditionally, such movement would create ghosting effects in the resulting temporally filtered image. On the other hand, the disclosed embodiments may compensate for and take into account such movement, thereby producing a higher quality image.
[0029] Advantageously, the disclosed principles may be practiced in other non-MR system contexts, such as perhaps in the context of a smart vehicle. Accordingly, these and many other benefits will now be described in the remainder of this disclosure.
[0030] Example MR Systems and HMDs
[0031] Now turn your attention to Figure 1 , which shows an example of a head mounted device (HMD) 100. The HMD 100 can be any type of MR system 100A, including a VR system 100B or an AR system 100C. It should be noted that although most of the present disclosure focuses on the use of an HMD, the embodiments are not limited to being practiced using only an HMD. In other words, any type of camera system can be used, even a camera system that is completely removed or separated from the HMD. Therefore, the disclosed principles should be broadly interpreted to cover any type of camera usage scenario. Some embodiments themselves can even avoid actively using the camera, and can directly use the data generated by the camera. For example, some embodiments can be practiced at least in part in a cloud computing environment.
[0032] HMD 100 is shown to include scanning sensor(s) 105 (i.e., a scanning or camera system), and HMD 100 may use scanning sensor(s) 105 to scan the environment, map the environment, capture environmental data, and / or generate any type of image of the environment (e.g., by generating a 3D representation of the environment or by generating a “pass-through” visualization). Scanning sensor(s) 105 may include any number or type of scanning devices without limitation.
[0033] According to the disclosed embodiments, the HMD 100 can be used to generate a pass-through visualization of the user's environment. As used herein, a "pass-through" visualization refers to a visualization that reflects the perspective of the environment from the user's point of view. To generate such a pass-through visualization, the HMD 100 can use its (multiple) scanning sensors 105 to scan, map, or otherwise record its surroundings, including any objects in the environment, and pass that data to the user for viewing. As will be briefly described, various transformations can be applied to the image before it is displayed to the user to ensure that the displayed perspective matches the user's intended perspective.
[0034] To generate the through-images, the scanning sensor(s) 105 typically rely on its camera (e.g., a head tracking camera, a hand tracking camera, a depth camera, or any other type of camera) to obtain one or more raw images (also referred to as "texture images") of the environment. In addition to generating through-images, these raw images may also be used to determine depth data detailing the distance from the sensor to any object captured by the raw images (e.g., z-axis range or measurement). When these raw images are obtained, a depth map (e.g., based on pixel disparity) may be calculated from the depth data embedded or included within the raw images, and through-images (e.g., one for each pupil) may be generated using the depth maps for any reprojections if desired. The through-images may be generated as a result of performing temporal filtering on multiple consecutively generated images.
[0035] From the pass-through visualization, the user will be able to perceive content in their current environment without having to remove or reposition the HMD 100. In addition, as will be described in more detail later, the disclosed pass-through visualization may also enhance the user's ability to see objects within their environment (e.g., by displaying additional environmental conditions that may not be detectable by the human eye). As used herein, a so-called "overlay image" may be a type of pass-through image.
[0036] It should be noted that while much of this disclosure focuses on generating "one" through-image, embodiments actually generate separate through-images for each eye in the user's glasses. In other words, two through-images are typically generated simultaneously with each other. Thus, while frequently referring to generating what appears to be a single through-image, embodiments are actually capable of generating multiple through-images simultaneously.
[0037] In some embodiments, scanning sensor(s) 105 include visible light camera(s) 110, low light camera(s) 115, thermal imaging camera(s) 120, potential ultraviolet (UV) camera(s) 125, potential point illuminator(s) 130, and even infrared camera 135. Ellipses 140 represent how any other type of camera or camera system (e.g., depth camera, time of flight camera, virtual camera, depth laser, etc.) may be included in scanning sensor(s) 105.
[0038] As an example, a camera configured to detect mid-infrared wavelengths may be included within the scanning sensor(s) 105. As another example, any number of virtual cameras reprojected from an actual camera may be included in the scanning sensor(s) 105 and may be used to generate a stereoscopic image pair. In this manner, the scanning sensor(s) 105 may be used to generate a stereoscopic image pair. In some cases, the stereoscopic image pair may be obtained or generated as a result of any one or more of the following operations: active stereoscopic image generation via the use of two cameras and a point illuminator (e.g., point illuminator 130); passive stereoscopic image generation via the use of two cameras; image generation using structured light via the use of an actual camera, a virtual camera, and a point illuminator (e.g., point illuminator 130); or image generation using a time of flight (TOF) sensor, in which a baseline is presented between a depth laser and a corresponding camera, and in which the field of view (FOV) of the corresponding camera is an offset relative to the illumination field of the depth laser.
[0039] (Multiple) visible light cameras 110 are typically stereo cameras, which means that the fields of view of two or more visible light cameras at least partially overlap each other. Using this overlapping area, the images generated by (multiple) visible light cameras 110 can be used to identify the disparity between certain pixels that collectively represent the objects captured by the two images. Based on these pixel disparities, embodiments can determine the depth for objects located within the overlapping area (i.e., "stereo depth matching"). Therefore, (multiple) visible light cameras 110 can be used not only to generate direct visualization, but also to determine object depth. In some embodiments, (multiple) visible light cameras 110 can capture both visible light and IR light.
[0040] In some embodiments, visible light camera(s) 110 and low light camera(s) 115 (also referred to as "low light night vision cameras") operate in approximately the same overlapping wavelength range. In some cases, the overlapping wavelength range is between about 400 nanometers and about 1,100 nanometers. Furthermore, in some embodiments, both types of cameras are silicon detectors.
[0041] One distinguishing feature between these two types of cameras relates to the illumination conditions or illumination ranges in which they actively operate. In some cases, visible light camera(s) 110 are low-power cameras and operate in environments where illumination is between about 10 lux and about 100,000 lux, or more accurately, an illumination range starting at about 10 lux and increasing beyond 10 lux. In contrast, low-light camera(s) 115 consume more power and operate in environments where illumination ranges between about 110 microlux and about 10 lux.
[0042] On the other hand, the thermal imaging camera(s) 120 are configured to detect electromagnetic radiation or IR light in the far IR (i.e., thermal IR) range, although some embodiments also enable the thermal imaging camera(s) 120 to detect radiation in the mid-IR range. For clarity, the thermal imaging camera(s) 120 may be a long-wave infrared imaging camera configured to detect electromagnetic radiation by measuring long-wave infrared wavelengths. Typically, the thermal imaging camera(s) 120 detects IR radiation having wavelengths between approximately 8 microns and 14 microns. These wavelengths are also included in the spectrum(s). Because the thermal imaging camera(s) 120 detects far IR radiation, the thermal imaging camera(s) 120 may operate under any illumination conditions without limitation.
[0043] HMD 100 may also be equipped with an inertial measurement unit (IMU), as shown by IMU 145. IMU 145 uses a combination of accelerometers, gyroscopes, and magnetometers to measure forces, angular rates, and directions. IMU 145 generates IMU data, which may be used by the disclosed embodiments.
[0044] Therefore, as used herein, references to "visible light cameras" (including "head tracking cameras") refer to cameras that are primarily used for computer vision to perform head tracking. These cameras can detect visible light, or even a combination of visible light and IR light (e.g., a range of IR light, including IR light with a wavelength of about 850nm). In some cases, these cameras are global shutter devices with pixels that are about 3μm in size. On the other hand, low-light cameras are cameras that are sensitive to visible light and near IR. These cameras are larger and can have pixels that are about 8μm or larger in size. These cameras are also sensitive to wavelengths that silicon sensors are sensitive to, which are between about 350nm and 1100nm. Thermal / long wavelength IR devices (i.e., thermal imaging cameras) have a pixel size of about 10μm or larger and detect heat radiated from the environment. These cameras are sensitive to wavelengths in the range of 8μm to 14μm. Some embodiments also include a mid-IR camera configured to detect at least mid-IR light. These cameras typically include non-silicon materials (such as InP or InGaAs) that detect light in the 800nm to 2μm wavelength range.
[0045] The disclosed embodiments can be configured to utilize a variety of different camera modalities. The different camera modalities include, but are not limited to, visible light or monochrome cameras, low light cameras, thermal imaging cameras, and UV cameras.
[0046] It should be noted that any number of cameras may be provided on the HMD 100 for each of the different camera types (also referred to as modalities). In other words, the visible light camera(s) 110 may include 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, or more than 10 cameras. However, the number of cameras is typically at least 2 so that the HMD 100 can perform pass-through image generation and / or stereo depth matching as previously described. Similarly, the low light camera(s) 115, the thermal imaging camera(s) 120, and the UV camera(s) 125 may include 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, or more than 10 corresponding cameras, respectively.
[0047] In some scenarios, noise may be present in one of the images. For example, in extreme low light conditions (e.g., 1.0 millilux or "starlight" environments), there may not be enough visible photons in the environment for a low light camera to generate a high quality image. In fact, the resulting image generated by the low light camera may be severely corrupted by noise. When this occurs, embodiments can advantageously perform temporal filtering. More details on temporal filtering will be provided briefly.
[0048] However, by way of reference, it is helpful to note general illumination metrics for different scenarios. For example, a clear day typically has an ambient light intensity of about 10,000 to 50,000 lux. A cloudy day typically has an ambient light intensity of about 1,000 to 10,000 lux. An indoor office typically has an ambient light intensity of about 100 to 300 lux. The moment corresponding to dusk typically has an ambient light intensity of about 10 lux. Late at night has an ambient light intensity of about 1 lux. As used herein, a so-called "low light environment" corresponds to at least any environment in which the ambient light intensity is equal to or less than about 40 lux. The HMD has one or more sensors that are configured to determine the lux intensity of the surrounding environment. These sensors can be incorporated into the cameras and / or illuminators described herein or independent of the cameras and / or illuminators described herein.
[0049] When used in an extreme low light environment (e.g., about 1.0 millilux or a "starlight" environment), the low light camera sensor attempts to compensate for the low light condition by ramping up the gain of the camera (e.g., digital gain, analog gain, or a combination of digital gain and analog gain). As a result of the gain ramping of the camera sensor, the resulting image may be very noisy. In an effort to improve the quality of the image, an embodiment performs temporal filtering.
[0050] Time Domain Filtering
[0051] Figure 2 HMD 200 is shown, which shows Figure 1 1. The HMD 100 of FIG. 200 has generated an image 205 in a low light environment 210. As shown, the image 205 includes various different image data 215. However, because the image 205 is generated in a low light situation, there is a large amount of noise 220 (e.g., white spots throughout the image 205). If used by itself, the image 205 would provide an overall poor quality image for presentation to the user. With this understanding, an embodiment is configured to perform temporal filtering. Figure 3 Provides some useful details.
[0052] Figure 3 A timeline 300 is shown. At time T0, HMD 305 (which identifies the HMD discussed thus far) generates image 310 including image data 315. Figure 2 Similar to the situation presented in , image 310 is generated in a low-light environment. Figure 3 Note also how after time T0, the HMD (or more precisely, the camera) undergoes some amount of motion 320 or movement. This movement of the camera may be referred to as global movement.
[0053] At time T1, HMD 305 then generates a second image 325 including image data 330. In accordance with the disclosed principles, an embodiment can use image 310 and image 325 to perform a temporal filtering 335 operation. An embodiment can also use motion data 340 generated by an IMU to compensate for motion 320 (i.e., global motion) that occurred between time T0 and time T1. In other words, an embodiment can obtain IMU data 345 that details the angular position 350 and acceleration 355 of the camera that generated image 310 and image 325. Angular position 350 details the orientation of the camera using a three degree of freedom (DOF) basis, while acceleration 355 details whether the camera is translating or moving.
[0054] Motion compensation operation (i.e., reprojection operation) generally involves modifying a pose to match a different pose. The different pose can be a predicted pose based on motion data 340, or can be a pose that matches a newly acquired (i.e., "current") frame. As an example, image 310 reflects or embodies the first pose of HMD 305 at time T0. Then, HMD 305 shifts to a new position or pose, as shown by motion 320. The IMU captures the movement of HMD 305 between time T0 and time T1. HMD 305 can use IMU data to predict the new pose of HMD 305 at time T1 (or possibly even later). Based on the prediction, HMD 305 can then perform motion compensation operation to transform the pose embodied in image 310 to reflect the predicted pose of HMD 305 (such as its pose at time T1). At time T1, HMD 305 generates image 325. As indicated above, the new pose can also be a pose acquired from the current frame, so that the new pose is not a predicted pose.
[0055] Embodiments can compare a motion compensated pose (which is designed to attempt to reflect the pose of the HMD 305 at time T1) with the actual pose of the HMD 305 at time T1. The level or amount of difference between the two poses reflects the accuracy of the motion compensation. If there is no difference, the motion compensation operation is 100% successful. On the other hand, the greater the amount of difference, the worse the motion compensation performed. Measuring or comparing the difference is primarily performed by comparing the intensity levels of individual pixels to each other. In other words, a first pixel in the motion compensated image is identified, and a corresponding pixel in the image 325 is identified. The intensity levels for these two pixels are compared to each other. The resulting difference between these two values reflects the accuracy of the motion compensation operation.
[0056] Due to the temporal filtering process, it is desirable to perform motion compensation. Recall that the temporal filtering process essentially stacks multiple images on top of each other and combines the data from those images to generate an enhanced image. In order for the stacking to work correctly, the poses in each of those different images should be aligned with each other. Therefore, a motion compensation operation is performed in order to align the various different poses for the various different images.
[0057] As a result of performing the temporal filtering 335 operation, embodiments are able to generate a temporal filtered image 360 having improved or enhanced image data 365 as compared to the image data 315 and image data 330 of the previous image. Furthermore, as will be described, the above-described embodiments not only advantageously compensate for the motion of the camera, but also advantageously reduce the impact of ghosting effects 370 for objects moving in the scene. Notably, in some embodiments, the exposure setting of the camera remains unchanged while the camera generates the image.
[0058] When objects in the scene move, these objects can create the ghosting effect mentioned above when the images are stacked on each other during the generation of the temporal filtered images. The disclosed embodiments are configured to take into account and compensate for the local movement of objects that move locally within the scene. Therefore, as used herein, "global" movement refers to the movement of the camera and causes a change in the pose of the resulting image, while "local" movement refers to the movement of the objects presented in the scene. IMU data can be used to compensate for global movement (i.e., by performing global MC operations), but IMU data cannot be used to compensate for local movement. Instead, different operations (e.g., local MC operations) are performed to take into account the local movement of objects.
[0059] Global and local motion compensation process
[0060] Now turn your attention to Figure 4A , Figure 4B , Figure 4C , Figure 4D , Figure 4E , Figure 5A and Figure 5B These figures illustrate various scenarios in which the disclosed embodiments perform global and local motion compensation operations.
[0061] Figure 4A An example of a history frame 400 is shown. The history frame 400 may be a previously generated image, or alternatively, the history frame 400 may be an existing temporally filtered image frame generated by stacking together multiple previous images in the manner previously described. The history frame 400 depicts a scene 400A or environment (e.g., a scene of a woman doing pull-ups on a pull-up bar).
[0062] The historical frame 400 depicts an object 405 (e.g., a person doing pull-ups). It is also noted that the historical frame 400 has a particular pose 410 associated with it. Specifically, the pull-up bar is currently located in the lower left corner of the image. The pose 410 refers to the positioning of the camera that generated the image frame, or alternatively, to the perspective embodied in the image (such as in the case where the image is not an image generated by a camera, but rather an image generated by a temporal filtering process). Based on the perspective embodied in the historical frame 400, the camera is positioned slightly away from the pull-up bar, with the camera's optical axis aligned with the rightmost vertical bar of the pull-up bar.
[0063] The camera can be the front reference Figure 1 Any of the cameras described. In some cases, the camera is one of a single photon avalanche diode (SPAD) camera, a single photon detector, a supercooled camera, a scientific camera module, or an image intensifier II plus a complementary metal oxide semiconductor (CMOS) camera. In some implementations, the camera is a low noise camera.
[0064] The history frame 400 is generated at a specific point in time, such as time T0. At a later point in time (eg, T1), a current frame 415 is generated by the camera. During the intervening time between time T0 and T1, global and local movements occur.
[0065] For the sake of illustration, note that current frame 415 also includes a depiction of object 420, and that the current frame also has a corresponding pose 425. It is noteworthy that pose 425 is different from pose 410. The reason for this difference is that the position of the camera has shifted between time T0 and time T1. In other words, a global movement has occurred (i.e., the position of the camera itself has shifted).
[0066] The disclosed camera system can operate at any rate between 30 frames per second (FPS) and 120 FPS. Typically, the camera operates at a rate of about 90 FPS (e.g., the current frame can be generated at a rate of about 90 FPS). Due to this fast rate, it is typically the case that the amount of movement between the historical frame 400 and the current frame 415 is typically quite small. In other words, it is typically the case that the amount of global movement and / or local movement is typically quite small, such as perhaps a certain number of pixels (e.g., anywhere from 1 pixel to sometimes more than 100 pixels). In order to provide a more illustrative example, the amount of movement exhibited by gesture 410 and gesture 425 is exaggerated.
[0067] For example, gesture 425 now shows the pull-up bar positioned to the right of the current frame 415. In other words, the camera shifted to the left as it moved. Also, it appears that the camera's optical axis is now aimed at the leftmost vertical bar of the pull-up bar.
[0068] According to the principles discussed previously, embodiments can use an IMU to generate IMU data 430. This IMU data 430 can be used to perform global motion compensation operations to account for global movement of the camera.
[0069] However, in Figure 4A 4, it can also be observed how object 405 has moved locally within the scene. While the woman in historical frame 400 was shown near the bottom of her pull-up, the woman in current frame 415 is shown near the top of her pull-up, as shown by object 420. Again, the amount of movement of the object (i.e., the local movement) is exaggerated to provide better illustration.
[0070] While global motion compensation operations can advantageously account for and compensate for changes in camera poses (e.g., the difference between pose 410 and pose 425), IMU data 430 cannot be used to account for local changes in moving objects. Therefore, techniques are needed to compensate for changes that occur due to objects moving within the scene between the time when historical frame 400 was generated and the time when current frame 415 was generated. Figure 4B The global motion compensation operation is explained more fully, and Figure 4C and 4D Aspects related to compensation of moving objects (ie local motion) are clarified.
[0071] As discussed, the embodiment is configured to use IMU data 430 to perform global motion compensation (MC) on the historical frame 400. As a result of performing the global MC operation, a motion compensated frame 435 is generated, as shown in Figure 4B In particular, an embodiment uses IMU data 430 to reproject 440 pixels in historical frame 400 so that pose 410 reflects a new pose, which in this case is pose 425 of current frame 415. In other words, an embodiment reprojects the historical frame to have a new pose that matches the current frame.
[0072] Note that Figure 4B , the pose of the motion compensated frame 435 shows that the pull-up bar is now in a position that matches the position of the pull-up bar in the current frame 415. In other words, it appears that the motion compensated frame 435 was generated by a camera at the same position as the camera that generated the current frame 415.
[0073] Although the poses are now aligned with each other, it can be observed how object 405 is still located in a different position than object 420. This difference occurs because the objects moved between time T0 and time T1. Therefore, in order to fully align the images, additional operations should be performed.
[0074] As in Figure 4CAs shown in , an embodiment is configured to perform a comparison 445 process that segments out pixels identified as corresponding to moving objects. For example, an embodiment may calculate from Figure 4B The absolute difference between the current frame 415 and the motion compensated frame 435 is calculated. The different pixels between the two images correspond to content that has moved in the scene. In some cases, the process of comparing frames to identify pixels can be performed using a block matching algorithm.
[0075] Figure 4C Specifically, in response to calculating the absolute difference between the two images, or possibly in response to performing a block matching algorithm, an embodiment identifies a first set of pixels 450 in the motion compensated frame 435, and identifies a second set of pixels 455 in the current frame 415. Optionally, the remaining pixels may be filtered out.
[0076] An embodiment identifies a position 460 or coordinate for pixel set 450, and a position 465 or coordinate for pixel set 455. An embodiment also calculates an optical flow vector for each pixel included in the set, as shown by optical flow vector 470. The combination of these vectors represents the degree or amount of movement 475 that the object(s) moved. By way of additional clarification, an embodiment can identify a first pixel in pixel set 450. An embodiment identifies a corresponding pixel in pixel set 455. An embodiment then determines an optical flow vector for that particular pixel based on the position of that pixel in the current frame 415 and the motion compensated frame 435.
[0077] As a specific example, consider a pixel representing a woman's left eye. An embodiment is able to identify this particular pixel in pixel set 450. An embodiment also identifies the current position or coordinates of the pixel within motion compensated frame 435. Then, an embodiment searches for a pixel representing a woman's left eye in current frame 415. When the pixel is identified in current frame 415, the embodiment determines the position or coordinates of the pixel within current frame 415. After just identifying the two positions of the pixel, the embodiment then determines an optical flow vector for the pixel, where the optical flow vector is a 2D vector that reflects the amount of movement experienced by the pixel (which corresponds to the woman's left eye). In other words, each optical flow vector is a two-dimensional (2D) vector. An embodiment identifies a corresponding optical flow vector for each pixel that is segmented out. For example, an embodiment identifies corresponding optical flow vectors for some and possibly all of pixel set 450, where the optical flow vector identifies the movement of the pixel based on the position of the pixel in pixel set 450 and the position of the pixel in pixel set 455.
[0078] Sometimes, the optical flow vectors may be different for different pixels. For example, a first optical flow vector may be different from a second optical flow vector. This scenario may occur when an object moves at an angle relative to the camera, such as when moving to the right while also moving toward or away from the camera. In some cases, all optical flow vectors may be substantially the same, such as in a scenario where a distant object moves left or right without moving away from or toward the camera. Because the object is far away, a slight movement toward or away from the camera may not be seen, but movement up, down, left, and right may be tracked.
[0079] With the optical flow vector calculated, embodiments may then perform a shift 480 operation, such as in Figure 4D Specifically, an embodiment shifts a set of pixels 450 included in the motion compensated frame 435 to a position corresponding to a position identified in a set of pixels 455 included in the current frame 415. This shifting is based on the optical flow vector 470.
[0080] Figure 4D This shifting of the set of superimposed images is shown as reflected by moved position 485, where pixel set 450 is being moved to the position shown by pixel set 455. The result of the shifting is shown by new position 490. New position 490 refers to the new position of pixel set 450 which is now included in the so-called "adjusted history frame."
[0081] In other words, as a result of performing the shift 480, Figure 4E The resulting adjusted history frame 495 is shown, which reflects the new positions of the pixels and which is now substantially similar to the current frame 415. For clarity, the adjusted history frame 495 should now be within a threshold similarity 495A relative to the current frame 415. After performing global and local compensation, an embodiment may then temporally filter the images (e.g., the adjusted history frame 495 and the current frame 415) to generate a combined image. Figure 5A and Figure 5B Another illustration of an example process is provided.
[0082] Figure 5A Shows an overview of the FIG. 4A to FIG. 4E 500 of the processes performed in FIG. 501 . Initially, a history frame 505 is acquired. This frame is taken from or includes a particular pose 510 of the camera (or possibly an existing temporally filtered image) and includes an object 515 representing a Figure 4A Object 405.
[0083] An embodiment obtains a current frame 520 that is taken from a particular pose 525 of the camera and also includes an object 530. Using IMU data that tracks the movement of the camera from the time the historical frame 505 was generated to the time the current frame 520 was generated, an embodiment can perform a global MC 535 operation to transform or reproject the pose 510 to a pose 540 that matches or aligns with the pose 525.
[0084] Although the global MD 535 operation is performed, object 545 (corresponding to object 515) is not in the correct position. For example, a positioning difference between object 545 and object 530 can be observed.
[0085] In accordance with disclosed principles, an embodiment performs optical flow calculation 550 by segmenting pixels determined to correspond to moving objects, such as by taking the absolute difference between current frame 520 and historical frame 505 after performing a global MC 535 operation. Calculating optical flow vectors is performed in the manner previously described.
[0086] Then, the embodiment (after performing the global MC 535 operation) applies the optical flow vectors to specific pixels (e.g., star pixels, or more precisely, pixels corresponding to moving objects) in the history frame 505, as shown by the local MC 555 operation. As a result of applying the optical flow vectors, an adjusted history frame 560 is generated. The adjusted history frame 560 is a modified version of the history frame 505, where the modifications include changes to account for the global movement of the camera and the local movement of the object 515.
[0087] When performing optical flow calculations 550, some embodiments are configured to downsample 565 one or both of the historical frame 505 (after undergoing the global MC 535 operation) and the current frame 520. The current frame 520 is typically downsampled. By downsampling one or both of these frames, the resulting frame has a lower image resolution. Downsampling to a lower resolution can actually produce improved image analysis when a lot of noise is present in the image, such as when trying to identify corresponding pixels between multiple images.
[0088] When the images are in a downsampled state, an embodiment can identify corresponding pixels between the two images. After identifying these pixels, an embodiment can then calculate an optical flow vector for that pixel and for any other segmented pixels representing a moving object.
[0089] After calculating the optical flow vectors for each pixel, the embodiment may then upsample the image 570. Different upsampling techniques may be used. By way of example only, the embodiment may perform a bilateral upscaling / upsampling operation. In some cases, the embodiment may perform a bilinear upscaling.
[0090] As another example, a pixel may be upsampled so that it may be split into four pixels (this is just an example number, other values may also be used). The optical flow vector originally assigned to a single pixel may now also be assigned to four newly generated pixels. These optical flow vectors may then be applied to four corresponding pixels in the history frame 505 (after performing the global MC 535 operation) to generate an adjusted history frame 560.
[0091] Process Flow 500 Figure 5B 520. With the pose and content of the adjusted history frame 560 now corresponding to the pose and content of the current frame 520, an embodiment can temporally filter the two images together. As a result of performing the temporal filtering process on the adjusted history frame 560 and on the current frame 520, a temporally filtered frame 575 is generated. This temporally filtered frame 575 can then be displayed to a user, or alternatively, operated as a history frame for a new iteration of the process flow 500.
[0092] The process of temporally filtering the current frame 520 using the adjusted historical frame 560 (e.g., a historical frame that has undergone global and local MC operations) to generate a temporally filtered image includes an averaging process, or more precisely, a weighted averaging process. In other words, an embodiment may average pixels in the historical frame (which may be weighted) or pixels in the adjusted historical frame 560 (which may be weighted) with pixels in the current frame 520 (which may be weighted). In this sense, the process of generating a temporally filtered image may be performed by using a weighted average of the current frame and the historical or adjusted frame.
[0093] As a result of shifting some pixels, it may be the case that content that was previously occluded by those pixels is now no longer occluded. However, it may also be the case that the historical frame does not include enough data to fully represent this now revealed content. To account for this scenario, an embodiment may extract content that is no longer occluded from the current frame during the temporal filtering process in order to fill in those areas. In other words, an embodiment may modify or adjust the weighting techniques (e.g., weighted averages) used during the temporal filtering process to ensure that content for those specific areas is weighted more heavily in favor of the current frame 520. As a result of this increased weight in which the current frame is biased (for those specific areas), an embodiment will extract more data from the current frame 520 than from the adjusted historical frame 560. The data from the current frame 520 may then be used to fill in the selected revealed areas.
[0094] In some cases, similar to the previously mentioned process, embodiments may also downsample the current frame 520, extract data for those specific regions mentioned above, and then upsample the data again. Likewise, any type of bilateral or bilinear upscaling may be performed.
[0095] Thus, in some scenarios, for content that was previously occluded by a set of pixels in a historical frame but is now not occluded by a set of pixels, an embodiment may obtain image data for the content from the current frame. The content may then be included in the temporally filtered frame / image. Optionally, before obtaining the content from the current frame, an embodiment may downsample the current frame to a lower resolution, and then later upsample the extracted content.
[0096] Example Method
[0097] The following discussion now relates to several methods and method actions that can be performed. Although method actions may be discussed in a particular order or shown in a flowchart as occurring in a particular order, a particular order is not required unless specifically stated, or because an action depends on another action being completed before the action is performed, a particular order is required.
[0098] Now turn your attention to Figure 6 , which shows a flow chart of an example method 600 for generating a temporally filtered image designed to compensate for global motion of a camera and to compensate for local motion of one or more objects that move locally within a scene. In some cases, the method 600 may be performed by Figure 1 The method 600 may be performed by the HMD 100. In some cases, the method 600 may be performed by a server operating in a cloud environment.
[0099] Initially, method 600 includes acquiring a historical frame (e.g., from Figure 4A The process of comparing the historical frame 400 of the image processing unit and the current frame (e.g., the current frame 415) (action 605). It is worth noting that the current frame is generated by a camera. In some cases, the historical frame can be generated by the same camera, while in other cases, the historical frame can be a temporal filtered image generated by compiling information from multiple previously generated images. In other words, in some cases, the historical frame is a previously generated temporal filtered image.
[0100] Action 610 includes acquiring inertial measurement unit (IMU) data reflecting the movement of the camera between the time when the historical frame was acquired and the time when the current frame was generated by the camera. Optionally, feature correspondences may also be used to determine the pose of different frames.
[0101] In response to determining a first pose of the camera when generating the current frame (e.g., pose 425), or more specifically, in response to determining the first pose of the camera using the IMU data (or optionally feature correspondences), action 615 includes performing a global motion compensation operation on the history frame to reproject (e.g., reproject 440) a second pose of the history frame (e.g., pose 410) to match the first pose (e.g., pose 425). In other words, the IMU data can be used to perform the global motion compensation operation.
[0102] After performing the global motion compensation operation, act 620 includes comparing the motion compensated historical frame to the current frame to identify a set of pixels (representing particular content) that are located at a first set of positions within the historical frame but at a second set of positions within the current frame (in other words, the content has moved). The set of pixels corresponds to one or more objects that have moved locally within the scene. Furthermore, the second set of positions is different from the first set of positions. For example, Figure 4C shows how pixels representing the same content (e.g., a woman doing pull-ups) are located at different locations in the two images. Figure 4C The current frame 415 in is compared to the motion compensated frame 435 to identify pixels corresponding to a moving object (eg, a woman).
[0103] In some implementations, the process of comparing the motion compensated historical frame to the current frame to identify sets of pixels is performed after one or possibly both of the current frame and the motion compensated historical frame are downsampled to a reduced resolution. If only a single image is downsampled, an embodiment selects the current frame as the frame to be downsampled because the motion compensated historical frame is a temporally filtered frame and may be of much higher quality than the current frame.
[0104] In some implementations, comparing the motion compensated historical frame to the current frame to identify the set of pixels may include calculating an absolute difference. An absolute difference is calculated between the motion compensated historical frame and the current frame.
[0105] For each pixel in the set of pixels, action 625 includes calculating a corresponding optical flow vector. Thus, a plurality of optical flow vectors are calculated. These optical flow vectors map the movement of one or more objects, where the movement is represented by a set of pixels at a first set of positions in a motion-compensated historical frame and at a second set of positions in the current frame.
[0106] Act 630 includes generating an adjusted history frame from the motion compensated history frame by applying a plurality of optical flow vectors to a set of pixels included in the motion compensated history frame to shift the set of pixels from a first set of positions in the motion compensated history frame to new positions, such that the adjusted history frame reflects new positions of the set of pixels. The new positions in the adjusted frame correspond to a second set of positions identified for the set of pixels in the current frame.
[0107] The process of shifting a set of pixels from a first set of positions in the historical frame to new positions in the adjusted frame is performed in two-dimensional (2D) space. As a result, the shifting process is a 2D transformation based on each pixel; rather than a 3D re-projection process.
[0108] After the pixel set is shifted to the new position in the adjusted frame, action 635 includes temporally filtering the current frame using the adjusted frame to generate a temporally filtered image. Temporally filtered frame 575 is representative. In some cases, the temporally filtered image is operated as a new historical frame for subsequent iterations of method 600.
[0109] Therefore, the disclosed embodiments can advantageously compensate for both global motion and local motion.In this way, the embodiments can significantly improve image quality.
[0110] Example Computer / Computer System
[0111] Now turn your attention to Figure 7 , which illustrates an example computer system 700 that may include and / or be used to perform any of the operations described herein. The computer system 700 may take a variety of different forms. For example, the computer system 700 may be embodied as a tablet computer 700A, a desktop or laptop computer 700B, a wearable device 700C, a mobile device, or any other stand-alone device, as represented by the ellipsis 700D. The computer system 700 may also be a distributed system including one or more connected computing components / devices that communicate with the computer system 700.
[0112] In its most basic configuration, computer system 700 includes a variety of different components. Figure 7 Computer system 700 is shown including one or more processors 705 (also referred to as “hardware processing units”) and storage 710 .
[0113] With respect to processor(s) 705, it will be appreciated that the functionality described herein may be performed, at least in part, by one or more hardware logic components, such as processor(s) 705. Illustrative types of hardware logic components / processors that may be used include, by way of example and not limitation, field programmable gate arrays (“FPGAs”), program-specific or application-specific integrated circuits (“ASICs”), program-specific standard products (“ASSPs”), systems on chips (“SOCs”), complex programmable logic devices (“CPLDs”), central processing units (“CPUs”), graphics processing units (“GPUs”), or any other type of programmable hardware.
[0114] As used herein, the terms "executable module," "executable component," "component," "module," "model," or "engine" may refer to a hardware processing unit or to a software object, routine, or method that may be executed on the computer system 700. The different components, modules, engines, and services described herein may be implemented as objects or processors that execute on the computer system 700 (e.g., as separate threads).
[0115] Storage 710 may be physical system memory, which may be volatile storage, non-volatile storage, or some combination of the two. The term "memory" may also be used herein to refer to non-volatile mass storage, such as physical storage media. If computer system 700 is distributed, processing, memory, and / or storage capabilities may also be distributed.
[0116] Storage 710 is shown as including executable instructions (ie, code 715). Executable instructions represent instructions executable by processor(s) 705 of computer system 700 to perform disclosed operations, such as those described in various methods.
[0117] The disclosed embodiments may include or utilize a special-purpose or general-purpose computer, including computer hardware, such as, for example, one or more processors (such as (multiple) processors 705) and system memory (such as storage 710), as discussed in more detail below. Embodiments also include physical and other computer-readable media for carrying or storing computer-executable instructions and / or data structures. Such computer-readable media can be any available media that can be accessed by a general-purpose or special-purpose computer system. Computer-readable media that store computer-executable instructions in the form of data are "physical computer storage media" or "hardware storage devices." In addition, computer-readable storage media include physical computer storage media and hardware storage devices, but do not include signals, carriers, and propagation signals. On the other hand, computer-readable media that carry computer-executable instructions are "transmission media" and include signals, carriers, and propagation signals. Therefore, by way of example and not limitation, the current embodiments may include at least two distinct types of computer-readable media: computer storage media and transmission media.
[0118] Computer storage media (also referred to as "hardware storage devices") are computer-readable hardware storage devices such as RAM, ROM, EEPROM, CD-ROM, RAM-based solid-state drives ("SSD"), flash memory, phase-change memory ("PCM"), or other types of memory, or other optical disk storage, magnetic disk storage or other magnetic storage devices, or any other media that can be used to store desired program code means in the form of computer-executable instructions, data or data structures and that can be accessed by a general purpose or special purpose computer.
[0119] The computer system 700 may also be connected (via wired or wireless connections) to external sensors (e.g., one or more remote cameras) or devices via the network 720. For example, the computer system 700 may communicate with any number of devices (e.g., device 725) or cloud services to obtain or process data. In some cases, the network 720 itself may be a cloud network. In addition, the computer system 700 may also be connected to (multiple) remote / separate computer systems via one or more wired or wireless networks 720 that are configured to perform any of the processes described with respect to the computer system 700.
[0120] A "network", such as network 720, is defined as one or more data links and / or data switches that enable the transmission of electronic data between computer systems, modules, and / or other electronic devices. When information is transmitted or provided to a computer via a network (hardwired, wireless, or a combination of hardwired and wireless), the computer appropriately regards the connection as a transmission medium. Computer system 700 will include one or more communication channels used to communicate with network 720. Transmission media include networks that can be used to carry data or required program code devices in the form of computer executable instructions or in the form of data structures. In addition, these computer executable instructions can be accessed by general or special-purpose computers. The above combination should also be included in the scope of computer-readable media.
[0121] Upon reaching various computer system components, program code means in the form of computer executable instructions or data structures may be automatically transferred from transmission media to computer storage media (or vice versa). For example, computer executable instructions or data structures received over a network or data link may be buffered in RAM within a network interface module (e.g., a network interface card or "NIC"), and then ultimately transferred to computer system RAM and / or to less volatile computer storage media at the computer system. Thus, it should be understood that computer storage media may be included in computer system components that also (or even primarily) utilize transmission media.
[0122] Computer executable (or computer interpretable) instructions include, for example, instructions that cause a general purpose computer, a special purpose computer, or a special purpose processing device to perform a specific function or group of functions. Computer executable instructions may be, for example, binary code, intermediate format instructions such as assembly language, or even source code. Although the subject matter is described in a language specific to structural features and / or method actions, it is to be understood that the subject matter defined in the appended claims is not necessarily limited to the described features or the actions described above. Instead, the described features and actions are disclosed as example forms of implementing the claims.
[0123] Those skilled in the art will appreciate that the embodiments can be practiced in a network computing environment with various types of computer system configurations, including personal computers, desktop computers, laptop computers, message processors, handheld devices, multiprocessor systems, microprocessor-based or programmable consumer electronics, network PCs, minicomputers, mainframe computers, mobile phones, PDAs, pagers, routers, switches, etc. The embodiments can also be practiced in a distributed system environment, where local and remote computer systems linked by a network (linked by hardwired data links, wireless data links, or by a combination of hardwired and wireless data links) perform tasks (e.g., cloud computing, cloud services, etc.) respectively. In a distributed system environment, program modules can be located in both local and remote memory storage devices.
[0124] The present invention may be embodied in other specific forms without departing from the characteristics of the present invention. The described embodiments are to be considered in all respects as merely illustrative and not restrictive. The scope of the present invention is therefore indicated by the appended claims rather than by the foregoing description. All changes that come within the meaning and range of equivalents of the claims are to be included within their scope. Process Flow Process Flow Motion Compensated History Frames Motion Compensated History Frames Motion Compensated History Frames.
Claims
1. A method for generating a temporally filtered image designed to compensate for the global motion of a camera and to compensate for the local motion of one or more objects moving locally within a scene, the method include: Obtaining historical frames and a current frame of a scene, wherein the current frame is generated by a camera; In response to determining a first pose of the camera when generating the current frame, performing a global motion compensation operation on the historical frames to reproject a second pose of the historical frames to match the first pose; After performing the global motion compensation operation, comparing the motion compensated historical frame with the current frame to identify a set of pixels located at a first set of positions within the motion compensated historical frame but at a junction of a second set of positions within the current frame, the set of pixels corresponding to one or more objects that move locally within the scene, the second set of positions being different from the first set of positions; for each pixel in the set of pixels, calculating a corresponding optical flow vector such that a plurality of optical flow vectors are calculated, wherein the plurality of optical flow vectors map movement of the one or more objects, wherein the movement is represented by the set of pixels at the first set of positions in the motion-compensated historical frames and at the second set of positions in the current frame; generating an adjusted historical frame from the motion compensated historical frame by applying the plurality of optical flow vectors to the set of pixels included in the motion compensated historical frame to shift the set of pixels from the first set of positions in the motion compensated historical frame to new positions, such that the adjusted historical frame reflects the new positions of the set of pixels, the new positions in the adjusted historical frame corresponding to the second set of positions identified for the set of pixels in the current frame; as well as After shifting the pixel set to the new position in the adjusted historical frame, the current frame is temporally filtered using the adjusted historical frame to generate a temporally filtered image.
2. The method of claim 1, wherein the temporally filtered image is operated as a new history frame for a subsequent iteration of the method. The method according to claim 1 , wherein the historical frame is a previously generated time-domain filtered image. 4 . The method of claim 1 , wherein inertial measurement unit (IMU) data is used to perform the global motion compensation operation.
5. The method of claim 1, wherein comparing the motion compensated historical frame to the current frame to identify the set of pixels is performed after one or both of the current frame and the motion compensated historical frame are downsampled to a reduced resolution.
6. The method of claim 1, wherein the camera is one of a single photon avalanche diode (SPAD) camera, a single photon detector, a supercooled camera, a scientific camera module, or an image intensifier II plus complementary metal oxide semiconductor (CMOS) camera. The method of claim 1 , wherein the camera is a low noise camera.
8. The method according to claim 1, wherein the adjusted historical frame is used to perform time domain filtering on the current frame to generate the time domain filtered image include: The pixels in the adjusted historical frame and the pixels in the current frame are averaged.
9. The method of claim 1 , wherein the motion compensated historical frame is compared with the current frame to identify the pixel set include: An absolute difference between the motion compensated historical frame and the current frame is calculated.
10. The method of claim 1, wherein image data for content that was previously occluded by the set of pixels in the motion-compensated historical frame but is now not occluded by the set of pixels in the adjusted historical frame is obtained from the current frame.
11. A computer system configured to generate a temporally filtered image designed to compensate for global motion of a camera and to compensate for local motion of one or more objects moving locally within a scene, the computer system include: one or more processors; as well as one or more computer-readable hardware storage devices storing instructions executable by the one or more processors to cause the computer system to: Obtaining historical frames and a current frame of a scene, wherein the current frame is generated by a camera; In response to determining a first pose of the camera when generating the current frame, performing a global motion compensation operation on the historical frames to reproject a second pose of the historical frames to match the first pose; After performing the global motion compensation operation, comparing the motion compensated historical frame to the current frame to identify a set of pixels located at a first set of positions within the motion compensated historical frame but located at a second set of positions within the current frame, the set of pixels corresponding to one or more objects that move locally within the scene, the second set of positions being different from the first set of positions; for each pixel in the set of pixels, calculating a corresponding optical flow vector such that a plurality of optical flow vectors are calculated, wherein the plurality of optical flow vectors map movement of the one or more objects, wherein the movement is represented by the set of pixels at the first set of positions in the motion-compensated historical frames and at the second set of positions in the current frame; generating an adjusted history frame from the motion compensated history frame by applying the plurality of optical flow vectors to the set of pixels included in the motion compensated history frame to shift the set of pixels from the first set of positions in the motion compensated history frame to new positions, such that the adjusted history frame reflects the new positions of the set of pixels, the new positions in the adjusted history frame corresponding to the second set of positions identified for the set of pixels in the current frame; as well as After shifting the pixel set to the new position in the adjusted historical frame, the current frame is temporally filtered using the adjusted historical frame to generate a temporally filtered image.
12. The computer system of claim 11 , wherein for content that was previously occluded by the set of pixels in the motion-compensated historical frame but is now not occluded by the set of pixels in the adjusted historical frame, image data for the content is obtained from the current frame, and in, Before obtaining the content from the current frame, the current frame is downsampled to a lower resolution.
13. The computer system of claim 11, wherein generating the temporal filtered image is performed by using a weighted average of the current frame and the adjusted historical frames.
14. The computer system of claim 11, wherein each optical flow vector of the plurality of optical flow vectors is a two-dimensional (2D) vector. 15 . The computer system of claim 11 , wherein a first optical flow vector included in the plurality of optical flow vectors is different from a second optical flow vector included in the plurality of optical flow vectors.
Citation Information
Cited By
Target attribute identification method, electronic equipment and computer readable storage medium
CN119313994A
