摘要 |
Blurred image data is sharpened by converting three channels of RGB data into a single channel of intensity data, processing the intensity data to generate integral image data, applying a variable size filter to the integral image data to generate box-filtered data, calculating a gain factor for each pixel position in dependence upon the box-filtered data, the intensity data and the size of the filter used for that pixel position, and multiplying the original RGB data of each pixel by the gain factor for that pixel to generate sharpened RGB data. The size of the filter is selected at each pixel position in dependence upon an estimate of the local amount of blur. In this way, as the amount of blur changes, the filter size changes appropriately. By processing the integral image data to generate box-filtered data, a constant number of processing operations are required for image sharpening irrespective of the size of filter that is used.
|