Mixed-reality (MR) systems, including virtual-reality and augmented-reality systems, have received significant attention because of their ability to create truly unique experiences for their users. For reference, conventional virtual reality (VR) systems create a completely immersive experience by restricting their users' views to only a virtual environment. This is often achieved, in VR systems, through the use of a head-mounted device (HMD) that completely blocks any view of the real world. As a result, a user is entirely immersed within the virtual environment. In contrast, conventional augmented-reality (AR) systems create an augmented-reality experience by visually presenting virtual objects that are placed in or that interact with the real world.
As used herein, VR and AR systems are described and referenced interchangeably. Unless stated otherwise, the descriptions herein apply equally to all types of mixed-reality systems, which (as detailed above) includes AR systems, VR reality systems, and/or any other similar system capable of displaying virtual objects.
Some MR systems include one or more cameras and utilize images and/or depth information obtained using the camera(s) to provide pass-through views of a user's environment to the user. A pass-through view can aid users in avoiding disorientation and/or safety hazards when transitioning into and/or navigating within a mixed-reality environment. Pass-through views may also enhance user views in low-visibility environments. For example, mixed-reality systems configured with long-wavelength thermal imaging cameras may facilitate visibility in smoke, haze, fog, and/or dust. Likewise, mixed-reality systems configured with low-light imaging cameras facilitate visibility in dark environments where the ambient light level is below the level required for human vision.
An MR system may provide pass-through views in various ways. For example, an MR system may present raw images captured by the camera(s) of the MR system to a user. In other instances, an MR system may modify and/or reproject captured image data to correspond to the perspective of a user's eye to generate pass-through views. An MR system may modify and/or reproject captured image data to generate a pass-through view using depth information for the captured environment obtained by the MR system (e.g., using a depth system of the MR system, such as a time of flight camera, a rangefinder, stereoscopic depth cameras, etc.). In some instances, an MR system utilizes one or more predefined depth values to generate pass-through views (e.g., by performing planar reprojection).
In some instances, pass-through views generated by modifying and/or reprojecting captured image data may at least partially correct for differences in perspective brought about by the physical separation between a user's eyes and the camera(s) of the MR system (known as the “parallax problem,” “parallax error,” or, simply “parallax”). Such pass-through views/images may be referred to as “parallax-corrected pass-through” views/images. By way of illustration, parallax-corrected pass-through images may appear to a user as though they were captured by cameras that are co-located with the user's eyes.
Pass-through imaging can provide various beneficial user experiences, such as enabling users to perceive their surroundings in situations where ordinary human perception is limited. For instance, an MR system may be equipped with thermal cameras and be configured to provide pass-through thermal imaging, which may enable users to perceive objects in their environment even when smoke or fog is present. As another example, an MR system may be equipped with low light cameras and be configured to provide pass-through low light imaging, which may enable users to perceive objects in dark environments.
In the example of low light imaging conditions, individual image frames captured by an image sensor may fail to capture sufficient scene information to provide an interpretable image to the user. When the image sensor is implemented on a moving user device, such as an MR system, implementing a long exposure time to enable an image frame to capture additional scene information can result in blurred images (e.g., brought about by motion of the image sensor during image capture).
Accordingly, many low light image sensors operate by capturing temporally consecutive image frames and combining the consecutive image frames to generate output imagery for display to a user. Many systems perform motion compensation to account for motion of the image sensor while capturing the temporally consecutive image frames. For instance, inertial tracking data may be obtained while capturing consecutive image frames, and the inertial tracking data may be used to align the consecutive image frames (e.g., to a current position, or to a position at which output imagery will be displayed). The aligned image frames may then be combined from output imagery that includes more scene information than an individual image frame could provide on its own.
The subject matter claimed herein is not limited to embodiments that operate only in environments such as those described above. Rather, this background is only provided to illustrate one example technology area where some embodiments described herein may be practiced.
To describe how 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 which are illustrated in the appended drawings. Understanding that these drawings depict only typical embodiments and are not therefore to be considered limiting in scope, embodiments will be described and explained with additional specificity and detail through the use of the accompanying drawings in which:
Disclosed embodiments are generally directed to systems, methods, and apparatuses for facilitating motion compensation via inertial tracking and optical flow.
As noted above, many image sensors operate by acquiring temporally consecutive image frames and combining the consecutive image frames to generate output imagery for display to a user. A previous image frame can be combined with a current image frame (e.g., in a weighted manner) to provide the output image. In some instances, the previous image frame comprises a previously generated output image, such only two images are used in the image processing pipeline. Upon acquisition of a new output image, the new output image can be stored for use as a previous image to be combined with a subsequently captured image frame to generate a subsequent output image.
To facilitate alignment of a previous image frame and a current image frame, many systems perform motion compensation to account for motion of the image sensor during image capture. Often, inertial tracking data is obtained during image capture, and the inertial tracking data is used to align the temporally consecutive image frames. In some implementations, inertial tracking data is acquired using an inertial measurement unit (IMU), which may comprise one or more accelerometers, gyroscopes, magnetometers, etc. Inertial tracking data often indicates 3D rotation data (e.g., in three degrees of freedom, namely pitch, roll, and yaw) and fails to indicate 3D translational data. Thus, relying solely on inertial tracking data to facilitate motion compensation can fail to account for translational movements of the image sensor during image capture (e.g., when a user is walking), which can result in artifacts in output imagery (e.g., blurring artifacts).
Some motion compensation solutions acquire pose information in six degrees of freedom (6DOF), such as by performing simultaneous localization and mapping (SLAM) and/or other pose tracking techniques. Although such pose information may be utilized to facilitate motion compensation in a more robust manner than relying on inertial tracking data alone, such techniques rely on additional sensor hardware (e.g., depth sensing functionality) and/or computational steps (e.g., feature detection to facilitate environment mapping). Such techniques are therefore unsuitable for many use cases, such as where hardware and/or computational constraints exist.
At least some disclosed embodiments are directed to motion compensation techniques that utilize inertial tracking data and optical flow computation. In one example, pixels of a previous frame are remapped to a current position using a motion model obtained based upon inertial tracking data to obtain an affine transformation-compensated frame. Optical flow computations are then performed on the affine transformation-compensated frame to compensate for translation. By combining inertial tracking-based motion compensation with optical flow-based motion compensation, the disclosed techniques may facilitate motion compensation that accounts for translation and rotation with limited hardware and/or computational requirements (e.g., compared to systems that rely on depth information and 6DOF pose information).
In some implementations, the optical flow computation is performed at a low image resolution (e.g., after downsampling the affine transformation-compensated frame), which can help to mitigate image noise and quantization. In some implementations, the optical flow computation obtains a single motion model for the whole affine transformation-compensated frame, rather than calculating a separate motion model for each individual pixel of the affine transformation-compensated frame. Relative to conventional techniques that obtain a separate motion model for each pixel, utilizing a single motion model for the whole image can be more computationally efficient and can facilitate more robust optical flow computation in very low signal-to-noise scenarios (e.g., in low light conditions).
In some instances, optical flow computations of the disclosed embodiments utilize a three-parameter framework, rather than a 6-parameter framework as utilized in conventional optical flow computations. For instance, conventional 6-parameter affine models allow modeling of rotation, shearing, translation, and scaling. However, in very low signal images, the 6 parameters can cause computing of an optical flow solution that aligns two images based primarily on image noise. Such motion models can cause wobble artifacts in output imagery, which can undermine user experiences.
Thus, at least some disclosed embodiments reduce the number of parameters by omitting rotational modeling (e.g., because rotation is handled via inertial tracking-based motion compensation) and shear modeling. This can result in a 3-parameter that includes translation in two dimensions (e.g., x translation and y translation) and scaling. Such a 3-parameter model may be regarded as a zoom model, which corresponds to the dominant 3D motion when a user is walking. Such a 3-parameter model may be written as a 3×3 matrix (s, 0, tx; 0, s, ty; 0, 0, 1), where s represents scale, tx represents translation in one dimension (i.e., the horizontal or x dimension), and ty represents translation in another dimension (i.e., the vertical or y dimension). Utilizing a 3-parameter model can reduce wobble artifacts by mitigating the possibility of the optical flow solution being determined primarily based upon image noise.
Furthermore, at least some disclosed embodiments utilize a prior in the optical flow computation that biases the solution toward inertial tracking-based compensation only when the input imagery has a low or non-existent signal. Such functionality can be achieved by adding one or more equations to the optical flow computation that indicate that the flow vector at a particular pixel should be identical to the corresponding flow vector derived from the inertial tracking-based motion model only. In some instances, weighting is added to the equation(s) to balance their influence against the other pre-existing components of the optical flow computation. By computing the optical flow solution in a least-squared sense, solutions that are close to the inertial tracking-based solution can be favored. Such functionality can mitigate artifacts that would arise from computing unmitigated optical flow solutions for low signal input images.
Although at least some examples herein are focused, in at least some respects, on facilitating motion compensation of HMD imagery, one will appreciate, in view of the present disclosure, that the principles discussed herein may be applied to facilitate motion compensation of any type of imagery (e.g., images captured by a mobile electronic device, smartphone, tablet, smartwatch, drone, autonomous vehicle, etc.).
The processor(s) 102 may comprise one or more sets of electronic circuitries that include any number of logic units, registers, and/or control units to facilitate the execution of computer-readable instructions (e.g., instructions that form a computer program). Such computer-readable instructions may be stored within storage 104. The storage 104 may comprise physical system memory and may be volatile, non-volatile, or some combination thereof. Furthermore, storage 104 may comprise local storage, remote storage (e.g., accessible via communication system(s) 116 or otherwise), or some combination thereof. Additional details related to processors (e.g., processor(s) 102) and computer storage media (e.g., storage 104) will be provided hereinafter.
In some implementations, the processor(s) 102 may comprise or be configurable to execute any combination of software and/or hardware components that are operable to facilitate processing using machine learning models or other artificial intelligence-based structures/architectures. For example, processor(s) 102 may comprise and/or utilize hardware components or computer-executable instructions operable to carry out function blocks and/or processing layers configured in the form of, by way of non-limiting example, single-layer neural networks, feed forward neural networks, radial basis function networks, deep feed-forward networks, recurrent neural networks, long-short term memory (LSTM) networks, gated recurrent units, autoencoder neural networks, variational autoencoders, denoising autoencoders, sparse autoencoders, Markov chains, Hopfield neural networks, Boltzmann machine networks, restricted Boltzmann machine networks, deep belief networks, deep convolutional networks (or convolutional neural networks), deconvolutional neural networks, deep convolutional inverse graphics networks, generative adversarial networks, liquid state machines, extreme learning machines, echo state networks, deep residual networks, Kohonen networks, support vector machines, neural Turing machines, and/or others.
As will be described in more detail, the processor(s) 102 may be configured to execute instructions 106 stored within storage 104 to perform certain actions. The actions may rely at least in part on data 108 stored on storage 104 in a volatile or non-volatile manner.
In some instances, the actions may rely at least in part on communication system(s) 116 for receiving data from remote system(s) 118, which may include, for example, separate systems or computing devices, sensors, and/or others. The communications system(s) 116 may comprise any combination of software or hardware components that are operable to facilitate communication between on-system components/devices and/or with off-system components/devices. For example, the communications system(s) 116 may comprise ports, buses, or other physical connection apparatuses for communicating with other devices/components. Additionally, or alternatively, the communications system(s) 116 may comprise systems/components operable to communicate wirelessly with external systems and/or devices through any suitable communication channel(s), such as, by way of non-limiting example, Bluetooth, ultra-wideband, WLAN, infrared communication, and/or others.
Furthermore,
In some implementations, the image 206 captured by the HMD 204 is one image frame of a group of consecutively captured frames (e.g., a video stream). For instance,
As noted above, systems may combine multiple images to form output imagery, such as when imaging under low light conditions (e.g., where each individual frame captures few photons, and combination of frames enables generation of user-interpretable output imagery). However, as also noted above, images associated with different timepoints can also be associated with different image capture positions. For instance,
The rotational movement 216 and the translational movement 218 cause differences in the depictions of the ball 208, the box 210, and the table 212 in the different images 206 and 214. For instance, image 206 provides a spatially offset and zoomed representation of the ball 208, the box 210, and the table 212 relative to the representations of the ball 208, the box 210, and the table shown in image 214. Because of the rotational and translational difference in image capture positions associated with images 206 and 214, motion compensation techniques of the present disclosure may be implemented to facilitate combination of the images 206 and 214 to form output imagery.
At least some disclosed embodiments utilize inertial tracking data (e.g., obtained via an inertial measurement unit (IMU)) to facilitate rotational motion compensation and utilize optical flow techniques to facilitate translational motion compensation (which may include compensating for both translation and zoom effects that may be caused by a user walking in an environment).
The affine transformation-based motion compensation 302 may be accomplished utilizing various techniques. In one example, the delta pose associated with the inertial tracking data 220 may be utilized to obtain a 3D rotation motion model or an affine transformation-based 2D optical flow field that describes how each individual pixel of image 214 has moved resulting from the rotational movement 216 between timepoint 1 and timepoint 2. The affine transformation-based 2D optical flow field may be obtained by selecting a set of pixel coordinates of the image 214, unprojecting the set of pixel coordinates into 3D space, rotating (in 3D space) the unprojected set of pixel coordinates using the delta pose of the inertial tracking data 220, and reprojecting the rotated unprojected set of pixel coordinates to form a new image. Each pixel of the image 214 that is unprojected and reprojected may therefore be associated with a corresponding pixel in the new image. A rotation model (e.g., an affine or other type of motion model) may be fit using the pixel correspondences between the image 214 and the new image. The rotation model may indicate the affine transformation-based 2D optical flow field for obtaining the affine transformation-compensated image 304 from the image 214. The affine transformation-compensated image 304 may be obtained by applying the rotation model (or affine transformation-based 2D optical flow field) to pixels of the image 214.
In some instances, only a sparse sampling of pixel correspondences is determined via unprojection and reprojection of pixels of the image 214, which may contribute to computational efficiency in obtaining the rotation model (or affine transformation-based 2D optical flow field) for generating the affine transformation-compensated image 304.
In the example of
The translation parameter 310 may comprise different components to model translation in two dimensions. For instance, in
In some instances, rather than computing a different motion model based upon optical flow 306 for every pixel of the affine transformation-compensated image 304, a single motion model (e.g., the 3×3 matrix discussed above) is used to map all pixels of the affine transformation-compensated image 304 to image 206, which may contribute to improved performance in low signal and/or high noise environments.
In some implementations, a modified version of the Lukas Kanade (LK) algorithm is utilized to obtain the optical flow 306 (e.g., the parameters thereof, which may be used to obtain a motion model that is applicable to all pixels). By way of illustration, and not limitation, the optical flow constraint may be written as:
where gx and gy refer to the spatial gradients in the x-direction and the y-direction, gt refers to the temporal gradient, Δx refers to the x-displacement vector, and Δy refers to the y-displacement vector. This optical flow constraint may be modified to obtain parameters for a “zoom” model by utilizing:
where s is the scale factor and tx and ty are translation values of the zoom model. The optical flow constraint can thus be rewritten as:
which is equivalent to:
One equation of the above form may be obtained for every pixel in the optical flow computation. In matrix form, this equation may be written as:
where each pixel of the optical flow computation contributes one row in the left-most matrix.
The leftmost matrix may be referred to as A, the vector (s, tx, ty)T (indicating the optical flow 306 scale parameter 308, s, and translation parameters 310, tx, ty) may be referred to as x, and the rightmost vector may be referred to as b, providing a system of equations of the form Ax=b, for which x may be found by determining the least squared error solution:
In the example of
In some implementations, the prior 320 is implemented by adding one or more equations to the modified version of the LK algorithm used to obtain the optical flow 306. Stated differently, the prior 320 may be implemented by further modifying the LK algorithm to indicate that a flow vector at a particular pixel should be identical to the corresponding affine transformation-based 2D optical flow field (or else be penalized in the computation). Weight may be added to balance the influence of the prior 320 with the rest of the modified LK algorithm when solving in a least-squares sense.
For instance, the prior 320 may be implemented by adding rows to the A matrix discussed hereinabove with reference to the modified LK algorithm for determining the optical flow 306. In some implementations, two rows are added to the A matrix for each pixel of the optical flow computation. In one example, for each pixel, the following is added to the A matrix:
where px and py represent the affine transformation-based 2D optical flow solution at the pixel. The above equations may be represented in matrix form as:
In the example of
The following discussion now refers to a number of methods and method acts that may be performed in accordance with the present disclosure. Although the method acts are discussed in a certain order and illustrated in a flow chart as occurring in a particular order, no particular ordering is required unless specifically stated, or required because an act is dependent on another act being completed prior to the act being performed. One will appreciate that certain embodiments of the present disclosure may omit one or more of the acts described herein.
Act 402 of flow diagram 400 of
Act 404 of flow diagram 400 includes generating a motion-compensated image by applying optical flow-based motion compensation to the affine transformation-compensated image, wherein the optical flow-based motion compensation utilizes the affine transformation-compensated image and a current image as inputs. In some implementations, the affine transformation-compensated image and the current image comprise downscaled images. In some examples, the optical flow-based motion compensation comprises: (i) determining an optical flow between the affine transformation-compensated image and the current image; and (ii) applying the optical flow to the affine transformation-compensated image to obtain the motion-compensated image. In some instances, the optical flow comprises a scale parameter and a translation parameter. In some implementations, the optical flow omits rotation and shear parameters. In some examples, the translation parameter comprises a first translation component in a first dimension and a second translation component in a second dimension. In some instances, determining the optical flow utilizes a prior based upon one or more components of the affine transformation-based motion compensation. In some implementations, the prior biases the optical flow toward an affine transformation-based optical flow determined from the one or more components of the affine transformation-based motion compensation. In some examples, applying the optical flow to the affine transformation-compensated image comprises: (i) generating a motion model using the scale parameter and the translation parameter; and (ii) applying the motion model to all pixels of the affine transformation-compensated image to obtain the motion-compensated image.
Act 406 of flow diagram 400 includes utilizing the current image and the motion-compensated image to generate an output image.
Act 502 of flow diagram 500 of
Act 504 of flow diagram 500 includes generating a motion-compensated image using the set of optical flow parameters. In some examples, generating the motion-compensated image comprises: (i) generating a motion model using the set of optical flow parameters; and (ii) applying the motion model to all pixels of the affine transformation-compensated image to obtain the motion-compensated image.
Act 506 of flow diagram 500 includes utilizing the second image and the motion-compensated image to generate an output image.
Act 602 of flow diagram 600 of
Act 604 of flow diagram 600 includes generating a motion compensated by applying the optical flow to the affine transformation-compensated image.
Act 606 of flow diagram 600 includes utilizing the second image and the motion-compensated image to generate an output image.
Disclosed embodiments may comprise or utilize a special-purpose or general-purpose computer including computer hardware, as discussed in greater detail below. Disclosed 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 one or more “physical computer storage media” or “hardware storage device(s).” Computer-readable media that merely carry computer-executable instructions without storing the computer-executable instructions are “transmission media.” Thus, by way of example and not limitation, the current embodiments can comprise at least two distinctly different kinds of computer-readable media: computer storage media and transmission media.
Computer storage media (aka “hardware storage device”) are computer-readable hardware storage devices, such as RAM, ROM, EEPROM, CD-ROM, solid state drives (“SSD”) that are based on RAM, 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 medium that can be used to store desired program code means in hardware in the form of computer-executable instructions, data, or data structures and that can be accessed by a general-purpose or special-purpose computer.
A “network” is defined as one or more data links that enable the transport of electronic data between computer systems and/or modules and/or other electronic devices. When information is transferred or provided over a network or another communications connection (either hardwired, wireless, or a combination of hardwired or wireless) to a computer, the computer properly views the connection as a transmission medium. Transmission media can include a network and/or data links that can be used to carry program code in the form of computer-executable instructions or data structures, and which can be accessed by a general-purpose or special-purpose computer. Combinations of the above are also included within the scope of computer-readable media.
Further, upon reaching various computer system components, program code means in the form of computer-executable instructions or data structures can be transferred automatically from transmission computer-readable media to physical computer-readable storage media (or vice versa). For example, computer-executable instructions or data structures received over a network or data link can be buffered in RAM within a network interface module (e.g., a “NIC”), and then eventually transferred to computer system RAM and/or to less volatile computer-readable physical storage media at a computer system. Thus, computer-readable physical storage media can be included in computer system components that also (or even primarily) utilize transmission media.
Computer-executable instructions comprise, for example, instructions and data which cause a general-purpose computer, special-purpose computer, or special-purpose processing device to perform a certain function or group of functions. The computer-executable instructions may be, for example, binaries, intermediate format instructions such as assembly language, or even source code. Although the subject matter has been described in language specific to structural features and/or methodological acts, it is to be understood that the subject matter defined in the appended claims is not necessarily limited to the described features or acts described above. Rather, the described features and acts are disclosed as example forms of implementing the claims.
Disclosed embodiments may comprise or utilize cloud computing. A cloud model can be composed of various characteristics (e.g., on-demand self-service, broad network access, resource pooling, rapid elasticity, measured service, etc.), service models (e.g., Software as a Service (“SaaS”), Platform as a Service (“PaaS”), Infrastructure as a Service (“IaaS”), and deployment models (e.g., private cloud, community cloud, public cloud, hybrid cloud, etc.).
Those skilled in the art will appreciate that the invention may be practiced in network computing environments with many types of computer system configurations, including, personal computers, desktop computers, laptop computers, message processors, hand-held devices, multi-processor systems, microprocessor-based or programmable consumer electronics, network PCs, minicomputers, mainframe computers, mobile telephones, PDAs, pagers, routers, switches, wearable devices, and the like. The invention may also be practiced in distributed system environments where multiple computer systems (e.g., local and remote systems), which are linked through a network (either by hardwired data links, wireless data links, or by a combination of hardwired and wireless data links), perform tasks. In a distributed system environment, program modules may be located in local and/or remote memory storage devices.
Alternatively, or in addition, the functionality described herein can be performed, at least in part, by one or more hardware logic components. For example, and without limitation, illustrative types of hardware logic components that can be used include Field-programmable Gate Arrays (FPGAs), Program-specific Integrated Circuits (ASICs), Application-specific Standard Products (ASSPs), System-on-a-chip systems (SOCs), Complex Programmable Logic Devices (CPLDs), central processing units (CPUs), graphics processing units (GPUs), and/or others.
As used herein, the terms “executable module,” “executable component,” “component,” “module,” or “engine” can refer to hardware processing units or to software objects, routines, or methods that may be executed on one or more computer systems. The different components, modules, engines, and services described herein may be implemented as objects or processors that execute on one or more computer systems (e.g., as separate threads).
One will also appreciate how any feature or operation disclosed herein may be combined with any one or combination of the other features and operations disclosed herein. Additionally, the content or feature in any one of the figures may be combined or used in connection with any content or feature used in any of the other figures. In this regard, the content disclosed in any one figure is not mutually exclusive and instead may be combinable with the content from any of the other figures.
As used herein, the term “about”, when used to modify a numerical value or range, refers to any value within 5%, 10%, 15%, 20%, or 25% of the numerical value modified by the term “about”.
The present invention may be embodied in other specific forms without departing from its spirit or characteristics. The described embodiments are to be considered in all respects only as illustrative and not restrictive. The scope of the invention is, therefore, indicated by the appended claims rather than by the foregoing description. All changes which come within the meaning and range of equivalency of the claims are to be embraced within their scope