I'd like some way to estimate the modulation transfer function in images. This is the observed drop in amplitude vs increase in frequency of spatial details - nice illustration here:
In my case, I have a large collection of digital images of the same kind of thing; not literally the same object, but a fairly uniform set of objects with consistent overall properties (eg amount of spatial detail). The imaging system is also exactly the same, but (because this is a fairly challening setup) the image quality varies considerably from image to image. One of the ways in which it varies is that some parts of some images are seriously out of focus. These are large images, around 10MP, and there is a lot of them (tens of thousands) so the statistical properties over the whole set can be determined with some confidence. I think the typical image can resolve spatial detail on the scale of a couple of pixels (let's say 2-3 times the pixel pitch) but in some examples it looks like what it would look like if that area had a gaussian blur with radius ~10 pixels. The images contain some sharp edges (features which are expected to be a fairly sharp edge in reality - they don't always look very sharp in the images) but no particular area is guaranteed to have an edge.
I'd like to be able to calculate an approximation to the real modulation transfer function just from the real images (or parts of images), without having something like a test chart in the image. I think the consistency of the image statistics should make that possible in principle, but I'm not sure how to approach it.
How can this be done?