Mixed-reality (MR) systems, including virtual-reality (VR) and augmented-reality (AR) systems, have received significant attention because of their ability to create truly unique experiences for their users. For reference, conventional VR systems create completely immersive experiences by restricting their users' views to only virtual environments. This is often achieved 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 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 MR systems, which (as detailed above) include AR systems, VR reality systems, and/or any other similar system capable of displaying virtual content. Use of the term “HMD” can also refer to a MR system.
A MR system can employ different types of cameras (aka “modalities”) in order to display content to users, such as in the form of a passthrough image. A passthrough image or view can aid users in avoiding disorientation and/or safety hazards when transitioning into and/or navigating within a MR environment. A MR system can present views captured by cameras in a variety of ways. The process of using images captured by world-facing cameras to provide views of a real-world environment provides many advantages. Despite the current benefits provided by passthrough images, there are additional benefits that may be achieved by improving the processes by which passthrough images are generated, especially when multiple different cameras are involved. Accordingly, it is desirable to further improve the benefits provided by passthrough image generation techniques.
The subject matter claimed herein is not limited to embodiments that solve any disadvantages or that operate only in environments such as those described above. Rather, this background is only provided to illustrate one exemplary technology area where some embodiments described herein may be practiced.
Embodiments disclosed herein relate to systems, devices (e.g., wearable devices, head mounted devices, hardware storage devices, etc.), and methods for generating an enhanced image.
Some embodiments include a first camera of a first modality (e.g., perhaps a thermal modality) and a second camera of a second modality (e.g., perhaps a low light modality). The embodiments generate a first image of an environment using the first camera and generate a second image of the environment using the second camera. Pixels that are common between the two images are identified. A first set of textures for the common pixels included in the first image are determined, and a second set of textures for the common pixels included in the second image are also determined. The embodiments also determine a first saliency of the first image, where the term “saliency” refers to or reflects an amount of texture variation in an image. Additionally, the embodiments determine a second saliency of the second image. The embodiments generate an alpha map that reflects edge detection weights that have been computed for each one of the common pixels based on the saliencies. Furthermore, the embodiments determine how much texture from the first image and/or from the second image to use to generate an enhanced image. Notably, the determining process is based on the edge detection weights included within the alpha map. Based on the edge detection weights, the embodiments merge textures from the common pixels included in the first image and the second image to generate the enhanced image.
This Summary is provided to introduce a selection of concepts in a simplified form that are further described below in the Detailed Description. 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.
Additional features and advantages will be set forth in the description which follows, and in part will be obvious from the description, or may be learned by the practice of the teachings herein. Features and advantages of the invention may be realized and obtained by means of the instruments and combinations particularly pointed out in the appended claims. Features of the present invention will become more fully apparent from the following description and appended claims, or may be learned by the practice of the invention as set forth hereinafter.
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 which are illustrated in the appended drawings. Understanding that these drawings depict only typical embodiments and are not therefore to be considered to be limiting in scope, embodiments will be described and explained with additional specificity and detail through the use of the accompanying drawings in which:
Embodiments disclosed herein related to systems, devices (e.g., wearable devices, head mounted devices, hardware storage devices, etc.), and methods for generating an enhanced image.
Some embodiments include at least two cameras of differing modalities. A first image is generated using a first camera, and a second image is generated using a second camera. Pixels that are common between the two images are identified. Textures for the common pixels are determined. Saliencies of the two images are determined, where the saliencies reflect amounts of texture variation present in those images. The embodiments generate an alpha map that reflects edge detection weights that have been computed for each one of the common pixels based on the two saliencies. Furthermore, the embodiments determine how much texture from the first and/or second images to use to generate an enhanced image. This determining process is based on the edge detection weights included within the alpha map. Based on the edge detection weights, the embodiments merge textures from the common pixels to generate the enhanced image.
In some embodiments, one modality is a thermal image modality. In some embodiments, the other modality is a low light image modality.
The following section outlines some example improvements and practical applications provided by the disclosed embodiments. It will be appreciated, however, that these are just examples only and that the embodiments are not limited to only these improvements.
The disclosed embodiments bring about substantial benefits to the technical field. By way of example, the embodiments are able to produce or generate a so-called “enhanced” image. Different camera modalities are designed to provide different types of benefits. By following the disclosed principles, the embodiments are able to generate an enhanced image, which enables the benefits that are available to each individual modality to now be made available via a single image as opposed to multiple images. In doing so, improved analytics, computer vision, and user interaction with the computer system are achieved. Furthermore, the user (in some instances) is provided with content that he/she would potentially not be able to view or interact with if only a single image type or modality were used. Accordingly, these and other benefits will be described in more detail throughout the remaining portion of this disclosure.
Attention will now be directed to
Consequently, the disclosed principles should be interpreted broadly to encompass any type of scanning scenario or device. Some embodiments may even refrain from actively using a scanning device themselves and may simply use the data generated by the scanning device. For instance, some embodiments may at least be partially practiced in a cloud computing environment.
HMD 100 is shown as including scanning sensor(s) 105 (i.e. a type of scanning or camera system), and HMD 100 can use the scanning sensor(s) 105 to scan environments, map environments, capture environmental data, and/or generate any kind of images of the environment (e.g., by generating a 3D representation of the environment or by generating a “passthrough” visualization). Scanning sensor(s) 105 may comprise any number or any type of scanning devices, without limit.
In accordance with the disclosed embodiments, the HMD 100 may be used to generate a passthrough visualization of the user's environment. A “passthrough” visualization refers to a visualization that reflects what the user would see if the user were not wearing the HMD 100, regardless of whether the HMD 100 is included as a part of an AR system or a VR system, though that passthrough image may be supplemented with additional or enhanced content. To generate this passthrough visualization, the HMD 100 may use its scanning sensor(s) 105 to scan, map, or otherwise record its surrounding environment, including any objects in the environment, and to pass that data on to the user to view. In many cases, the passed-through data is modified to reflect or to correspond to a perspective of the user's pupils. The perspective may be determined by any type of eye tracking technique.
To convert a raw image into a passthrough image, the scanning sensor(s) 105 typically rely on its cameras (e.g., head tracking cameras, hand tracking cameras, depth cameras, or any other type of camera) to obtain one or more raw images of the environment. In addition to generating passthrough images, these raw images may also be used to determine depth data detailing the distance from the sensor to any objects captured by the raw images (e.g., a z-axis range or measurement). Once these raw images are obtained, then passthrough images can be generated (e.g., one for each pupil), and a depth map can also be computed from the depth data embedded or included within the raw images.
As used herein, a “depth map” details the positional relationship and depths relative to objects in the environment. Consequently, the positional arrangement, location, geometries, contours, and depths of objects relative to one another can be determined. From the depth maps (and possibly the raw images), a 3D representation of the environment can be generated.
Relatedly, from the passthrough visualizations, a user will be able to perceive what is currently in his/her environment without having to remove or reposition the HMD 100. Furthermore, as will be described in more detail later, the disclosed passthrough visualizations will also enhance the user's ability to view objects within his/her environment (e.g., by displaying additional environmental conditions that may not have been detectable by a human eye).
It should be noted that while the majority of this disclosure focuses on generating “a” passthrough image, the embodiments actually generate a separate passthrough image for each one of the user's eyes. That is, two passthrough images are typically generated concurrently with one another. Therefore, while frequent reference is made to generating what seems to be a single passthrough image, the embodiments are actually able to simultaneously generate multiple passthrough images.
In some embodiments, scanning sensor(s) 105 include visible light camera(s) 110, low light camera(s) 115, thermal imaging camera(s) 120, ultraviolet (UV) cameras 125, monochrome 130 cameras, and infrared camera(s) 135. The ellipsis 140 demonstrates how any other type of camera or camera system (e.g., depth cameras, time of flight cameras, etc.) may be included among the scanning sensor(s) 105. In this regard, cameras of different modalities (as reflected by modality 145) are included on the HMD 100. The scanning sensor(s) 105 generate images, which may be used to generate passthrough images, which may then be displayed on a display 150 of the HMD 100.
In some embodiments, the visible light camera(s) 110 and the low light camera(s) 115 (aka low light night vision cameras) operate in approximately the same overlapping wavelength range. In some cases, this overlapping wavelength range is between about 400 nanometers and about 1,100 nanometers. Additionally, in some embodiments these two types of cameras are both silicon detectors.
One distinguishing feature between these two types of cameras is related to the illuminance conditions or illuminance range(s) in which they actively operate. In some cases, the visible light camera(s) 110 are low power cameras and operate in environments where the illuminance is between about 10 lux and about 100,000 lux, or rather, the illuminance range begins at about 10 lux and increases beyond 10 lux. In contrast, the low light camera(s) 115 consume more power and operate in environments where the illuminance range is between about 110 micro-lux and about 10 lux.
The thermal imaging camera(s) 120, on the other hand, are structured to detect electromagnetic radiation or IR light in the far-IR (i.e. thermal-IR) range, though some embodiments also enable the thermal imaging camera(s) 120 to detect radiation in the mid-IR range. To clarify, the thermal imaging camera(s) 120 may be a long wave infrared imaging camera structured to detect electromagnetic radiation by measuring long wave infrared wavelengths. Often, the thermal imaging camera(s) 120 detect IR radiation having wavelengths between about 8 microns and 14 microns. These wavelengths are also included in the light spectrum(s). Because the thermal imaging camera(s) 120 detect far-IR radiation, the thermal imaging camera(s) 120 can operate in any illuminance condition, without restriction.
Accordingly, as used herein, reference to “visible light cameras” (including “head tracking cameras”), are cameras that are primarily used for computer vision to perform head tracking. These cameras can detect visible light, or even a combination of visible and IR light (e.g., a range of IR light, including IR light having a wavelength of about 850 nm). In some cases, these cameras are global shutter devices with pixels being about 3 μm in size. Low light cameras, on the other hand, are cameras that are sensitive to visible light and near-IR. These cameras are larger and may have pixels that are about 8 μm in size or larger. These cameras are also sensitive to wavelengths that silicon sensors are sensitive to, which wavelengths are between about 350 nm to 1100 nm. Thermal/long wavelength IR devices (i.e. thermal imaging cameras) have pixel sizes that are about 10 μm or larger and detect heat radiated from the environment. These cameras are sensitive to wavelengths in the 8 μm to 14 μm range. Some embodiments also include mid-IR cameras configured to detect at least mid-IR light. These cameras often comprise non-silicon materials (e.g., InP or InGaAs) that detect light in the 800 nm to 2 μm wavelength range.
Accordingly, the disclosed embodiments may be structured to utilize numerous 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.
It should be noted that any number of cameras may be provided on the HMD 100 for each of the different camera types/modalities. That is, the visible light camera(s) 110 may include 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, or more than 10 cameras. Often, however, the number of cameras is at least 2 so the HMD 100 can perform stereoscopic depth matching. Similarly, the low light camera(s) 115, the thermal imaging camera(s) 120, the UV camera(s) 125, the monochrome 130 cameras, and the infrared camera(s) 135 may each respectively include 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, or more than 10 corresponding cameras.
In some cases, the cameras can be located at specific positions on the HMD 200. For instance, in some cases a first camera (e.g., perhaps camera 220) is disposed on the HMD 200 at a position above a designated left eye position of any users who wear the HMD 200 relative to a height direction of the HMD. For instance, the camera 220 is positioned above the pupil 235. As another example, the first camera (e.g., camera 220) is additionally positioned above the designated left eye position relative to a width direction of the HMD. That is, the camera 220 is positioned not only above the pupil 235 but also in-line relative to the pupil 235. When a VR system is used, a camera may be placed directly in front of the designated left eye position. For example, with reference to
When a second camera is provided (e.g., perhaps camera 210), the second camera may be disposed on the HMD at a position above a designated right eye position of any users who wear the HMD relative to the height direction of the HMD. For instance, the camera 210 is above the pupil 230. In some cases, the second camera is additionally positioned above the designated right eye position relative to the width direction of the HMD. In some cases, the first camera is a low light camera, and the HMD includes one or more low light cameras. In some cases, the second camera is a thermal imaging camera, and HMD includes one or more thermal imaging cameras. The HMD may additionally include multiple visible light RGB cameras or monochrome cameras. When a VR system is used, a camera may be placed directly in front of the designated right eye position. For example, with reference to
When a user wears HMD 200, HMD 200 fits over the user's head and the HMD 200's display is positioned in front of the user's pupils, such as pupil 230 and pupil 235. Often, the cameras 205-225 will be physically offset some distance from the user's pupils 230 and 235. For instance, there may be a vertical offset in the HMD height direction (i.e. the “Y” axis), as shown by offset 240. Similarly, there may be a horizontal offset in the HMD width direction (i.e. the “X” axis), as shown by offset 245.
As described earlier, HMD 200 is configured to provide passthrough image(s) 250 for the user of HMD 200 to view. In doing so, HMD 200 is able to provide a visualization of the real world without requiring the user to remove or reposition HMD 200. Sometimes, the visualization is enhanced, modified, or supplemented with additional information, as will be described in more detail later. The passthrough image(s) 250 effectively represent the same view the user would see if the user were not wearing HMD 200. Cameras 205-225 are used to provide these passthrough image(s) 250.
None of the cameras 205-225, however, are directly aligned with the pupils 230 and 235. The offsets 240 and 245 actually introduce differences in perspective as between the cameras 205-225 and the pupils 230 and 235. These perspective differences are referred to as “parallax.”
Because of the parallax occurring as a result of the offsets 240 and 245, raw images produced by the cameras 205-225 are not available for immediate use as passthrough image(s) 250. Instead, it is beneficial to perform a parallax correction 255 (aka an image synthesis) on the raw images to transform the perspectives embodied within those raw images to correspond to perspectives of the user's pupils 230 and 235. The parallax correction 255 includes any number of distortion corrections (e.g., to correct for concave or convex wide or narrow angled camera lenses), epipolar transforms (e.g., to parallelize the optical axes of the cameras), and/or reprojection transforms (e.g., to reposition the optical axes so as to be essentially in front of or in-line with the user's pupils). The parallax correction 255 may include performing depth computations to determine the depth of the environment and then reprojecting images to a determined location or as having a determined perspective. As used herein, the phrases “parallax correction” and “image synthesis” may be interchanged with one another and may include performing stereo passthrough parallax correction and/or image reprojection parallax correction.
In some cases, the parallax correction 255 includes a planar reprojection 260 where all pixels of an image are reprojected to a common planar depth. In some cases, the parallax correction 255 includes a full reprojection 265 where various pixels are reprojected to different depths.
By performing these different transforms or reprojections, the embodiments are optionally able to perform three-dimensional (3D) geometric transforms on the raw camera images to transform the perspectives of the raw images in a manner so as to correlate with the perspectives of the user's pupils 230 and 235. Additionally, the 3D geometric transforms rely on depth computations in which the objects in the HMD 200's environment are mapped out to determine their depths. Based on these depth computations, the embodiments are able to three-dimensionally reproject or three-dimensionally warp the raw images in such a way so as to preserve the appearance of object depth in the passthrough image(s) 250, where the preserved object depth substantially matches, corresponds, or visualizes the actual depth of objects in the real world. Accordingly, the degree or amount of the parallax correction 255 is at least partially dependent on the degree or amount of the offsets 240 and 245.
By performing the parallax correction 255, the embodiments effectively create “virtual” cameras having positions that are in front of the user's pupils 230 and 235. By way of additional clarification, consider the position of camera 205, which is currently above and to the left of the pupil 230. By performing the parallax correction 255, the embodiments programmatically transform images generated by camera 205, or rather the perspectives of those images, so the perspectives appear as though camera 205 were actually positioned immediately in front of pupil 230. That is, even though camera 205 does not actually move, the embodiments are able to transform images generated by camera 205 so those images have the appearance as if camera 205 were positioned in front of pupil 230.
Attention will now be directed to
As used herein, the term “texture” generally refers to a metric or a set of values that quantify the spatial arrangement of intensity and/or color of a pixel in an image. Stated differently, texture characterizes the spatial distribution of a pixel's intensity level relative to that pixel's neighboring pixels. Texture is also used to divide or partition an image into different so-called “regions of interest” so those regions can then be segmented or classified. Additionally, texture reflects or quantifies other characteristics, such as smoothness, coarseness, and regularity.
Due to the placement of the cameras on the computer system (e.g., the HMD 305 of
It should be noted that the texture values for the common pixels between the two images may vary even though they reflect the same area of the environment. By way of example, suppose a thermal imaging camera was directed toward a spotlight and further suppose a low light camera was also directed toward that same spotlight. Here, the two resulting images would capture the same area of the environment, but the pixel intensities will likely be different. That is, the illumination provided by the spotlight might possibly saturate the low light camera sensors while that same illumination might have no effect on the sensors of the thermal imaging camera. Further details on this aspect will be provided later. In any event, the embodiments are able to determine which pixels of which images reflect similar or corresponding content, even if the texture or intensity values for those pixels are different between the two images.
In accordance with the disclosed principles, the embodiments are able to perform edge detection 500, as shown in
The embodiments are able to use the various pixels to perform the edge detection 500. For example, in the set of pixels 505B, which are representative of the set of pixels 505A, notice the stark contrast between the texture 510B and the texture 515B. That is, the texture value for the texture 510B is “10” while the texture value for the texture 515B is “87.” The variance or difference between these texture values surpasses a threshold value, thereby causing the embodiments to identify or determine an “edge” exists between the respective pixels. The boldened line between the two pixels reflects this detected edge, as shown by detected edge 520.
As used herein, the term “edge” generally refence to a significant local change that exists in an image, such as a change in the image's intensity at a particular location. An edge can also be thought of as a discontinuity change in the image's intensity at that particular location. The process of detecting edges, or “edge detection,” is the technique for identifying points or locations within an image where the image's intensity or brightness changes dramatically and produces the discontinuity.
The term “saliency” (such as saliency 525) reflects an amount of texture variation 530 that exists between groups of pixels. In this case, the texture variation 530 between texture 510B and 515B is the value “77,” which (in this example case) surpasses a predetermined threshold value for determining whether an edge exists between pixels. If the saliency for a group of pixels meets or exceeds the threshold value, then an edge exists.
The embodiments are able to analyze the textures for the various pixels in the images to determine the texture variations between the pixels. The texture variations are then used to determine the saliency of the image and to detect the presence or absence of edges between pixels.
Turning briefly to
Edge detection may be performed in a number of ways. One example technique is illustrated in
In image processing, kernel convolution 705 is generally used for edge detection, sharpening, blurring, or even embossing. The technique is performing by executing a convolution between a kernel and an image. Briefly, a convolution is a technique for adding a particular element of an image to its adjacent neighbors, weighted by the kernel. Accordingly, edges in an image may be detected by performing kernel convolution 705.
Saliency can also be performed using a variety of techniques, as illustrated in
Optionally, the saliency determination 800 may be based on the use of a Laplacian filter 810. The Laplacian filter 810 is a type of derivative filter designed to extract both the vertical and horizontal edges from an image, thereby causing the Laplacian filter 810 to be distinct from the Sobel filter 805 (i.e. a type of single derivative filter).
Optionally, saliency can be computed based on a computed variance of intensity values for pixels included within a batch of pixels, as shown by computed variance 815. Optionally, saliency can be determined using a neural network 820 or any type of machine learning. Any type of ML algorithm, model, machine learning, or neural network may be used to identify edges. As used herein, reference to “machine learning” or to a ML model or to a “neural network” may include any type of machine learning algorithm or device, neural network (e.g., convolutional neural network(s), multilayer neural network(s), recursive neural network(s), deep neural network(s), dynamic neural network(s), etc.), decision tree model(s) (e.g., decision trees, random forests, and gradient boosted trees), linear regression model(s) or logistic regression model(s), support vector machine(s) (“SVM”), artificial intelligence device(s), or any other type of intelligent computing system. Any amount of training data may be used (and perhaps later refined) to train the machine learning algorithm to dynamically perform the disclosed operations.
The ellipsis 825 demonstrates how other techniques may also be used to determine saliency. Accordingly, various different techniques may be used to detects edges and saliencies.
Attention will now be directed to
An alpha map 935 is then generated based on the first saliency 925 and the second saliency 930. The alpha map 935 reflects edge detection weights 940 that have been computed for each of the common pixels that are common between the first image 905 and the second image 915, and the computation is based on the first saliency 925 and the second saliency 930.
Turning briefly to
Alpha Map=(Saliency (B))/((Saliency (A)+Saliency (B)))
Where “Saliency(B)” is the saliency of a thermal image, or rather, the first saliency 925 (i.e. the saliency of the first image 905) and where “Saliency(A)” is the saliency of a low light image, or rather, the second saliency 930 (i.e. the saliency of the second image 915).
The alpha map 1005 is then shown as comprising a number of pixels, such as pixel 1010. Each pixel is assigned its own corresponding alpha intensity 1015 (i.e. an “edge detection weight” such as the edge detection weights 940 in
The alpha intensities, or rather the edge detection weights 940, are used to determine how much texture from each respective image will be used to when generating an enhanced image. By way of example, an alpha intensity of 1 (or an edge detection weight of 1) indicates that texture originating only from the second image will be used and no texture from the first image will be used. Relatedly, an alpha intensity of 0 indicates that texture originating only from the first image will be used and no texture from the second image will be used. An alpha intensity of 0.5 means textures from both images will be used equally.
In more detail, let “I” be the image of the first modality (e.g., modality 1) and “J” be the image of the second modality (e.g., modality 2). Image “I” is divided into both a low frequency component (e.g., “I_l”) and a high frequency component and (“I_h”). The low frequency component (“I_l”) is derived by applying a box filter on “I.”
The high frequency component (“I_h”) is computed by subtracting “I_l” from the original image “I.” In other words, “I_h”=“I”−“I_l.”
In the same manner, the image J is decomposed into low and high frequency components (e.g., “J_l” and “J_h” , respectively). Two alpha maps are then computed (e.g., “alpha_l” for the low frequency images and “alpha_h” for the high frequency images).
The final fused image “F” (aka an enhanced image) is obtained via the following equation:
F=(1−alpha_l)*I_l+alpha_l*J_l+(1−alpha_h)*I_h+alpha_h*J_h.
Computing alpha_l and alpha_r is performed by computing image saliency. For computing the low frequency saliency maps, the embodiments ignore image details and focus on the dominant image edges. The saliency map S_I_l is computed for the low frequency component of image I by running the following steps:
As a first step, the embodiments scale down the original image I twice. In other words, the image is scaled from (as one example) a 640×480 resolution to a 420×240 resolution and then to a 210×120 resolution.
As a second step, the embodiments apply a Sobel filter on the scaled image. As a third step, the embodiments apply a Gaussian filter on the Sobel image. S_I_l is obtained by upscaling the filtered image twice. For example, the image is upscaled from a 210×120 resolution to a 420×240 resolution to a 640×480 resolution.
The saliency map S_J_l for the low frequency component of image J is computed as above with the only difference being that image J is used as an input to the saliency computation. The alpha map (e.g., alpha map 935 from
alpha_l=S_J_l/(S_I_l+S_J_l).
For computing the high frequency saliency maps, the embodiments do focus on image details. The saliency maps S_I_h and S_J_h for the high frequency components of images I and J are computed running the same procedure as above without applying image scaling. In other words, only steps 2 and 3 are run. Finally, the high frequency alpha map (e.g., alpha map 935 from
alpha_h=S_J_h/(S_I_h+S_J_h).
In this regard, the alpha map 935 from
Returning to
In some implementations, the first image 905 and the second image 915 are aligned so that their corresponding perspectives match or coincide with one another. This alignment process may be performed by the parallax correction processes mentioned earlier. In some cases, alignment may also be performed by matching feature points that are presented between the two images. A “feature point” is considered a point of interest that provides a clear contrast, such as a corner or an edge. The embodiments are able to align images by identifying and then matching common feature points that are present in both the images.
In contrast, other features that were not visible in the first image 1100 are now visible in the second image 1110. For example, the bushes, labeled as content 1120, 1125, and 1130, are now visible in the low light image. Those bushes did not have a heat signature and thus were not visible in the thermal image (i.e. the first image 1100).
Accordingly, the thermal image beneficially visualizes some content that may not be visible in a low light image, and the low light image beneficially visualizes some content that may not be visible in the thermal image. In accordance with the disclosed principles, it is desirable to generate an enhanced image that provides the benefits of both the low light image and the thermal image. Stated differently, it is desirable to generate an enhanced image that provides the benefits from different images that were generated from different cameras of different modalities.
Following the flow chart 900 described in
By way of an additional explanation, the pixels in the alpha map corresponding to the illuminated area likely reflected alpha intensities equal to or approximating the value 0, meaning that almost all of the texture used in the enhanced image 1135 for the illuminated area came from the thermal image. Similarly, the pixels in the alpha map corresponding to the bushes likely reflected alpha intensities equal to or approximating the value 1, meaning that almost all of the texture used in the enhanced image 1135 for the bush areas came from the low light image. The textures of the other areas of the enhanced image 1135 (e.g., the building) likely came from both the thermal image and the low light image, and the proportion of texture used depends on the alpha intensities in the alpha map.
In some cases, a color coding scheme may be used to reflect the origination of texture for a pixel. For instance, texture obtained from the first image can have a particular color hue associated with it while texture obtained from the second image can have a different color hue associated with it. When texture is obtained from both images, then the resulting hue can be the combination of the two hues, and the resulting hue is based on the proportion of texture provided by each image. Each pixel may also be tagged with metadata to reflect the source of the pixel's texture.
As another example, suppose the embodiments were being used in an indoor environment where walls were present. In one example case, suppose a set of hot water pipes were located within the wall. The low light camera would reflect the walls, but the thermal imaging camera would detect a heat signature. By generating the enhanced image, a user will be able to detect the presence of the hot water pipes even though those would not normally be visible via the naked eye.
The following discussion now refers to a number of methods and method acts that may be performed. Although the method acts may be discussed in a certain order or 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.
Attention will now be directed to
Optionally, the first modality is selected from a group of modalities comprising: a visible light modality, a monochrome modality, a near infrared (NIR) modality, a short wave infrared (SWIR) modality, a thermal modality, or an ultraviolet (UV) modality. As another option, the second modality is also selected from the group of modalities and is different than the first modality.
Method 1200 involves an act (act 1205) of generating a first image (e.g., first image 1100 of
In some implementations, parallax correction is performed on one or more of the first image or the second image. The parallax correction is performed to align the perspectives embodied within the two images, as discussed earlier. The parallax correction can involve performing a planar reprojection or, alternatively, a full reprojection. In some cases, correcting for parallax results in the perspective of the two images being aligned with the person's pupils or, alternatively, with another desired perspective that is different from the person's pupil perspective.
For example, it may be the case that the second image is parallax corrected to conform with the perspective embodied by the first image. Alternatively, it may be the case that the first image is parallax corrected to conform with perspective embodied by the second image. Indeed, various different perspectives may be achieved by performing parallax correction. Accordingly, a planar reprojection operation or a full reprojection operation may be performed to account for parallax.
Act 1215 involves identifies pixels that are common between the first image and the second image. For example, the set of common pixels 430 from
Act 1220 involves determining a first set of textures for the common pixels included in the first image. In parallel or in serial with act 1220, act 1225 involves determining a second set of textures for the common pixels included in the second image. For example, the textures 435 from
Act 1230 includes determining a first saliency of the first image. The first saliency reflects an amount of texture variation in the first image. In parallel or in serial with act 1230, act 1235 includes determining a second saliency of the second image. The second saliency reflects an amount of texture variation in the second image. For example, the saliency 525 from
Method 1200 continues in
Act 1245 then involves determining how much texture from the first image and/or from the second image to use to generate an enhanced image. This determining process is based on the edge detection weights included within the alpha map. With reference to
Based on the edge detection weights, act 1250 includes merging textures from the common pixels included in the first image and the second image to generate the enhanced image. The enhanced image 1135 from
In some cases, the enhanced image is then displayed on a display of the HMD or computer system as a passthrough image. A user can then view the passthrough image via the display.
In some cases, the enhanced image is further analyzed so that object recognition or object segmentation is performed on the enhanced image. For example, in the scenario where the embodiments are used in a self-driving car, the car may have at least two different cameras of different modalities. The car's system can operate in the manner described above. When the enhanced image is finally generated, the car's system can then analyze the image to identify objects, such as to perform obstacle avoidance or to ensure the car is traveling in a desired path. Therefore, in some situations, the enhanced image may (or may not) be displayed and may (or may not) be further analyzed in an effort to identify objects for obstacle avoidance.
Attention will now be directed to
In its most basic configuration, computer system 1300 includes various different components.
Regarding the processor(s) 1305, it will be appreciated that the functionality described herein can be performed, at least in part, by one or more hardware logic components (e.g., the processor(s) 1305). For example, and without limitation, illustrative types of hardware logic components/processors that can be used include Field-Programmable Gate Arrays (“FPGA”), Program-Specific or Application-Specific Integrated Circuits (“ASIC”), Program-Specific Standard Products (“ASSP”), System-On-A-Chip Systems (“SOC”), Complex Programmable Logic Devices (“CPLD”), Central Processing Units (“CPU”), Graphical Processing Units (“GPU”), or any other type of programmable hardware.
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 computer system 1300. The different components, modules, engines, and services described herein may be implemented as objects or processors that execute on computer system 1300 (e.g. as separate threads).
Storage 1310 may be physical system memory, which may be volatile, non-volatile, 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 1300 is distributed, the processing, memory, and/or storage capability may be distributed as well.
Storage 1310 is shown as including executable instructions 1315. The executable instructions 1315 represent instructions that are executable by the processor(s) 1305 of computer system 1300 to perform the disclosed operations, such as those described in the various methods.
The disclosed embodiments may comprise or utilize a special-purpose or general-purpose computer including computer hardware, such as, for example, one or more processors (such as processor(s) 1305) and system memory (such as storage 1310), as discussed in greater 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 a “hardware storage device.” Computer-readable media that carry 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 the form of computer-executable instructions, data, or data structures and that can be accessed by a general-purpose or special-purpose computer.
Computer system 1300 may also be connected (via a wired or wireless connection) to external sensors (e.g., one or more remote cameras) or devices via a network 1320. For example, computer system 1300 can communicate with any number devices or cloud services to obtain or process data. In some cases, network 1320 may itself be a cloud network. Furthermore, computer system 1300 may also be connected through one or more wired or wireless networks 1320 to remote/separate computer systems(s) that are configured to perform any of the processing described with regard to computer system 1300.
A “network,” like network 1320, is defined as one or more data links and/or data switches that enable the transport of electronic data between computer systems, modules, and/or other electronic devices. When information is transferred, or provided, over a network (either hardwired, wireless, or a combination of hardwired and wireless) to a computer, the computer properly views the connection as a transmission medium. Computer system 1300 will include one or more communication channels that are used to communicate with the network 1320. Transmissions media include a network that can be used to carry data or desired program code means in the form of computer-executable instructions or in the form of data structures. Further, these computer-executable instructions can be accessed by a general-purpose or special-purpose computer. Combinations of the above should also be included within the scope of computer-readable media.
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 media to computer 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 network interface card or “NIC”) and then eventually transferred to computer system RAM and/or to less volatile computer storage media at a computer system. Thus, it should be understood that computer storage media can be included in computer system components that also (or even primarily) utilize transmission media.
Computer-executable (or computer-interpretable) instructions comprise, for example, instructions that 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.
Those skilled in the art will appreciate that the embodiments 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, and the like. The embodiments may also be practiced in distributed system environments where local and remote computer systems that are linked (either by hardwired data links, wireless data links, or by a combination of hardwired and wireless data links) through a network each perform tasks (e.g. cloud computing, cloud services and the like). In a distributed system environment, program modules may be located in both local and remote memory storage devices.
The present invention may be embodied in other specific forms without departing from its 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.