主权项 |
1. An image converting method for a display device, comprising:
calculating, by a computing module of the display device, a plurality of segment averages of pixel values in a plurality segments of an input image of a low dynamic range of luminance; acquiring, by the computing module of the display device, the maximum among the plurality of segment averages as a first threshold; calculating, by the computing module of the display device, a plurality of local averages of pixel values in adjacent segments of the input image; acquiring, by the computing module of the display device, the maximum among the plurality of local averages as a second threshold; counting, by the computing module of the display device, the number of pixel values exceeding the first threshold in the plurality of segments as a plurality of first pixel counts and counting the number of pixel values exceeding the second threshold in the plurality of segments as a plurality of second pixel counts; generating, by the computing module of the display device, a specular map and a confidence according to the plurality of first pixel counts and the plurality of second pixel counts; mapping, by the computing module of the display device, the input image according to the specular map, to generate an intermediate image of a high dynamic range of luminance; blending, by the computing module of the display device, the input image and the intermediate image according to the confidence, to generate an output image, wherein the ratio between the input image and the intermediate image is determined by the confidence, and displaying, by the display device, the output image. |