alanrockwood
Member
- Joined
- Oct 11, 2006
- Messages
- 2,184
- Format
- Multi Format
Oops, my post above go mangled by repeating a quote and repeating part of my response, but hopefully it's not mangled so much as to be impossible to follow.
No, the Nyquist limit is 2X the frequency of the signal. That is the mathematical definition of the Nyquist limit. The However, the sampling rate was 2.2X the nyquist limit of this signal, i.e. it is sampled at greater than the Nyquist limit, so it satisfies the Nyquist sampling theorem.I think the other thing that's bugging me is that your example is not taking into account the effects of an imaging detector on the amplitude of the signal. The fourier transform of a rect function is a sinc function. So, mathematically, you're dropping off the effect that the detector is having on the magnitude of the original pattern. This is a real effect and cannot be ignored like it can (?) for 1-D electronic or audio signals with simple-to-implement downstream filtering.
According to your example, with a Nyquist sampling frequency of 2.2x the original sinusoidal, the maximum amplitude of the sampled signal will only be 9% of the original. In a real signal, this contrast is barely detectable by the human eye (threshold of detection is either 10% or 5% depending on who you're talking to). To achieve higher contrast, Nyquist is moved farther out relative to the maximum input bandwidth but your reconstruction of the original frequency gets more accurate, so... You can see this effect in a Moire aka "starburst" pattern.
No, the Nyquist limit is 2X the frequency of the signal. That is the mathematical definition of the Nyquist limit. The However, the sampling rate was 2.2X the frequency of the signal, i.e. it is sampled at greater than the Nyquist limit, so it satisfies the Nyquist sampling theorem.
Regarding the detector response, it is not a sync function. The sync function (sin(x)/x) has both positive and negative values. Neither film nor a digital detector can give a negative response to light. The detector responds as the magnitude (i.e. an absolute value) which has no negative values.
I have also not taken into account that a digital imaging detector is not a point sampling device. Each pixel location in the sensor is an area sampling device, which will tend to smooth out some of the effects to some degree, but the effects do not disappear.So yeah I was off by 2x. So the output signal magnitude is only 30% of the original. In any case, my point still stands that the real effect is not as accurately reflected in your example.
In addition, you also have to account for the additional contrast-reducing effect of a real optical MTF. This sort of depends on the cutoff frequency of the optics relative to the detector but in practice you see an additional 10-20% reduction in the contrast. So for a real system, the output contrast (because we're talking about an imaging system so lets use the correct terms) is 25%-28% of the magnitude of original sampled scene.
I had a go at it pictorially. However it took longer than I intended!In the interest of collegial discussion let me strongly encourage you to do your own calculation: sample a simple sinusoid at a rate slightly greater than the Nyquist limit, i.e. slightly greater than 2F. When you plot the results I guarantee that you will see a beat pattern.
I had a go at it pictorially. However it took longer than I intended!
Yes I agree that the first function in Alan's #1 post is a RECT() . Cos() ( 1D spatial or time)
To sample it properly would require knowledge of the highest harmonics in that function, not just the Cos().
The sample with green dots in the second plot, is way undersampled, i think, for that function.
I made a 2D equivalent consisting of (4) wavy vertical bars amplitude from peak to zero,
on a pitch of approximately 1/8 of the fundamental .
Then sampling at 1/4000th or a Nyquist of 1/2000th, converted to Fourier.
I can see harmonic content of the function out to about 1300 but presently have no way to measure them.
Here is the reconstituted image with all harmonics
https://app.box.com/s/vm6fqfavk3jr1cmx7ihldan7qkw5fwaf
Then applied a rectangular lo pass filter
This one is passing up to 16th harmonic
https://app.box.com/s/6oclf96ov1m7opg95sjicq4ynlpd0vz4
This one is passing up to 8 harmonics.
https://app.box.com/s/582n8lxy6ckknjtrxg9u2vy7wu8oodxg
8 harmonics is not sufficient to show the wavy bars, but the RECT platform is just there albeit with ramped flanks.
Wombat,"There are no harmonics in the first graph in my first post. "
It has extensive harmonics becuse it is a rectangular window of 5 periods.
I took liberty to add "zero hold" to your green dots to more closely represent the output from a scanner etc.
https://app.box.com/s/c0vifqhv29m3qhtuagmzfiti85jptjcr
Then ran that into fftw via a front end that takes ASCII files.
Here is the Fourier transform (Amplitude * 500 I think)
https://app.box.com/s/11tydc42l1rsmqacjp8bcnwzvkair4mu
If it is like a continuous radio carrier , then there are finite harmonics.
It was too difficult to extend your 5 cycles to a large number, but I did a similar waveform as a function and verified that
in a window containing 50 cycles, the wanted signal (4 Hz) and the sampler (9 Hz) dominate as diracs.
No, not quite my main point, though we might be slowly converging toward a meeting of the minds.Hi Alan,
Your main drift seems to be:
We can not re build a scanned window,
sampled at 2.2 times the highest wanted frequency in it.
We can re-build an infinitely long train like audio on a radio frequency carrier,
sampled at 2.2 times the highest wanted frequency in it, provided the correct filters are used.
Is that your point?
If so I would agree.
Photrio.com contains affiliate links to products. We may receive a commission for purchases made through these links. To read our full affiliate disclosure statement please click Here. |
PHOTRIO PARTNERS EQUALLY FUNDING OUR COMMUNITY: ![]() |