News for hackers. Stuff that matters.
Re:Understanding Image Sharpness (2003) by brudgers on Sunday May 20, 2018 @01:50PM (#17113929)
+ My understanding of the way the Nyquist limit plays out in digital photography is that it guarantees no moire. If moire isn't an issue in a scene then it is possible, but not guaranteed to get higher resolution (that of the individual pixel). Of course resolution and sharpness are not exactly the same thing...that's why a 16 mega pixels is a resolution not a sharpness and why a lot of studio photography uses cameras without anti-aliasing filters (e.g. medium format digital). In the studio, conditions can be set up to avoid moire in ways that aren't practical for sports or wedding photography. Similarly, moire isn't going to be a problem with astro-photography and some subjects in landscape photography.

+ For what it's worth, ringing artifacts are often caused by diffraction or lens aberrations rather than aliasing from sampling frequency (though they can be).

+ The shape of the modulation transfer function (MTF) is different between film and digital. The line pair comparison in the article illustrates it without being explicit. The Nyquist limit means that sharpness falls off a cliff in digital images and the example line pairs go from resolved to gray abruptly. The example line pairs for film fade to gray, what is and isn't sharp is determined by observation rather than an equation. Digital images often appear sharper because they are only ever so sharp and film appears softer because it is kinda sorta sharp beyond the point where it is clearly sharp. It's why film has a different look...or is a different artistic medium than digital when it comes to some forms of expression.

Re:Understanding Image Sharpness (2003) by burfog on Sunday May 20, 2018 @03:10PM (#17114293)
Getting close to the Nyquist limit is unsafe. The limit is theoretical; it applies only to an infinitely repeating signal. You'd have to create and then observe an infinite signal for the Nyquist limit to be correct, but of course you can't do this.

That would be 2 samples for each feature detail you want. Things work OK in the real world at about 4 or 5 samples, but it takes 10 or 12 samples to work pretty well.

Re:Understanding Image Sharpness (2003) by jimduk on Sunday May 20, 2018 @03:49PM (#17114445)
I'm doing some amateur work on sub pixel matching at the block-level for stereo, currently using cheap APS-C prime lens commercial cameras ( Ricoh GR) and my background is maths not cameras, but what I've observed (all in RAW) is

a) Real world scenes often go below the Nyquist limit ( e.g pattern from a brick wall at sufficient distance)

b)In a camera without a low-pass filter (e.g. the Ricoh GR) in practice you don't see Moire but you can definitely generate it artificially off real world objects

c) The Point Spread function seems quite important (e.g a 1-pixel scene feature for the GR will have half the effect on the sensor as a 2-pixel function because of the point spread)

d) I'm a bit confused as why Fourier/ DCT all work as well as they do, as the Nyquist assumption for a modern digital camera seems incorrect, but on the whole sub-pixel matching in a Fourier space (while Nyquist assumption is not true) seems roughly on par with matching in the spatial domain - I would love to see something that explains why this is so

Happy to discuss this more as I am still learning

Re:Understanding Image Sharpness (2003) by brudgers on Sunday May 20, 2018 @05:03PM (#17114708)
Manual of Photography might be worth reading.
Re:Understanding Image Sharpness (2003) by jimduk on Sunday May 20, 2018 @05:52PM (#17114959)
Thanks for the pointer - I've just skimmed the last 2 chapters and looks like a good book but don't think it solves my specific problem (just to give more context, when I said amateur I'm doing this for fun not money, but have previously built an image processing pipeline from raw sensor output and I get the basics of wavelets, Fourier etc )

My specific question is "If I am matching a RAW stereo block (say 8x8 or 16x16 block), for sub-pixel resolution matching from two similar cameras, why (if at all) is it better to use DCT/Fourier matching e.g. matlab normxcorr2 or the elphel guys https://blog.elphel.com/2018/01/complex-lapped-transform-bay... , rather than try to match in the spatial domain (linear algebra). On writing this I suppose I better look at the H.264 and HEVC algos and see if they work in the frequency or spatial domain when they are looking at sub-pixel matches.

Re:Understanding Image Sharpness (2003) by brudgers on Sunday May 20, 2018 @05:01PM (#17114704)
Sorry for not being clear. When the signal does not repeat, the Nyquist limit isn't a factor because there is no possibility of moire. That's where the difference between sharpness and resolution comes from...single points don't have frequencies. Between the Nyquist limit and the sensor resolution, there are no guarantees about how or whether a feature will or won't resolve and the photographer has to use their judgment relative to the image's purpose. An anti-alias filter takes the necessity of such decision off-the photographer's plate in exchange for limiting the absolute possibilities.

Astro-photography is an illustrative example. Celestial objects don't appear in night sky scenes with a regular frequency. So there is no need for an anti-aliasing filter. It just lowers point resolution without any benefit. So cameras for astro-photography often lack AA filters.

Re:Understanding Image Sharpness (2003) by burfog on Tuesday May 22, 2018 @12:41AM (#17123761)
The limit remains a factor for non-repeating signals. You get speckle. It shows up in natural scenes like leaves against the sky, fur, grass, sand, etc.