Confusion about line pairs per millimeter

  • Context: Undergrad 
  • Thread starter Thread starter klasdfjllgr
  • Start date Start date
  • Tags Tags
    Optics Resolution
Click For Summary

Discussion Overview

The discussion revolves around the relationship between pixel size and the measurement of resolution in terms of lines per millimeter and line pairs per millimeter. Participants explore concepts related to sensor resolution, Nyquist frequency, and modulation transfer functions, with a focus on understanding discrepancies in interpretations of these measurements.

Discussion Character

  • Technical explanation
  • Debate/contested
  • Mathematical reasoning

Main Points Raised

  • One participant describes a sensor with square pixels and proposes that the thinnest line that can be captured corresponds to a frequency of 1/p lines per millimeter and 1/2p line pairs per millimeter, assuming perfect conditions.
  • The same participant expresses confusion regarding a source that states the spatial Nyquist rate is 1/2p, questioning how this relates to their own calculations of lines per millimeter.
  • Another participant introduces the concept of the contrast transfer function, suggesting that a line pair corresponds to a period of a square wave, which may clarify the discrepancy.
  • A different participant discusses the resolution of sinusoidal patterns, asserting that the smallest period resolvable is 2 pixels wide, leading to a frequency of 1/2p line pairs per millimeter.
  • One participant highlights the distinction between continuous and sampled detectors, suggesting that the original interpretation may be overly simplistic and that the example represents a highly undersampled image.
  • A later reply acknowledges a misunderstanding regarding the Nyquist frequency, indicating that it represents the last frequency at which a pattern cannot be resolved accurately.

Areas of Agreement / Disagreement

Participants express differing interpretations of the relationship between pixel size and resolution measurements, with no consensus reached on the correct understanding of Nyquist frequency and its implications for line pairs per millimeter versus lines per millimeter.

Contextual Notes

Participants mention various sources and definitions, indicating potential limitations in understanding due to differing contexts of modulation transfer functions and the nature of the patterns being analyzed. The discussion reflects a reliance on specific assumptions about ideal conditions and the nature of the signals involved.

klasdfjllgr
Messages
3
Reaction score
0
TL;DR
I don't understand why a spatial frequency like 1/pixel_width gives line pairs per millimeter rather than lines per millimeter.
Hello,

I'm having some difficulties in getting my head around the relationship between pixel size and lines/mm or line pairs/mm.

My thinking is the following: I'm assuming we have a sensor with square pixels of side length p (given in mm) and we have a line pattern, so a pattern with white and black lines of equal width (eg a Ronchi ruling). In the ideal case, where our pixels are exactly aligned with the lines, we can capture one line per pixel. So the thinnest line that we can capture has width p. That corresponds to a frequency of 1/p lines per millimeter or 1/2p line pairs per millimeter. If the lines are offset by eg half a pixel then there's aliasing and we can't accurately resolve the pattern. So the best resolution we can reliably get is at the Nyquist frequency of 1/2p lines per millimeter or 1/4p line pairs per millimeter. I'm assuming a perfect lens, a perfect sensor and no diffraction.

To me that sounds like it would make sense. But it doesn't seem to square with some of the things that I read online.
  • For example, on page 3 of https://isl.stanford.edu/~abbas/ee392b/lect09.pdf it says: "Assuming a square pixel with width (pitch) p, the spatial Nyquist rate in each dimension is 𝑓_𝑁𝑦𝑞𝑢𝑖𝑠𝑡 = 1/2𝑝 and is typically reported in line pairs per millimeter (lp/mm)". To me that sounds like 1/2𝑝 gives line pairs per millimeter when in my logic it gives lines per millimeter.
  • Another example is the MTF of an ideal sensor. According to eg https://www.opto-e.com/media/docs/Resources/metrology-white-paper.pdf the MTF of an ideal sensor is given by |sinc(w)|, which is the Fourier transform of a rectangular 'pixel' signal. On page 5 it says that the cutoff frequency is 1/p. They give an example where a 5um pixel results in a cutoff frequency of 200 line pairs per millimeter. In my logic 1 / 0.005 results 200 lines per millimeter (so 100 line pairs per mm).
Can somebody please explain to me where I'm going wrong? My logic seems to be off by a factor 2 and I can't figure out why.

Thanks for your help!
 
Science news on Phys.org
klasdfjllgr said:
[...]
Can somebody please explain to me where I'm going wrong? My logic seems to be off by a factor 2 and I can't figure out why.
Since the modulation transfer function is defined for sinusoids but targets are difficult to manufacture, the alternative 'contrast transfer function', defined for square waves, is more commonly used. In this context, a line pair corresponds to a period of the square wave similar to the use of cycles/mm for the MTF.

Does that help?
 
  • Informative
Likes   Reactions: berkeman
Hey, thanks for your reply!

I'm sorry but I don't really understand the point you're making. Would you be able to elaborate?

I used the line pattern in my question but we can use a sinusoidal pattern instead. The smallest period of the sinusoidal pattern that our sensor can resolve is 2 pixels wide (when the peak is roughly on one pixel and the trough is roughly on the adjacent pixel). So the period, which corresponds to a line pair, is 2p. This corresponds to a wave frequency of 1/2p. So we get 1/2p line pairs per mm. The Nyquist frequency is then 1/4p lp/mm. Those are the same numbers as I got for the line pattern (which is different to the two examples). Here's a little drawing ...

Screenshot_20250417_165949_Samsung Notes.jpg
 
Something you need to keep in mind is the difference between a continuous detector and a sampled detector- you are thinking about the extreme case, where the difference between a linear shift-invariant system and your system is a maximum. I would characterize your example as a highly undersampled image.

How about this- a line pair is the 0th-order approximation to a sinusoid (shift your '1 period' bracket half a bar).
 
  • Like
Likes   Reactions: sophiecentaur
So I made a mistake in how I interpreted the Nyquist frequency because I wrongly assumed that I can accurately resolve a pattern at the Nyquist frequency of 1/2p when that frequency is really the last frequency where I can't resolve the pattern.

Thanks for your help!
 

Similar threads

Replies
5
Views
16K
Replies
3
Views
7K