主权项 |
1. A digital image processing method for restoring and recovering highlight detail in a digital image frame divided into pixels holding color pixel component values, comprising the steps of
selecting a first pixel, calculating the luminance value of the selected first pixel, finding the minimum color component of the selected first pixel, defining a pixel window around the selected first pixel, calculating the weighted average luminance value within the window, calculating the recovery ratio between the minimum color component of the selected first pixel and the luminance value of the selected first pixel, calculating the local luminance difference between the luminance value of the selected first pixel and the weighted average luminance value within the window, calculating the blending ratio as a function of the absolute luminance value, calculating a pixel component value based on selected first pixel and the recovery ratio and the local luminance difference and the blending ratio, and assigning the calculated pixel component value to the selected first pixel. |