Patent attributes
An artificial-reality device has a display with a plurality of pixels. In a calibration mode, the device determines gray-level values for the pixels using a uniform test image. Each pixel has a luminance level proportional to its gray-level value. The device groups the pixels into segments according to the luminance levels. For each of the segments, the device computes an overall luminance level and a luminance target according to the determined gray-level values. When the overall luminance level is below the luminance target for the segment, the device calculates calibration data, which either (i) increases the gray-level of each pixel in the segment by a specified amount or (ii) selects a gamma band for the segment corresponding to a difference between the luminance target and the overall luminance level. The device stores the calibration data. The device is configured to use the stored calibration data in subsequent display of images.