This disclosure generally relates to artificial reality, such as virtual reality and augmented reality.
Artificial reality is a form of reality that has been adjusted in some manner before presentation to a user, which may include, e.g., a virtual reality (VR), an augmented reality (AR), a mixed reality (MR), a hybrid reality, or some combination and/or derivatives thereof. Artificial reality content may include completely generated content or generated content combined with captured content (e.g., real-world photographs). The artificial reality content may include video, audio, haptic feedback, or some combination thereof, and any of which may be presented in a single channel or in multiple channels (such as stereo video that produces a three-dimensional effect to the viewer). Artificial reality may be associated with applications, products, accessories, services, or some combination thereof, that are, e.g., used to create content in an artificial reality and/or used in (e.g., perform activities in) an artificial reality. The artificial reality system that provides the artificial reality content may be implemented on various platforms, including a head-mounted display (HMD) connected to a host computer system, a standalone HMD, a mobile device or computing system, or any other hardware platform capable of providing artificial reality content to one or more viewers.
Particular embodiments described herein relate to a method of generating three subframes based on a dithering mask and a set of barycentric coordinate systems to represent a target image. As an example and not by way of limitation, the method may use a unit cube's eight vertices to represent the three subframes (S1, S2, S3) and combinations of zero or more subframes (no subframes, S1+S2, S1+S3, S2+S3, S1+S2+S3). It is notable that the subframe combinations herein are for example purpose only and the systems, methods, and processes described in this disclosure are not limited thereto. The subframe combinations may be any suitable combinations in any suitable orders. For example, the systems, methods, and processes are still applicable if one or more of the subframes (e.g., S1, S2, S3) are swapped. The unit cube may be divided into six tetrahedrons, four of which may be used for determining the barycentric coordinate systems for generating the subframes. For a target grayscale value (e.g., an average grayscale value of a tile region in a target image), the system may first determine which of the tetrahedrons (e.g., one of the four tetrahedrons for determining the barycentric coordinate system) the grayscale value falls in based on the threshold ranges associated with the tetrahedrons. Then, the system may determine a weight vector (including the barycentric weights) and a vertex vector (including combination of subframe identifiers) based on the associated tetrahedron which the grayscale value falls in. After that, the system may determine four non-overlapping dot sets of the dither mask (e.g., a blue-noise dithering mask) corresponding to the four barycentric weight values of the weight vector. At last, the system may determine the dot sets that are to be turned on or included in each of the three subframes based on the four non-overlapping dot sets of the dithering mask and a set of rules for assigning dots to the subframes. As a result, the system may generate three subframes satisfying a spatial-stacking property as determined by the dithering mask.
For a target image having a larger size than the dithering mask, the dithering mask may be replicated to cover the target image. To determine in which subframe(s) a given dot of the dithering mask should be included, the system may first determine the dithering mask threshold value Q associated with that dot based on a replicated mask covering that region of the target image. Then, the system may compare the dithering mask threshold value Q to the cumulative sum of the barycentric weights of the target grayscale value with respect to the associated tetrahedron. The system may select a tetrahedron vertex based on the result of the comparison. The selected tetrahedron vertex may be associated with a combination of zero or more subframe identifiers.
In particular embodiments, the system may first receive a target pixel value p which could be an average pixel value of a target region of a target image. The target pixel value p may be normalized to a range of [0, 1]. The system may first determine which range the target pixel value p falls within among the four value ranges of 0≤p<⅓, ⅓≤p<½, ½≤p<⅔, and ⅔≤p≤1. When the target pixel value p falls within the value range of 0≤p<⅓, the system may select a first tetrahedron of a unit cube for determining a barycentric coordinate system. The selected tetrahedron may have its vertices being associated with subframe identifiers of [OFF, S1, S2, S3]. The system may determine the barycentric weights for the target pixel value p with respect to the selected tetrahedron using a weight vector w=[1−3p, p, p, p]. Then, the system may determine four non-overlapping dot sets of the dithering mask based on the four barycentric weight values of 1−3p, p, p, and p of the weight vector w. For example, the system may determine a first dot set A1 including dots in the dithering mask having threshold values below the mask threshold of 1−3p, a second dot set B1 including dots in the dithering mask having threshold values between the thresholds of 1−3p and (1−3p)+p, a third dot set C1 including dots in the dithering mask having threshold values between the thresholds of (1−3p)+p, and (1−3p)+p+p, and a fourth dot set D1 including dots in the dithering mask having threshold values between the thresholds of (1−3p)+p+p, and 1. Each dot set of the four non-overlapping dot sets may include a percentage of dots of the total dots in the mask corresponding to a barycentric weight value of the target pixel value. After that, the system may assign the dots to the subframes by: (1) excluding dots in the first dot set A1 from any of the three subframes; and (2) including dots in the second dot set B1 in the first subframe S1; (3) including dots in the third dot set C1 in the second subframe S2; and (4) including dots on the fourth dot set D1 in the third subframe S3. As a result, the three subframes may satisfy the spatial stacking property by each including a non-overlapping dot set and not sharing any dots with other subframes.
When the target pixel value p falls within the value range of ⅓≤p<½, the system may select a second tetrahedron of the unit cube for determining a barycentric coordinate system. The selected tetrahedron may have its vertices being associated with subframe identifiers of [S1, S2, S3, S1+3]. The system may determine the barycentric weights for the target pixel value p with respect to the selected tetrahedron using a weight vector of w=[1−2p, p, 1−2p, 3p−1]. Then, the system may determine four non-overlapping dot sets of the dithering mask based on the four barycentric weight values of 1−2p, p, 1−2p, and 3p−1 of the weight vector w. For example, the system may determine a first dot set A2 including dots in the dithering mask having threshold values below the mask threshold of 1−2p, a second dot set B2 including dots in the dithering mask having threshold values in the range of [1−2p, (1−2p)+p], a third dot set C2 including dots in the dithering mask having threshold values on the range of [(1−2p)+p, (1−2p)+p+(1−2p)], and a fourth dot set D2 including dots in the dithering mask having threshold values in the range of [(1−2p)+p+(1−2p), 1]. Each dot set of the four non-overlapping dot sets may include a percentage of dots of the total dots in the mask corresponding to a barycentric weight value of the target pixel value. After that, the system may assign the dot sets to the subframes by: (1) including on the first dot set A2 in the first subframe S1; (2) including the second dot set B2 in the second subframe S2; (3) including the third dot set C2 in the third subframe S3; and (4) including the fourth dot set D2 in both the first subframe S1 and the third subframe S3. As a result, the three subframes may include dot sets satisfying the spatial stacking property as determined by the dithering mask.
When the target pixel value p falls within the value range of ½≤p<⅔, the system may select a third tetrahedron of the unit cube for determining the barycentric coordinate system. The selected tetrahedron may have its vertices being associated with the subframe identifiers of [S1+S3, S2+S3, S2, S1+S2]. The system may determine the barycentric weights for the target pixel value p with respect to the selected tetrahedron using a weight vector w=[2p−1, 2p−1, 2−3p, 1−p]. Then, the system may determine four non-overlapping dot sets of the dithering mask based on the four weight values of 2p−1, 2p−1, 2−3p, and 1−p of the weight vector w. For example, the system may determine a first dot set A3 including dots in the dithering mask having threshold values below the mask threshold of 2p−1, a second dot set B3 including dots in the dithering mask having threshold values in the range of [2p−1, (2p−1)+(2p−1)], a third dot set C3 including dots in the dithering mask having threshold values in the range of [(2p−1)+(2p−1), (2p−1)+(2p−1)+(2−3p)], and a fourth dot set D3 including dots in the dithering mask having threshold values in the range of [(2p−1)+(2p−1)+(2−3p), 1]. Each dot set of the four non-overlapping dot sets may include a percentage of dots of the total dots in the mask corresponding to a weight value of the weight vector. After that, the system may assign the dot sets to the subframes by: (1) including the first dot set A3 in the first and third subframes (S1+S3); (2) including the second dot set B3 in the second and third subframes (S2+S3); (3) including the third dot set C3 in the second subframe S2; and (4) including the fourth dot set D3 in both the first and second subframe (S1+S2). As a result, the three subframes may include dot sets satisfying the spatial stacking property as determined by the dithering mask.
When the target pixel value p falls within the value range of ⅔≤p≤1, the system may determine select a fourth tetrahedron of the unit cube for determining the barycentric coordinate system. The selected tetrahedron may have its vertices being associated with subframe identifiers of [S1+S3, S2+S3, S1+S2, S1+S2+S3]. The system may determine the barycentric weights for the target pixel value p with respect to the selected tetrahedron using a weight vector using w=[1−p, 1−p, 1−p, 3p−2]. Then, the system may determine four non-overlapping dot sets of the dithering mask based on the four weight values of 1−p, 1−p, 1−p, and 3p−2 of the weight vector w. For example, the system may determine a first dot set A4 including dots in the dithering mask having threshold value below a mask threshold of 1−p, a second dot set B4 including dots in the dithering mask having threshold values in the range of [1−p, (1−p)+(1−p)], a third dot set C4 including dots in the dithering mask having threshold value in the range of [(1−p)+(1−p), (1−p)+(1−p)+(1−p)], and a fourth dot set D4 including dots in the dithering mask having threshold values in the range of [(1−p)+(1−p)+(1−p), 1]. Each dot set of the four non-overlapping dot sets may include a percentage of dots of the total dots in the mask corresponding to a barycentric weight value of the weight vector. After that, the system may assign the dot sets to the subframes by: (1) including the first dot set A4 in the first and third subframes (S1+S3); (2) including the second dot set B4 in the second and third subframes (S2+S3); (3) including the third dot set C4 in the first and second subframe S1+S2; and (4) including the fourth dot set D4 in the first, second, and third subframes (S1+S2+S3). As a result, the three subframes may include dot sets satisfying the spatial stacking property as determined by the dithering mask.
The embodiments disclosed herein are only examples, and the scope of this disclosure is not limited to them. Particular embodiments may include all, some, or none of the components, elements, features, functions, operations, or steps of the embodiments disclosed above. Embodiments according to the invention are in particular disclosed in the attached claims directed to a method, a storage medium, a system and a computer program product, wherein any feature mentioned in one claim category, e.g. method, can be claimed in another claim category, e.g. system, as well. The dependencies or references back in the attached claims are chosen for formal reasons only. However, any subject matter resulting from a deliberate reference back to any previous claims (in particular multiple dependencies) can be claimed as well, so that any combination of claims and the features thereof are disclosed and can be claimed regardless of the dependencies chosen in the attached claims. The subject-matter which can be claimed comprises not only the combinations of features as set out in the attached claims but also any other combination of features in the claims, wherein each feature mentioned in the claims can be combined with any other feature or combination of other features in the claims. Furthermore, any of the embodiments and features described or depicted herein can be claimed in a separate claim and/or in any combination with any embodiment or feature described or depicted herein or with any of the features of the attached claims.
The number of available bits in a display may limit the display's color depth or gray scale level. To achieve display results with higher effective grayscale level, displays may use a series of temporal subframes with less grayscale level bits to create the illusion of a target image with more grayscale level bits. However, subframes with naïve stacking property (e.g., direct stacking property without using a dithering mask) and unequal weights (e.g., determined by segmented quantization) may have artifacts (e.g., flashing and uneven luminance between different subframes) which may negatively impact the experience of the viewers. Furthermore, the dithering methods using a frame buffer for propagating errors to subsequent subframes may require extra memory space to be used as the frame buffer and need more memory resources.
In particular embodiments, the system may use a barycentric coordinate system and a dithering mask to generate a series of subframe images for representing a target image. The dithering mask may include a number of dot patterns with each dot pattern having a dot density corresponding to a grayscale level within the quantization range (e.g., 0-255 grayscale levels for 8-bit display). The dot patterns may be generated based on blue-noise distribution and satisfy spatial stacking property. For example, the dot pattern for grayscale level N may include the dot patterns for all lower grayscale levels from 0 to N−1. The dithering mask may include the dot patterns corresponding to all grayscale levels of the quantization range. Each dot in the dithering mask may correspond to a threshold value which equals to the lowest grayscale level allowing that dot to be included in a dot pattern. For a target pixel value, the system may determine a barycentric coordinate system based on a tetrahedron of a unit cube that the target pixel value falls in. The system may determine the barycentric weights for the target pixel value with respect to the barycentric coordinate system. The vertices of the barycentric coordinate system may represent combinations of zero or more subframe identifiers. The system may use the barycentric weights and threshold values associated with dots in the dithering mask to select a set of non-overlapping dot patterns. The system may generate a number of subframes based on the non-overlapping dot patterns and the combinations of the subframe identifier represented by the vertices of the barycentric coordinate system.
Particular embodiments of the system provide better image quality and improve user experience for AR/VR display by using multiple subframe images with less color depth to represent an image with greater color depth. Particular embodiments of the system generate subframe image with reduced or eliminated temporal artifacts such as flashes. Particular embodiments of the system improve the efficiency of AR/VR display by reducing the memory usage related to generating the temporal subframe images by using a dithering mask without using an error buffer. Particular embodiments of the system allow AR/VR display system to reduce the space and complexity of pixel circuits by having less gray level bits, and therefore miniaturize the size of the display system. Particular embodiments of the system make it possible for AR/VR displays to operate in monochrome mode with digital pixel circuits without using analog pixel circuits for full RGB operations.
In particular embodiments, the display engine 130 may include a controller block (not shown). The control block may receive data and control packages such as position data and surface information from controllers external to the display engine 130 though one or more data buses. For example, the control block may receive input stream data from a body wearable computing system. The input data stream may include a series of mainframe images generated at a mainframe rate of 30-90 Hz. The input stream data including the mainframe images may be converted to the required format and stored into the texture memory 132. In particular embodiments, the control block may receive input from the body wearable computing system and initialize the graphic pipelines in the display engine to prepare and finalize the image data for rendering on the display. The data and control packets may include information related to, for example, one or more surfaces including texel data, position data, and additional rendering instructions. The control block may distribute data as needed to one or more other blocks of the display engine 130. The control block may initiate the graphic pipelines for processing one or more frames to be displayed. In particular embodiments, the graphic pipelines for the two eye display systems may each include a control block or share the same control block.
In particular embodiments, the transform block 133 may determine initial visibility information for surfaces to be displayed in the artificial reality scene. In general, the transform block 133 may cast rays from pixel locations on the screen and produce filter commands (e.g., filtering based on bilinear or other types of interpolation techniques) to send to the pixel block 134. The transform block 133 may perform ray casting from the current viewpoint of the user (e.g., determined using the headset's inertial measurement units, eye tracking sensors, and/or any suitable tracking/localization algorithms, such as simultaneous localization and mapping (SLAM)) into the artificial scene where surfaces are positioned and may produce tile/surface pairs 144 to send to the pixel block 134. In particular embodiments, the transform block 133 may include a four-stage pipeline as follows. A ray caster may issue ray bundles corresponding to arrays of one or more aligned pixels, referred to as tiles (e.g., each tile may include 16×16 aligned pixels). The ray bundles may be warped, before entering the artificial reality scene, according to one or more distortion meshes. The distortion meshes may be configured to correct geometric distortion effects stemming from, at least, the eye display systems the headset system. The transform block 133 may determine whether each ray bundle intersects with surfaces in the scene by comparing a bounding box of each tile to bounding boxes for the surfaces. If a ray bundle does not intersect with an object, it may be discarded. After the tile-surface intersections are detected, the corresponding tile/surface pairs may be passed to the pixel block 134.
In particular embodiments, the pixel block 134 may determine color values or grayscale values for the pixels based on the tile-surface pairs. The color values for each pixel may be sampled from the texel data of surfaces received and stored in texture memory 132. The pixel block 134 may receive tile-surface pairs from the transform block 133 and may schedule bilinear filtering using one or more filer blocks. For each tile-surface pair, the pixel block 134 may sample color information for the pixels within the tile using color values corresponding to where the projected tile intersects the surface. The pixel block 134 may determine pixel values based on the retrieved texels (e.g., using bilinear interpolation). In particular embodiments, the pixel block 134 may process the red, green, and blue color components separately for each pixel. In particular embodiments, the display may include two pixel blocks for the two eye display systems. The two pixel blocks of the two eye display systems may work independently and in parallel with each other. The pixel block 134 may then output its color determinations (e.g., pixels 138) to the display block 135. In particular embodiments, the pixel block 134 may composite two or more surfaces into one surface to when the two or more surfaces have overlapping areas. A composed surface may need less computational resources (e.g., computational units, memory, power, etc.) for the resampling process.
In particular embodiments, the display block 135 may receive pixel color values from the pixel block 134, covert the format of the data to be more suitable for the scanline output of the display, apply one or more brightness corrections to the pixel color values, and prepare the pixel color values for output to the display. In particular embodiments, the display block 135 may each include a row buffer and may process and store the pixel data received from the pixel block 134. The pixel data may be organized in quads (e.g., 2×2 pixels per quad) and tiles (e.g., 16×16 pixels per tile). The display block 135 may convert tile-order pixel color values generated by the pixel block 134 into scanline or row-order data, which may be required by the physical displays. The brightness corrections may include any required brightness correction, gamma mapping, and dithering. The display block 135 may output the corrected pixel color values directly to the driver of the physical display (e.g., pupil display) or may output the pixel values to a block external to the display engine 130 in a variety of formats. For example, the eye display systems of the headset system may include additional hardware or software to further customize backend color processing, to support a wider interface to the display, or to optimize display speed or fidelity.
In particular embodiments, the dithering methods and processes (e.g., spatial dithering method, temporal dithering methods, and spatio-temporal methods) as described in this disclosure may be embodied or implemented in the display block 135 of the display engine 130. In particular embodiments, the display block 135 may include a model-based dithering algorithm or a dithering model for each color channel and send the dithered results of the respective color channels to the respective display driver ICs (e.g., 142A, 142B, 142C) of display system 140. In particular embodiments, before sending the pixel values to the respective display driver ICs (e.g., 142A, 142B, 142C), the display block 135 may further include one or more algorithms for correcting, for example, pixel non-uniformity, LED non-ideality, waveguide non-uniformity, display defects (e.g., dead pixels), etc.
In particular embodiments, graphics applications (e.g., games, maps, content-providing apps, etc.) may build a scene graph, which is used together with a given view position and point in time to generate primitives to render on a GPU or display engine. The scene graph may define the logical and/or spatial relationship between objects in the scene. In particular embodiments, the display engine 130 may also generate and store a scene graph that is a simplified form of the full application scene graph. The simplified scene graph may be used to specify the logical and/or spatial relationships between surfaces (e.g., the primitives rendered by the display engine 130, such as quadrilaterals or contours, defined in 3D space, that have corresponding textures generated based on the mainframe rendered by the application). Storing a scene graph allows the display engine 130 to render the scene to multiple display frames and to adjust each element in the scene graph for the current viewpoint (e.g., head position), the current object positions (e.g., they could be moving relative to each other) and other factors that change per display frame. In addition, based on the scene graph, the display engine 130 may also adjust for the geometric and color distortion introduced by the display subsystem and then composite the objects together to generate a frame. Storing a scene graph allows the display engine 130 to approximate the result of doing a full render at the desired high frame rate, while actually running the GPU or display engine 130 at a significantly lower rate.
In particular embodiments, the graphic pipeline 100D may include a resampling step 153, where the display engine 130 may determine the color values from the tile-surfaces pairs to produce pixel color values. The resampling step 153 may be performed by the pixel block 134 in
In particular embodiments, the graphic pipeline 100D may include a bend step 154, a correction and dithering step 155, a serialization step 156, etc. In particular embodiments, the bend step, correction and dithering step, and serialization steps of 154, 155, and 156 may be performed by the display block (e.g., 135 in
In particular embodiments, the optics system 214 may include a light combining assembly, a light conditioning assembly, a scanning mirror assembly, etc. The light source assembly 210 may generate and output an image light 219 to a coupling element 218 of the output waveguide 204. The output waveguide 204 may be an optical waveguide that could output image light to the user eye 202. The output waveguide 204 may receive the image light 219 at one or more coupling elements 218 and guide the received image light to one or more decoupling elements 206. The coupling element 218 may be, for example, but is not limited to, a diffraction grating, a holographic grating, any other suitable elements that can couple the image light 219 into the output waveguide 204, or a combination thereof. As an example and not by way of limitation, if the coupling element 350 is a diffraction grating, the pitch of the diffraction grating may be chosen to allow the total internal reflection to occur and the image light 219 to propagate internally toward the decoupling element 206. The pitch of the diffraction grating may be in the range of 300 nm to 600 nm. The decoupling element 206 may decouple the total internally reflected image light from the output waveguide 204. The decoupling element 206 may be, for example, but is not limited to, a diffraction grating, a holographic grating, any other suitable element that can decouple image light out of the output waveguide 204, or a combination thereof. As an example and not by way of limitation, if the decoupling element 206 is a diffraction grating, the pitch of the diffraction grating may be chosen to cause incident image light to exit the output waveguide 204. The orientation and position of the image light exiting from the output waveguide 204 may be controlled by changing the orientation and position of the image light 219 entering the coupling element 218. The pitch of the diffraction grating may be in the range of 300 nm to 600 nm.
In particular embodiments, the output waveguide 204 may be composed of one or more materials that can facilitate total internal reflection of the image light 219. The output waveguide 204 may be composed of one or more materials including, for example, but not limited to, silicon, plastic, glass, polymers, or some combination thereof. The output waveguide 204 may have a relatively small form factor. As an example and not by way of limitation, the output waveguide 204 may be approximately 50 mm wide along X-dimension, 30 mm long along Y-dimension and 0.5-1 mm thick along Z-dimension. The controller 216 may control the scanning operations of the light source assembly 210. The controller 216 may determine scanning instructions for the light source assembly 210 based at least on the one or more display instructions for rendering one or more images. The display instructions may include an image file (e.g., bitmap) and may be received from, for example, a console or computer of the AR/VR system. Scanning instructions may be used by the light source assembly 210 to generate image light 219. The scanning instructions may include, for example, but are not limited to, an image light source type (e.g., monochromatic source, polychromatic source), a scanning rate, a scanning apparatus orientation, one or more illumination parameters, or some combination thereof. The controller 216 may include a combination of hardware, software, firmware, or any suitable components supporting the functionality of the controller 216.
In particular embodiments, the image field 227 may receive the light 226A-B as the mirror 224 rotates about the axis 225 to project the light 226A-B in different directions. For example, the image field 227 may correspond to a portion of the coupling element 218 or a portion of the decoupling element 206 in
In particular embodiments, the light emitters 222 may illuminate a portion of the image field 227 (e.g., a particular subset of multiple pixel locations 229 on the image field 227) with a particular rotation angle of the mirror 224. In particular embodiment, the light emitters 222 may be arranged and spaced such that a light beam from each of the light emitters 222 is projected on a corresponding pixel location 229. In particular embodiments, the light emitters 222 may include a number of light-emitting elements (e.g., micro-LEDs) to allow the light beams from a subset of the light emitters 222 to be projected to a same pixel location 229. In other words, a subset of multiple light emitters 222 may collectively illuminate a single pixel location 229 at a time. As an example and not by way of limitation, a group of light emitter including eight light-emitting elements may be arranged in a line to illuminate a single pixel location 229 with the mirror 224 at a given orientation angle.
In particular embodiments, the number of rows and columns of light emitters 222 of the light source 220 may or may not be the same as the number of rows and columns of the pixel locations 229 in the image field 227. In particular embodiments, the number of light emitters 222 in a row may be equal to the number of pixel locations 229 in a row of the image field 227 while the light emitters 222 may have fewer columns than the number of pixel locations 229 of the image field 227. In particular embodiments, the light source 220 may have the same number of columns of light emitters 222 as the number of columns of pixel locations 229 in the image field 227 but fewer rows. As an example and not by way of limitation, the light source 220 may have about 1280 columns of light emitters 222 which may be the same as the number of columns of pixel locations 229 of the image field 227, but only a handful rows of light emitters 222. The light source 220 may have a first length L1 measured from the first row to the last row of light emitters 222. The image field 530 may have a second length L2, measured from the first row (e.g., Row 1) to the last row (e.g., Row P) of the image field 227. The L2 may be greater than L1 (e.g., L2 is 50 to 10,000 times greater than L1).
In particular embodiments, the number of rows of pixel locations 229 may be larger than the number of rows of light emitters 222. The display device 200B may use the mirror 224 to project the light 223 to different rows of pixels at different time. As the mirror 520 rotates and the light 223 scans through the image field 227, an image may be formed on the image field 227. In some embodiments, the light source 220 may also has a smaller number of columns than the image field 227. The mirror 224 may rotate in two dimensions to fill the image field 227 with light, for example, using a raster-type scanning process to scan down the rows then moving to new columns in the image field 227. A complete cycle of rotation of the mirror 224 may be referred to as a scanning period which may be a predetermined cycle time during which the entire image field 227 is completely scanned. The scanning of the image field 227 may be determined and controlled by the mirror 224 with the light generation of the display device 200B being synchronized with the rotation of the mirror 224. As an example and not by way of limitation, the mirror 224 may start at an initial position projecting light to Row 1 of the image field 227, and rotate to the last position that projects light to Row P of the image field 227, and then rotate back to the initial position during one scanning period. An image (e.g., a frame) may be formed on the image field 227 per scanning period. The frame rate of the display device 200B may correspond to the number of scanning periods in a second. As the mirror 224 rotates, the light may scan through the image field to form images. The actual color value and light intensity or brightness of a given pixel location 229 may be a temporal sum of the color various light beams illuminating the pixel location during the scanning period. After completing a scanning period, the mirror 224 may revert back to the initial position to project light to the first few rows of the image field 227 with a new set of driving signals being fed to the light emitters 222. The same process may be repeated as the mirror 224 rotates in cycles to allow different frames of images to be formed in the scanning field 227.
The coupling area 330 may include coupling elements (e.g., 334A, 334B, 334C) configured and dimensioned to couple light of predetermined wavelengths (e.g., red, green, blue). When a white light emitter array is included in the projector device 350, the portion of the white light that falls in the predetermined wavelengths may be coupled by each of the coupling elements 334A-C. In particular embodiments, the coupling elements 334A-B may be gratings (e.g., Bragg gratings) dimensioned to couple a predetermined wavelength of light. In particular embodiments, the gratings of each coupling element may exhibit a separation distance between gratings associated with the predetermined wavelength of light and each coupling element may have different grating separation distances. Accordingly, each coupling element (e.g., 334A-C) may couple a limited portion of the white light from the white light emitter array of the projector device 350 if white light emitter array is included in the projector device 350. In particular embodiments, each coupling element (e.g., 334A-C) may have the same grating separation distance. In particular embodiments, the coupling elements 334A-C may be or include a multiplexed coupler.
As illustrated in
In particular embodiments, the AR/VR system may use scanning waveguide displays or 2D micro-LED displays for displaying AR/VR content to users. In order to miniaturize the AR/VR system, the display system may need to miniaturize the space for pixel circuits and may have limited number of available bits for the display. The number of available bits in a display may limit the display's color depth or gray scale level, and consequently limit the quality of the displayed images. Furthermore, the waveguide displays used for AR/VR systems may have nonuniformity problem cross all display pixels. The compensation operations for pixel nonuniformity may result in loss on image grayscale and further reduce the quality of the displayed images. For example, a waveguide display with 8-bit pixels (i.e., 256 gray level) may equivalently have 6-bit pixels (i.e., 64 gray level) after compensation of the nonuniformity (e.g., 8:1 waveguide nonuniformity, 0.1% dead micro-LED pixel, and 20% micro-LED intensity nonuniformity).
To improve the displayed image quality, displays with limited color depth or gray scale level may use spatio dithering to spread quantization errors to neighboring pixels and generate the illusion of increased color depth or gray scale level. To further increase the color depth or gray scale level, displays may generate a series of temporal subframe images with less gray level bits to give the illusion of a target image which has more gray level bits. Each subframe image may be dithered using spatio dithering techniques within that subframe image. The average of the series of subframe image may correspond to the image as perceived by the viewer. For example, for display an image with 8-bit pixels (i.e., 256 gray level), the system may use four subframe images each having 6-bit pixels (i.e., 64 gray level) to represent the 8-bit target image. As another example, an image with 8-bit pixels (i.e., 256 gray level) may be represented by 16 subframe images each having 4-bit pixels (i.e., 16 gray level). This would allow the display system to render images of more gray level (e.g., 8-bit pixels) with pixel circuits and supporting hardware for less gray level (e.g., 6-bit pixels or 4-bit pixels), and therefore reduce the space and size of the display system.
However, using this segmented quantization and spatio dithering method, even though the average luminance of the all subframe images over time is approximately equal to the target image, the subframes 400B-D may have very different luminance, as illustrated in
To solve the artifact problem in the subframe images, a spatio-temporal dithering method may be used to generate a series of subframe images for representing a target image with more even luminance distribution across all subframe images. The spatio-temporal dithering method may dither quantization errors both spatially to neighboring pixels of the same subframe image and temporally to the corresponding pixel of next subframe image of the series of subframe images. The temporally dithered quantization error of a pixel of a subframe image may be dithered to the corresponding pixel in the next subframe image of the series of subframe images in the time domain. However, these dithering methods may need an error buffer to provide temporal feedback, and therefore use more memory. To reduce the memory usage related to processes of generating subframe images, particular embodiments of the system may use a dithering mask and a barycentric coordinate system to generate the series of subframe images for representing a target image without using an error buffer.
In particular embodiments, each dot in the dithering mask may correspond to a threshold value which equals to the lowest grayscale level allowing that dot to be turned on (i.e., the lowest grayscale level whose corresponding dot pattern includes that dot). From the lowest grayscale level to the highest grayscale level, once a dot is turned on (i.e., being included in a dot pattern of a grayscale level), the dot may stay in the turn-on state for all higher grayscale levels (i.e., being included in the dot patterns of all higher grayscale levels). The spatio stacking properties of the dot patterns may allow all dot patterns to be encoded into one dithering mask. In particular embodiments, the dithering mask (e.g., 500A in
In particular embodiments, the system may use the unit cube 600 for determining the barycentric coordinate systems based on respective tetrahedrons of the unit cube 600. The unit cube 600 may have vertices each being associated with a combination of subframe identifies including zero or more subframe identifiers (e.g., the vertex 610 being associated with zero subframe indicator OFF, the vertex 611 being associated with a first subframe indicator S1, the vertex 612 being associated with a second subframe indicator S2, the vertex 613 being associated with a third subframe indicator S3, the vertex 614 being associated with an indicator for the first subframe and the second subframe S1+S2, the vertex 615 being associated with an indicator for the first subframe and the third subframe S1+S3, the vertex 616 being associated with an indicator for the second subframe and the third subframe S2+S3, the vertex 617 being associated with an indicator for the first subframe, the second subframe, and the third subframe S1+S2+S3).
In particular embodiments, the unit cube 600 may be portioned into six tetrahedrons with four of them being used as the barycentric coordinate systems for generating subframes. As an example and not by way of limitation, the four tetrahedrons that are used as the barycentric coordinate systems may include, a first tetrahedron formed by the vertices of 610, 611, 612, and 613 corresponding to the subframe identifiers of OFF, S1, S2, and S3, respectively, a second tetrahedron formed by the vertices of 611, 612, 613, and 6145 corresponding the subframe identifier of S1, S2, S3, and S1+S3, respectively, a third tetrahedron formed by the vertices of 615, 616, 612, and 614 corresponding the subframe identifiers of S1+S3, S2+S3, S2, and S1+S2, respectively, and a fourth tetrahedron formed by the vertices of 615, 616, 614, and 617 corresponding to the subframe identifiers of S1+S3, S2+S3, S1+S2, and S1+S2+S3, respectively. In particular embodiments, the system may use the tetrahedrons and associated subframe identifiers for generating subframes based on a dithering mask having a blue-noise property, as will be described in detail later in this disclosure. The reason why four of the six tetrahedrons are used as the barycentric coordinate systems may be explained by a precondition that the temporal sum of the subframes is independent of the subframe ordering. With this precondition, the other two tetrahedrons may be included by the four tetrahedrons that are used as the barycentric coordinate systems. It is notable that the subframe combinations herein are for example purpose only and the systems, methods, and processes described in this disclosure are not limited thereto. The subframe combinations may be any suitable combinations in any suitable orders. For example, the systems, methods, and processes are still applicable if one or more of the subframes (e.g., S1, S2, S3) are swapped. It is notable that the mapping relations between the subframe combinations and the vertices of the barycentric coordinate system herein are for example purpose only and are not limited thereto. The mapping relations of the subframe combinations and the vertices of the barycentric coordinate system may be any suitable mapping relations and the systems, methods, and processes as described in this disclosure are applicable.
In particular embodiments, the system may generate a number of subframes with less grayscale level bits to represent a target image with more grayscale level bits based on the barycentric coordinate systems as determined by the tetrahedrons of a unit cube. As an example and not by way of limitation, the system may generate a set of three subframes for representing a target frame. The system may use the unit cube's eight vertices to represent combination of zero or more subframe identifiers (e.g., OFF, S1, S2, S3, S1+S2, S1+S3, S2+S3, S1+S2+S3). The unit cube may be divided into six tetrahedrons four of which may be used for determining the barycentric coordinate system. For a target grayscale value (e.g., an average grayscale value of a tile region of the dithering mask size), the system may first determine which of the tetrahedrons (e.g., one of the four tetrahedrons) that the grayscale value falls in based on the threshold ranges associated with the tetrahedrons. Then, the system may determine the barycentric weights of the target grayscale value with respect to the vertices of the tetrahedron. After that, the system may determine four non-overlapping dot sets of the dither mask (e.g., a blue-noise dithering mask) corresponding to the four barycentric weight values. Then, the system may determine the dot that are to be turned on in each of the three subframes based on the four non-overlapping dot sets of the dithering mask and a set of rules for assigning dots to the subframes. As a result, the system may generate three subframes satisfying a spatial-stacking property as determined by the dithering mask and the rules for assigning dots to the subframes.
In particular embodiments, the system may first receive a target pixel value p which could be an average pixel value of a target region of a target image. The system may first determine which range the target pixel value p falls within among the four value ranges of 0≤p<⅓, ⅓≤p<½, ½≤p<⅔, and ⅔≤p≤1. Then, the system may determine an associated barycentric coordinate system corresponding to one of the four tetrahedrons based on the value range that the target pixel value falls within. Then, the system may determine the barycentric weights for the target pixel value based on the associated barycentric coordinate system corresponding to the associated tetrahedron. In particular embodiments, for the four pixel value ranges of 0≤p<⅓, ⅓≤p<½, ½≤p<⅔, and ⅔≤p≤1, the system may determine the barycentric weights for the target pixel value p based on weight vectors of [1−3p, p, p, p], [1−2p, p, 1−2p, 3p−1], [2p−1, 2p−1, 2−3p, 1−p], and [1−p, 1−p, 1−p, 3p−2], respectively. Each component of the weight vectors may correspond to a barycentric weight. The four pixel value ranges of 0≤p<⅓, ⅓≤p<½, ½≤p<⅔, and ⅔≤p≤1 may be associated with four tetrahedrons which are associated with subframe combination identifiers of [OFF, S1, S2, S3], [S1, S2, S3, S1+3], [S1+S3, S2+S3, S2, S1+S2], and [S1+S3, S2+S3, S1+S2, S1+S2+S3], respectively. The system may determine four non-overlapping dot sets of the dithering mask based on the barycentric weight values of the target pixel value and assign the dots of the non-overlapping dot sets to different subframes based on the corresponding subframe combination identifiers, as will be described later in this disclosure.
In particular embodiments, when the target pixel value p falls within the value range of 0≤p<⅓, the system may determine that the target pixel value p falls within the first tetrahedron of the four tetrahedrons of the unit cube. The system may determine the barycentric weights based on a weight vector of [1−3p, p, p, p] associated with the first tetrahedron of the unit cube. Each component of the weight vector may be used for determining a corresponding barycentric weight. The system may use a subframe identifier vector of [OFF, S1, S2, S3], which is associated with the first tetrahedron, for determining the combinations of subframes for the pixel value range of 0≤p<⅓. Each component of the subframe identifier vector may correspond to a combination of zero or more subframe identifiers. Then, the system may determine four non-overlapping dot sets of the dithering mask based on the four barycentric weights of 1−3p, p, p, and p. For example, the system may determine a first dot set A1 including dots in the dithering mask having threshold values below 1−3p, a second dot set B1 including dots in the dithering mask having threshold values in the range of [1−3p, (1−3p)+p], a third dot set C1 including dots in the dithering mask having threshold values in the range of [(1−3p)+p, (1−3p)+p+p], and a fourth dot set D1 including dots in the dithering mask having threshold values on the range of [(1−3p)+p+p, 1]. Each dot set of the four non-overlapping dot sets may include a percentage of dots of the total dots of the dithering mask corresponding to a barycentric weight value of [1−3p, p, p, p]. In particular embodiments, the system may generate three subframes based on the four non-overlapping dot sets by: (1) excluding the dots the first dot set A1 from any of the three subframes (i.e., the dots of the first dot set A1 are not turned on in any subframes and remain dark); (2) including (i.e., turning on) the dots in the second dot set B1 in the first subframe S1; (3) including (i.e., turning on) the dost in the third dot set C1 in the second subframe S2; and (4) including (i.e., turning on) the dots in the fourth dot set D1 in the third subframe S3. As a result, the three subframes may each include a unique dot set which does not share any dots with other subframes, and therefore satisfy the spatial stacking property.
As an example not by way limitation, for a target pixel value p=0.1 from a target image, the system may select the barycentric coordinate system corresponding to the first tetrahedron, which is associated with subframe identifiers of [OFF, S1, S2, S3], based on a determination that the pixel value 0.1 falls within the first tetrahedron. The system may determine, for the target pixel value p=0.1, the barycentric weight values of [0.7, 0.1, 0.1, 0.1] based on the weight vector of [1−3p, p, p, p] associated with the first tetrahedron. Then, the system may determine, using the dithering mask having a blue-noise property, four non-overlapping dot sets having 70%, 10%, 10%, and 10% of the total dots of the dithering mask, respectively. The threshold values associated with the dots in the dithering mask may be normalized into a range of [0, 1]. The first dot set may include the dots of the dithering mask having threshold values below 0.7. The second dot set may include the dots of the dithering mask having threshold values in the range of [0.7, 0.8]. The third dot set may include the dots of the dithering mask having threshold values in the range of [0.8, 0.9]. The fourth dot set may include the dots of the dithering mask having threshold values in the range of [0.9, 1]. For generating three subframes to represent the target image, the system may exclude the dots of the first dot set, which includes the dots of the dithering mask having threshold values below 0.7, from any subframes. In order words, the dots of the first dot set may be turned off and kept dark. The system may include the dots of the second dot set, which includes the dots of the dithering mask having threshold values in the range of [0.7, 0.8], in the first subframe S1. In other words, the dots of the second dot set may be turned on in the first subframe S1. The system may include the dots of the third dot set, which includes the dots in the dithering mask having threshold values in the range of [0.8, 0.9], in the second subframe S2. In other words, the dots of the third dot set may be turned on in the second subframe S2. Then, the system may include the dots of the fourth dot set, which include the dots in the dithering mask having threshold values in the range of [0.9, 1], in the second subframe S3. In other words, the dots of the fourth dot set may be turned on in the second subframe S3. As a result, the system may generate three subframes satisfying the spatial stacking property as determined by the non-overlapping dot sets and the dithering mask. The first, second, and third subframes may each include 10% dots of the total dots in the dithering mask. The dot densities (percentage of dots with respect to the total dots in the dithering mask) for representing the target pixel value in the three subframes may have a temporal average value of 0.1 matching the target pixel value 0.1.
In particular embodiments, when the target pixel value p falls within the value range of ⅓≤p<½, the system may determine that the target pixel value p falls within the second tetrahedron of the four tetrahedrons of the unit cube. The system may determine the barycentric weights based on a weight vector of [1−2p, p, 1−2p, 3p−1] which is associated with the second tetrahedron of the unit cube. Each component of the weight vector may be used to determine a corresponding barycentric weight. The system may use a subframe identifier vector of [S1, S2, S3, S1+S3], which is associated with the second tetrahedron, for determining the combinations of subframes for the pixel value range of ⅓≤p<½. Each component of the subframe identifier vector may correspond to a combination of zero or more subframe identifiers. Then, the system may determine four non-overlapping dot sets of the dithering mask based on the four barycentric weights of 1−2p, p, 1−2p, and 3p−1. For example, the system may determine a first dot set A2 including dots in the dithering mask having threshold values below 1−2p, a second dot set B2 including dots in the dithering mask having threshold values in the range of [1−2p, (1−2p)+p], a third dot set C1 including dots in the dithering mask having threshold values in the range of [(1-2p)+p, (1−2p)+p+(1−2p)], and a fourth dot set D1 including dots in the dithering mask having threshold values on the range of [(1−2p)+p+(1−2p), 1]. Each dot set of the four non-overlapping dot sets may include a percentage of dots of the total dots in the mask corresponding to a barycentric weight value of [1−2p, p, 1−2p, 3p−1]. In particular embodiments, the system may generate the three subframes based on the four non-overlapping dot sets by: (1) including (i.e., turning on) the dots the first dot set A2 in the first subframe S1; (2) including (i.e., turning on) the dots in the second dot set B2 in the second subframe S2; (3) including (i.e., turning on) the dost in the third dot set C2 in the third subframe S3; and (4) including (i.e., turning on) the dots in the fourth dot set D2 in the first and third subframe S1+S3. As a result, the three subframes may include dot sets satisfying the spatial stacking property as determined by the dithering mask.
As an example not by way limitation, for a target pixel value p=0.4 from a target image, the system may select the barycentric coordinate system corresponding to the second tetrahedron, which is associated with subframe identifiers of [S1, S2, S3, S1+S3], based on a determination that the pixel value 0.4 falls within the second tetrahedron. The system may determine, for the target pixel value p=0.4, the barycentric weight values of [0.2, 0.4, 0.2, 0.2] based on the weight vector of [1−2p, p, 1−2p, 3p−1] associated with the second tetrahedron. Then, the system may determine, using the dithering mask having a blue-noise property, four non-overlapping dot sets having 20%, 40%, 20%, and 20% of the total dots of the dithering mask, respectively. The threshold values associated with the dots in the dithering mask may be normalized into a range of [0, 1]. The first dot set may include the dots of the dithering mask having threshold values below 0.2. The second dot set may include the dots of the dithering mask having threshold values in the range of [0.2, 0.6]. The third dot set may include the dots of the dithering mask having threshold values in the range of [0.6, 0.8]. The fourth dot set may include the dots of the dithering mask having threshold values in the range of [0.8, 1]. For generating three subframes to represent the target image, the system may include the dots of the first dot set, which includes the dots of the dithering mask having threshold values below 0.2, in the first subframe S1. In order words, the dots of the first dot set may be turned on in the first subframe S1. The system may include the dots of the second dot set, which includes the dots of the dithering mask having threshold values in the range of [0.2, 0.6], in the second subframe S2. In other words, the dots of the second dot set may be turned on in the second subframe S2. The system may include the dots of the third dot set, which includes the dots in the dithering mask having threshold values in the range of [0.6, 0.8], in the third subframe S3. In other words, the dots of the third dot set may be turned on in the third subframe S3. Then, the system may include the dots of the fourth dot set, which includes the dots in the dithering mask having threshold values in the range of [0.8, 1], in the first and third subframe S1+S3. In other words, the dots of the fourth dot set may be turned on in the first and third subframes S1+S3. As a result, the system may generate three subframes satisfying the spatial stacking property as determined by the dithering mask. The first, second, and third subframe may each include 40% dots of the total dots of the dithering mask for representing the target pixel value. The temporal average of the dot densities in the three subframes (percentage of dots with respect to the total dots in the dithering mask) may equal to 0.4 matching the target pixel value 0.4.
In particular embodiments, when the target pixel value p falls within the value range of ½≤p<⅔, the system may determine that the target pixel value p falls within the third tetrahedron of the four tetrahedrons of the unit cube. The system may determine the barycentric weights based on a weight vector of [2p−1, 2p−1, 2−3p, 1] which is associated with the third tetrahedron of the unit cube. Each component of the weight vector may be used to determine a corresponding barycentric weight. The system may use a subframe identifier vector of [S1+S3, S2+S3, S2, S1+S2], which is associated with the third tetrahedron, for determining the combinations of subframes for the pixel value range of ½≤p<⅔. Each component of the subframe identifier vector may correspond to a combination of zero or more subframe identifiers. Then, the system may determine four non-overlapping dot sets of the dithering mask based on the four barycentric weights of 2p−1, 2p−1, 2−3p, and 1−p. For example, the system may determine a first dot set A3 including dots in the dithering mask having threshold values below 2p−1, a second dot set B3 including dots in the dithering mask having threshold values in the range of [2p−1, (2p−1)+(2p−1)], a third dot set C3 including dots in the dithering mask having threshold values in the range of [(2p−1)+(2p−1), (2p−1)+(2p−1)+(2−3p)], and a fourth dot set D3 including dots in the dithering mask having threshold values on the range of [(2p−1)+(2p−1)+(2−3p), 1]. Each dot set of the four non-overlapping dot sets may include a percentage of dots of the total dots in the mask corresponding to a barycentric weight value of [2p−1, 2p−1, 2−3p, 1−p]. In particular embodiments, the system may generate the three subframes based on the four non-overlapping dot sets by: (1) including (i.e., turning on) the dots the first dot set A3 in the first and third subframes S1+S3; (2) including (i.e., turning on) the dots in the second dot set B3 in the second and third subframes S2+S3; (3) including (i.e., turning on) the dost in the third dot set C3 in the second subframe S2; and (4) including (i.e., turning on) the dots in the fourth dot set D3 in the first and second subframe S1+S2. As a result, the three subframes may include dot sets satisfying the spatial stacking property as determined by the dithering mask.
As an example not by way limitation, for a target pixel value p=0.6 from a target image, the system may select the barycentric coordinate system corresponding to the third tetrahedron, which is associated with subframe identifiers of [S1+S3, S2+S3, S2, S1+S2], based on a determination that the pixel value 0.6 falls within the third tetrahedron. The system may determine, for the target pixel value p=0.6, the barycentric weight values of [0.2, 0.2, 0.2, 0.4] based on the weight vector of [2p−1, 2p−1, 2−3p, 1−p] associated with the third tetrahedron. Then, the system may determine, using the dithering mask having a blue-noise property, four non-overlapping dot sets having 20%, 20%, 20%, and 40% of the total dots of the dithering mask, respectively. The threshold values associated with the dots in the dithering mask may be normalized into a range of [0, 1]. The first dot set may include the dots of the dithering mask having threshold values below 0.2. The second dot set may include the dots of the dithering mask having threshold values in the range of [0.2, 0.4]. The third dot set may include the dots of the dithering mask having threshold values in the range of [0.4, 0.6]. The fourth dot set may include the dots of the dithering mask having threshold values in the range of [0.6, 1]. For generating the three subframes to represent the target image, the system may include the dots of the first dot set, which includes the dots of the dithering mask having threshold values below 0.2, in the first and third subframes S1+S3. In order words, the dots of the first dot set may be turned on in the first and third subframes S1+S3. The system may include the dots of the second dot set, which includes the dots of the dithering mask having threshold values in the range of [0.2, 0.4], in the second and third subframes S2+S3. In other words, the dots of the second dot set may be turned on in the second and third subframes S2+S3. The system may include the dots of the third dot set, which includes the dots in the dithering mask having threshold values in the range of [0.4, 0.6], in the second subframe S2. In other words, the dots of the third dot set may be turned on in the second subframe S2. Then, the system may include the dots of the fourth dot set, which includes the dots in the dithering mask having threshold values in the range of [0.6, 1], in the first and second subframe S1+S2. In other words, the dots of the fourth dot set may be turned on in the first and second subframes S1+S2. As a result, the system may generate three subframes satisfying the spatial stacking property as determined by the dithering mask. The first, second, and third subframe may include 60%, 80%, and 40% dots of the total dots of the dithering mask, respectively, for representing the target pixel value. The dot densities (percentage of dots with respect to the total dots in the dithering mask) in three subframes may have a temporal average equal to 0.6 matching the target pixel value 0.6.
In particular embodiments, when the target pixel value p falls within the value range of ⅔≤p≤1, the system may determine that the target pixel value p falls within the fourth tetrahedron of the four tetrahedrons of the unit cube. The system may determine the barycentric weights based on a weight vector of [1−p, 1−p, 1−p, 3p−2] which is associated with the fourth tetrahedron. Each component of the weight vector may be used to determine a barycentric weight. The system may use a subframe identifier vector of [ S1+S3, S2+S3, S1+S2, S1+S2+S3], which is associated with the fourth tetrahedron, for determining the combinations of subframes for the pixel value range of ⅔≤p≤1. Each component of the subframe identifier vector may correspond to a combination of zero or more subframe identifiers. Then, the system may determine four non-overlapping dot sets of the dithering mask based on the four barycentric weights of 1−p, 1−p, 1−p, and 3p−2. For example, the system may determine a first dot set A4 including dots in the dithering mask having threshold values below 1−p, a second dot set B4 including dots in the dithering mask having threshold values in the range of [1−p, (1−p)+(1−p)], a third dot set C4 including dots in the dithering mask having threshold values in the range of [(1−p)+(1−p), (1−p)+(1−p)+(1−p)], and a fourth dot set D4 including dots in the dithering mask having threshold values on the range of [(1-p)+(1−p)+(1−p), 1]. Each dot set of the four non-overlapping dot sets may include a percentage of dots of the total dots in the mask corresponding to a barycentric weight value of [1−p, 1−p, 1−p, 3p−2p]. In particular embodiments, the system may generate three subframes based on the four non-overlapping dot sets by: (1) including (i.e., turning on) the dots the first dot set A4 in the first and third subframes S1+S3; (2) including (i.e., turning on) the dots in the second dot set B4 in the second and third subframes S2+S3; (3) including (i.e., turning on) the dost in the third dot set C4 in the first and second subframes S1+S2; and (4) including (i.e., turning on) the dots in the fourth dot set D4 in the first, second, and third subframes S1+S2+S3. As a result, the three subframes may include dot sets satisfying the spatial stacking property as determined by the dithering mask.
As an example not by way limitation, for a target pixel value p=0.7 from a target image, the system may select the barycentric coordinate system corresponding to the fourth tetrahedron, which is associated with subframe identifiers of [ S1+S3, S2+S3, S1+S2, S1+S2+S3], based on a determination that the pixel value 0.7 falls within the fourth tetrahedron. The system may determine, for the target pixel value p=0.7, the barycentric weight values of [0.3, 0.3, 0.3, 0.1] based on the weight vector of [1−p, 1−p, 1−p, 3p−2] associated with the fourth tetrahedron. Then, the system may determine, using the dithering mask having a blue-noise property, four non-overlapping dot sets having 30%, 30%, 30%, and 10% of the total dots of the dithering mask, respectively. The threshold values associated with the dots in the dithering mask may be normalized into a range of [0, 1]. The first dot set may include the dots of the dithering mask having threshold values below 0.3. The second dot set may include the dots of the dithering mask having threshold values in the range of [0.3, 0.6]. The third dot set may include the dots of the dithering mask having threshold values in the range of [0.6, 0.9]. The fourth dot set may include the dots of the dithering mask having threshold values in the range of [0.9, 1]. For generating the three subframes to represent the target image, the system may include the dots of the first dot set, which includes the dots of the dithering mask having threshold values below 0.3, in the first and third subframes S1+S3. In order words, the dots of the first dot set may be turned on in the first and third subframes S1+S3. The system may include the dots of the second dot set, which includes the dots of the dithering mask having threshold values in the range of [0.3, 0.6], in the second and third subframes S2+S3. In other words, the dots of the second dot set may be turned on in the second and third subframes S2+S3. The system may include the dots of the third dot set, which includes the dots in the dithering mask having threshold values in the range of [0.6, 0.9], in the first and second subframes S1+S2. In other words, the dots of the third dot set may be turned on in the first and second subframe S1+S2. Then, the system may include the dots of the fourth dot set, which includes the dots in the dithering mask having threshold values in the range of [0.9, 1], in the first, second, and third subframe S1+S2+S3. In other words, the dots of the fourth dot set may be turned on in the first, second, and third subframes S1+S2+S3. As a result, the system may generate three subframes satisfying the spatial stacking property as determined by the dithering mask. The first, second, and third subframe may each include 70% dots of the total dots of the dithering mask for representing the target pixel value. The temporal average of the dot density (percentage of dots with respect to the total dots in the dithering mask) of the three subframes may equal to 0.7 matching the target pixel value 0.7.
In particular embodiments, for an image having a larger size than the dithering mask, the dithering mask may be replicated to cover the image. To determine which subframe(s) should include a given dot of the dithering mask, the system may first determine a threshold value Q associated with that dot based on a replicated dithering mask using the following equation:
Q=mask(mod(x,M)+1,mod(y,M)+1) (1)
where, x and y are position coordinates of an associated pixel of the dot, M×M is the size of the dithering mask, mod is the module operator. Since the barycentric weights of a target pixel value with respect to a barycentric coordinate system may sum to unity and the threshold values of the blue noise mask may normalized to a range of [0, 1], the system use the mask to choose the tetrahedron vertex based on the cumulative sum of the barycentric weights. In particular embodiments, the tetrahedron vertex vk may be chosen when the sum of the first k barycentric weights exceeds the threshold value Q associated with that dot as represented by the following equation:
v=vk for which Σ1kwi>Q (1)
where, vk is the selected tetrahedron vertex, w1 is the i-th barycentric weight, Q is the threshold hold value associated with that dot. The system may compare the threshold value Q to the cumulative sum of the barycentric weights of the target grayscale value with respect to the associated barycentric coordinate system. The system may select the tetrahedron vertex vk when the sum of the first k barycentric weights exceeds the threshold value Q. The tetrahedron vertex vk may be associated with zero or more subframe identifiers. The system may assign this dot to the zero or more subframes corresponding to the selected tetrahedron vertex vk.
As an example and not by way of limitation, for a target pixel value of 0.1, the system may determine barycentric weights of [0.7, 0.1, 0.1, 0.1] with respect to a barycentric coordinate system corresponding to a tetrahedron that the target pixel value falls within. The four vertices of the tetrahedron may be associated with subframe identifiers of OFF, S1, S2, and S3, respectively. Given a threshold value Q in a range of 0≤p<0.7, the system may select the first vertex v1 based on a determination that the first barycentric weight 0.7 is greater than the threshold value Q. Since the subframe identifier corresponding to the first vertex v1 is OFF, the system may not include the corresponding dot of this pixel in any subframes. Given a threshold value Q in a range of 0.7≤p<0.8, the system may select the second vertex v2 based on a determination that the sum of the first barycentric weight 0.7 and the second barycentric weight 0.1 is greater than the threshold value Q. Since the subframe identifier corresponding to the second vertex v1 is S1, the system may include the corresponding dot in the first subframe S1. Given a threshold value Q in a range of 0.8≤p<0.9, the system may select the third vertex v3 based on a determination that the sum of the first, second, and third barycentric weight (0.7+0.1+0.1=0.9) is greater than the threshold value Q. Since the subframe identifier corresponding to the third vertex v3 is S2, the system may include the corresponding dot in the second subframe S2. Given a threshold value Q in a range of 0.9≤p<1, the system may select the fourth vertex v4 based on a determination that the sum of the first, second, third, and third barycentric weights (0.7+0.1+0.1+0.1=1) is greater than the threshold value Q. Since the subframe identifier corresponding to the fourth vertex v4 is S3, the system may include the corresponding dot of this pixel in the third subframe S3.
In particular embodiments, the barycentric coordinate system may correspond to a tetrahedron of a unit cube. The vertices of the barycentric coordinate system may correspond to four vertices of the tetrahedron for representing four combinations of subframe identifiers. Each combination of subframe identifiers may include zero or more subframe identifiers. In particular embodiments, the set of non-overlapping dot patterns may be selected based on a comparison between accumulative barycentric weight values and corresponding threshold values of the dithering mask. In particular embodiments, each dot of the dithering mask may correspond to a threshold value. The threshold value associated with a dot may correspond to a smallest threshold value associated with a dot pattern including that dot. The dithering mask may have a blue-noise property and may include a number of dot patterns each satisfying the spatial stacking constraint by including all dot patterns associated with smaller threshold values.
In particular embodiments, the subframes may include three subframes. When the grayscale value p is in a range of 0≤p<⅓, the system may determine the barycentric weights using a weight vector of [1−3p, p, p, p]. The corresponding subframe identifiers may include four subframe identifiers corresponding to OFF, a first subframe S1, a second subframe S2, and a third subframe S3, respectively. In particular embodiments, the set of non-overlapping dot patterns may include a first non-overlapping dot pattern comprising dots in the dithering mask having threshold values below a first threshold of 1−3p, a second non-overlapping dot pattern comprising dots in the dithering mask having threshold values in a range of [1−3p, 1−2p], a third non-overlapping dot pattern comprising dots in the dithering mask having threshold values in a range of [1−2p, 1−p], and a fourth non-overlapping dot pattern comprising dots in the dithering mask having threshold values in a range of [1−p, 1]. In particular embodiments, the first, second and third subframes may be generated by: excluding dots in the first non-overlapping dot pattern from the first, second and third subframes, including dots in the second non-overlapping dot pattern to the first subframe S1, including dots in the third non-overlapping dot pattern to the second subframe S2, and including dots in the fourth non-overlapping dot pattern to the third subframe S3.
In particular embodiments, when the grayscale value is in a range of ⅓≤p<½, the system may determine the barycentric weights using a weight vector of [1−2p, p, 1−2p, 3p−1]. The corresponding subframe identifiers may include four subframe identifiers corresponding to a first subframe S1, a second subframe S2, a third subframe S3, and a combination of the first subframe S1 and the third subframe S3, respectively. In particular embodiments, the set of non-overlapping dot patterns may include a first non-overlapping dot pattern comprising dots in the dithering mask having threshold values below a first threshold of 1−2p, a second non-overlapping dot pattern comprising dots in the dithering mask having threshold values in a range of [1−2p, 1-p], a third non-overlapping dot pattern comprising dots in the dithering mask having threshold values in a range of [1−p, 2−3p], and a fourth non-overlapping dot pattern comprising dots in the dithering mask having threshold values in a range of [2−3p, 1]. In particular embodiments, the first, second and third subframes may be generated by: including dots in the first non-overlapping dot pattern to the first subframe S1, including dots in the second non-overlapping dot pattern to the second subframe S2, including dots in the third non-overlapping dot pattern to the third subframe S3, and including dots in the fourth non-overlapping dot pattern to the first subframe S1 and the third subframe S3.
In particular embodiments, when the grayscale value p is in a range of ½≤p<⅔, the system may determine the barycentric weights using a weight vector of [2p−1, 2p−1, 2−3p, 1−p]. The corresponding subframe identifiers may include four subframe identifiers corresponding to a first combination of a first subframe S1 and a third subframe S3, a second combination of a second subframe S2 and the third subframe S3, the second subframe S2, and a third combination of the first subframe S1 and the second subframe S2, respectively. In particular embodiments, the set of non-overlapping dot patterns may include a first non-overlapping dot pattern comprising dots on the dithering mask having threshold values below a first threshold of 2p−1, a second non-overlapping dot pattern comprising dots in the dithering mask having threshold values in a range [2p−1, 4p−2], a third non-overlapping dot pattern comprising dots in the dithering mask having threshold values in a region of [4p−2, p], and a fourth non-overlapping dot pattern comprising dots in the dithering mask having threshold values in a range of [p, 1]. In particular embodiments, the first, second and third subframes are generated by: including dots in the first non-overlapping dot pattern to the first subframe S1 and the third subframe S3, including dots in the second non-overlapping dot pattern to the second subframe S2 and the third subframe S3, including dots in the third non-overlapping dot pattern to the second subframe S2, and including dots in the fourth non-overlapping dot pattern to the first subframe S1 and the second subframe S2.
In particular embodiments, when the grayscale value p is in a range of ⅔≤p<1, the system may determine barycentric weights using a weight vector of [1−p, 1−p, 1−p, 3p−2]. The corresponding subframe identifiers may include four subframe identifiers corresponding to a first combination of a first subframe S1 and a third subframe S3, a second combination of a second subframe S2 and the third subframe S3, a third combination of the first subframe S1 and the second subframe S2, and a third combination of the first subframe S1, the second subframe S2, and the third subframe S3, respectively. In particular embodiments, the set of non-overlapping dot patterns may include a first non-overlapping dot pattern comprising dots in the dithering mask having threshold values below a first threshold of 1−p, a second non-overlapping dot pattern comprising dots in the dithering mask having threshold values in a range of [1−p, 2−2p], a third non-overlapping dot pattern comprising dots in the dithering mask having threshold values in a range of [2−2p, 3−3p], and a fourth non-overlapping dot pattern comprising dots in the dithering mask having threshold values in a range of [3−3p, 1]. In particular embodiments, the first, second and third subframes may be generated by: including dots in the first non-overlapping dot pattern to the first subframe S1 and the third subframe S3, including dots in the second non-overlapping dot pattern to the second subframe S2 and the third subframe S3, including dots in the third non-overlapping dot pattern to the first subframe S1 and the second subframe S2, and including dots in the fourth non-overlapping dot pattern to the first subframe S1, the second subframe S2, and the third subframe S3. In particular embodiments, the target grayscale value may be an average grayscale value of a target region of a target image. The target image may have a larger size than the dithering mask. The dithering mask may be replicated to cover the target image.
Particular embodiments may repeat one or more steps of the method of
This disclosure contemplates any suitable number of computer systems 800. This disclosure contemplates computer system 800 taking any suitable physical form. As example and not by way of limitation, computer system 800 may be an embedded computer system, a system-on-chip (SOC), a single-board computer system (SBC) (such as, for example, a computer-on-module (COM) or system-on-module (SOM)), a desktop computer system, a laptop or notebook computer system, an interactive kiosk, a mainframe, a mesh of computer systems, a mobile telephone, a personal digital assistant (PDA), a server, a tablet computer system, an augmented/virtual reality device, or a combination of two or more of these. Where appropriate, computer system 800 may include one or more computer systems 800; be unitary or distributed; span multiple locations; span multiple machines; span multiple data centers; or reside in a cloud, which may include one or more cloud components in one or more networks. Where appropriate, one or more computer systems 800 may perform without substantial spatial or temporal limitation one or more steps of one or more methods described or illustrated herein. As an example and not by way of limitation, one or more computer systems 800 may perform in real time or in batch mode one or more steps of one or more methods described or illustrated herein. One or more computer systems 800 may perform at different times or at different locations one or more steps of one or more methods described or illustrated herein, where appropriate.
In particular embodiments, computer system 800 includes a processor 802, memory 804, storage 806, an input/output (I/O) interface 808, a communication interface 810, and a bus 812. Although this disclosure describes and illustrates a particular computer system having a particular number of particular components in a particular arrangement, this disclosure contemplates any suitable computer system having any suitable number of any suitable components in any suitable arrangement.
In particular embodiments, processor 802 includes hardware for executing instructions, such as those making up a computer program. As an example and not by way of limitation, to execute instructions, processor 802 may retrieve (or fetch) the instructions from an internal register, an internal cache, memory 804, or storage 806; decode and execute them; and then write one or more results to an internal register, an internal cache, memory 804, or storage 806. In particular embodiments, processor 802 may include one or more internal caches for data, instructions, or addresses. This disclosure contemplates processor 802 including any suitable number of any suitable internal caches, where appropriate. As an example and not by way of limitation, processor 802 may include one or more instruction caches, one or more data caches, and one or more translation lookaside buffers (TLBs). Instructions in the instruction caches may be copies of instructions in memory 804 or storage 806, and the instruction caches may speed up retrieval of those instructions by processor 802. Data in the data caches may be copies of data in memory 804 or storage 806 for instructions executing at processor 802 to operate on; the results of previous instructions executed at processor 802 for access by subsequent instructions executing at processor 802 or for writing to memory 804 or storage 806; or other suitable data. The data caches may speed up read or write operations by processor 802. The TLBs may speed up virtual-address translation for processor 802. In particular embodiments, processor 802 may include one or more internal registers for data, instructions, or addresses. This disclosure contemplates processor 802 including any suitable number of any suitable internal registers, where appropriate. Where appropriate, processor 802 may include one or more arithmetic logic units (ALUs); be a multi-core processor; or include one or more processors 802. Although this disclosure describes and illustrates a particular processor, this disclosure contemplates any suitable processor.
In particular embodiments, memory 804 includes main memory for storing instructions for processor 802 to execute or data for processor 802 to operate on. As an example and not by way of limitation, computer system 800 may load instructions from storage 806 or another source (such as, for example, another computer system 800) to memory 804. Processor 802 may then load the instructions from memory 804 to an internal register or internal cache. To execute the instructions, processor 802 may retrieve the instructions from the internal register or internal cache and decode them. During or after execution of the instructions, processor 802 may write one or more results (which may be intermediate or final results) to the internal register or internal cache. Processor 802 may then write one or more of those results to memory 804. In particular embodiments, processor 802 executes only instructions in one or more internal registers or internal caches or in memory 804 (as opposed to storage 806 or elsewhere) and operates only on data in one or more internal registers or internal caches or in memory 804 (as opposed to storage 806 or elsewhere). One or more memory buses (which may each include an address bus and a data bus) may couple processor 802 to memory 804. Bus 812 may include one or more memory buses, as described below. In particular embodiments, one or more memory management units (MMUs) reside between processor 802 and memory 804 and facilitate accesses to memory 804 requested by processor 802. In particular embodiments, memory 804 includes random access memory (RAM). This RAM may be volatile memory, where appropriate. Where appropriate, this RAM may be dynamic RAM (DRAM) or static RAM (SRAM). Moreover, where appropriate, this RAM may be single-ported or multi-ported RAM. This disclosure contemplates any suitable RAM. Memory 804 may include one or more memories 804, where appropriate. Although this disclosure describes and illustrates particular memory, this disclosure contemplates any suitable memory.
In particular embodiments, storage 806 includes mass storage for data or instructions. As an example and not by way of limitation, storage 806 may include a hard disk drive (HDD), a floppy disk drive, flash memory, an optical disc, a magneto-optical disc, magnetic tape, or a Universal Serial Bus (USB) drive or a combination of two or more of these. Storage 806 may include removable or non-removable (or fixed) media, where appropriate. Storage 806 may be internal or external to computer system 800, where appropriate. In particular embodiments, storage 806 is non-volatile, solid-state memory. In particular embodiments, storage 806 includes read-only memory (ROM). Where appropriate, this ROM may be mask-programmed ROM, programmable ROM (PROM), erasable PROM (EPROM), electrically erasable PROM (EEPROM), electrically alterable ROM (EAROM), or flash memory or a combination of two or more of these. This disclosure contemplates mass storage 806 taking any suitable physical form. Storage 806 may include one or more storage control units facilitating communication between processor 802 and storage 806, where appropriate. Where appropriate, storage 806 may include one or more storages 806. Although this disclosure describes and illustrates particular storage, this disclosure contemplates any suitable storage.
In particular embodiments, I/O interface 808 includes hardware, software, or both, providing one or more interfaces for communication between computer system 800 and one or more I/O devices. Computer system 800 may include one or more of these I/O devices, where appropriate. One or more of these I/O devices may enable communication between a person and computer system 800. As an example and not by way of limitation, an I/O device may include a keyboard, keypad, microphone, monitor, mouse, printer, scanner, speaker, still camera, stylus, tablet, touch screen, trackball, video camera, another suitable I/O device or a combination of two or more of these. An I/O device may include one or more sensors. This disclosure contemplates any suitable I/O devices and any suitable I/O interfaces 808 for them. Where appropriate, I/O interface 808 may include one or more device or software drivers enabling processor 802 to drive one or more of these I/O devices. I/O interface 808 may include one or more I/O interfaces 808, where appropriate. Although this disclosure describes and illustrates a particular I/O interface, this disclosure contemplates any suitable I/O interface.
In particular embodiments, communication interface 810 includes hardware, software, or both providing one or more interfaces for communication (such as, for example, packet-based communication) between computer system 800 and one or more other computer systems 800 or one or more networks. As an example and not by way of limitation, communication interface 810 may include a network interface controller (NIC) or network adapter for communicating with an Ethernet or other wire-based network or a wireless NIC (WNIC) or wireless adapter for communicating with a wireless network, such as a WI-FI network. This disclosure contemplates any suitable network and any suitable communication interface 810 for it. As an example and not by way of limitation, computer system 800 may communicate with an ad hoc network, a personal area network (PAN), a local area network (LAN), a wide area network (WAN), a metropolitan area network (MAN), or one or more portions of the Internet or a combination of two or more of these. One or more portions of one or more of these networks may be wired or wireless. As an example, computer system 800 may communicate with a wireless PAN (WPAN) (such as, for example, a BLUETOOTH WPAN), a WI-FI network, a WI-MAX network, a cellular telephone network (such as, for example, a Global System for Mobile Communications (GSM) network), or other suitable wireless network or a combination of two or more of these. Computer system 800 may include any suitable communication interface 810 for any of these networks, where appropriate. Communication interface 810 may include one or more communication interfaces 810, where appropriate. Although this disclosure describes and illustrates a particular communication interface, this disclosure contemplates any suitable communication interface.
In particular embodiments, bus 812 includes hardware, software, or both coupling components of computer system 800 to each other. As an example and not by way of limitation, bus 812 may include an Accelerated Graphics Port (AGP) or other graphics bus, an Enhanced Industry Standard Architecture (EISA) bus, a front-side bus (FSB), a HYPERTRANSPORT (HT) interconnect, an Industry Standard Architecture (ISA) bus, an INFINIBAND interconnect, a low-pin-count (LPC) bus, a memory bus, a Micro Channel Architecture (MCA) bus, a Peripheral Component Interconnect (PCI) bus, a PCI-Express (PCIe) bus, a serial advanced technology attachment (SATA) bus, a Video Electronics Standards Association local (VLB) bus, or another suitable bus or a combination of two or more of these. Bus 812 may include one or more buses 812, where appropriate. Although this disclosure describes and illustrates a particular bus, this disclosure contemplates any suitable bus or interconnect.
Herein, a computer-readable non-transitory storage medium or media may include one or more semiconductor-based or other integrated circuits (ICs) (such, as for example, field-programmable gate arrays (FPGAs) or application-specific ICs (ASICs)), hard disk drives (HDDs), hybrid hard drives (HHDs), optical discs, optical disc drives (ODDs), magneto-optical discs, magneto-optical drives, floppy diskettes, floppy disk drives (FDDs), magnetic tapes, solid-state drives (SSDs), RAM-drives, SECURE DIGITAL cards or drives, any other suitable computer-readable non-transitory storage media, or any suitable combination of two or more of these, where appropriate. A computer-readable non-transitory storage medium may be volatile, non-volatile, or a combination of volatile and non-volatile, where appropriate.
Herein, “or” is inclusive and not exclusive, unless expressly indicated otherwise or indicated otherwise by context. Therefore, herein, “A or B” means “A, B, or both,” unless expressly indicated otherwise or indicated otherwise by context. Moreover, “and” is both joint and several, unless expressly indicated otherwise or indicated otherwise by context. Therefore, herein, “A and B” means “A and B, jointly or severally,” unless expressly indicated otherwise or indicated otherwise by context.
The scope of this disclosure encompasses all changes, substitutions, variations, alterations, and modifications to the example embodiments described or illustrated herein that a person having ordinary skill in the art would comprehend. The scope of this disclosure is not limited to the example embodiments described or illustrated herein. Moreover, although this disclosure describes and illustrates respective embodiments herein as including particular components, elements, feature, functions, operations, or steps, any of these embodiments may include any combination or permutation of any of the components, elements, features, functions, operations, or steps described or illustrated anywhere herein that a person having ordinary skill in the art would comprehend. Furthermore, reference in the appended claims to an apparatus or system or a component of an apparatus or system being adapted to, arranged to, capable of, configured to, enabled to, operable to, or operative to perform a particular function encompasses that apparatus, system, component, whether or not it or that particular function is activated, turned on, or unlocked, as long as that apparatus, system, or component is so adapted, arranged, capable, configured, enabled, operable, or operative. Additionally, although this disclosure describes or illustrates particular embodiments as providing particular advantages, particular embodiments may provide none, some, or all of these advantages.
This application is a continuation under 35 U.S.C. § 120 of U.S. patent application Ser. No. 16/689,684, filed 20 Nov. 2019, which is incorporated herein by reference.
Number | Name | Date | Kind |
---|---|---|---|
6243055 | Fergason | Jun 2001 | B1 |
20030184809 | Clouthier | Oct 2003 | A1 |
20040189679 | Ito | Sep 2004 | A1 |
20050190610 | Furukawa | Sep 2005 | A1 |
20060256355 | Karito | Nov 2006 | A1 |
20070263257 | Pai | Nov 2007 | A1 |
20150371123 | Kodama | Dec 2015 | A1 |
20190171856 | Sharma | Jun 2019 | A1 |
Number | Date | Country | |
---|---|---|---|
20210343220 A1 | Nov 2021 | US |
Number | Date | Country | |
---|---|---|---|
Parent | 16689684 | Nov 2019 | US |
Child | 17337192 | US |