主权项 |
1. A method for implementing image processing operations that use an estimation of an amount of blur caused in images by lens defocus by one or more computing devices, the method comprising:
determining, for one or more pixels of an image, frequency responses that indicate a response of the pixels around a given pixel to spatial frequencies that are useable to analyze an image for the blur, the frequency responses determined according to a function that takes a selected spatial frequency set as input, and the spatial frequencies in the set that are selected as the input having frequency magnitudes from a set of discrete values; computing, for the pixels and based on the frequency responses, probabilities that the pixel is blurred with blur disc radii that correspond to different amount of blur caused in an image by the lens defocus; choosing, for the pixels, the blur disc radii that is determined most likely to have blurred the pixel based in part on the probabilities, the choosing effective to estimate the amount of blur caused by lens defocus for the pixels of the image; and generating estimated blur amount data for the pixels according to the blur disc radii chosen, the estimated blur amount data being used to implement one or more of the image processing operations. |