Reconstruction of a sampled image

$12.66

A
$12.66

  • 0
  • 0
  • 0
A street portrait

A
A street portrait

  • 0
  • 0
  • 83
A street portrait

A
A street portrait

  • 1
  • 1
  • 74
img746.jpg

img746.jpg

  • 4
  • 0
  • 74
No Hall

No Hall

  • 1
  • 2
  • 73

Recent Classifieds

Forum statistics

Threads
198,794
Messages
2,780,922
Members
99,705
Latest member
Hey_You
Recent bookmarks
0

alanrockwood

Member
Joined
Oct 11, 2006
Messages
2,185
Format
Multi Format
Is there any software out there that takes a sampled image (e.g. from a Bayer sensor or a Foveon sensor, or whatever) and applies a proper signal reconstruction filter to it to do the best possible reconstruction of the image?

It's easiest to talk about this in one dimension. It's well-known that a signal sampled at a rate higher than twice the frequency of the signal allows one to do an error-free reconstruction of the original signal. This implies that there can be no signal components above this critical frequency. If the signal is more than twice the sampling rate then you can't reconstruct the original signal without the benefit of some kind of additional information. What happens is that the sampled signal is aliased, that is it appears as if it were a lower frequency signal.

What is less known by the general public (though it is known to experts in signal processing) is that you can't just take the sampled signal as a good representation of the analog signal. If the signal frequency is relatively low compared to the sampling frequency this can work pretty well, but if the signal frequency is close to the Nyquist limit, though still within the Nyquist limit, then the sampled points cannot be taken directly as a good representation of the original signal. In fact, it looks very much like an aliased signal.

The key fact here is that, as mentioned above, you can't just take the sampled points as giving a good representation of the original analog signal. (Forgive me if I am repeating myself.) To do a proper reconstruction of the original signal you need to apply a reconstruction filter. An if you want to give a perfect reconstruction of the original signal the reconstructed signal must be a continuous function, i.e. not represented by a finite number of points. However, if you want to give an accurate reconstruction using a finite number of points you need to use more points than the number of points with which you sampled the original signal. I believe that as a rule of thumb you would need twice the number of points that were sampled, but don't quote me on that as being a rigorous result. However, for sake of discussion let's just assume that the suggested rule of thumb is correct. The analogous rule of thumb for a two dimensional signal, i.e. and image, would be four times as many points as the number of points you sampled.

This long introduction brings me to the question: Is there any software out there that applies a proper reconstruction filter to a sampled image? The output of the software would be a re-sampled function of four times as many points, assuming my rule of thumb is correct, but in any case, it will be some multiple of the originally sampled number of points. For example, a 10 megapixel image as it comes out of the camera might be reconstructed as a forty megapixel image.

Note, I am not trying to beat the Nyquist limit here. I am only trying to get the maximum amount of information available within the constraints of the Nyquist limit. This could allow the reconstruction of finer details than would be evident if we simply took the original sampling points as the image.

I am including an image of two signals sampled at sampling frequency of 100 (arbitrary units). In one figure the signal frequency is just barely within the Nyquist limit (frequency = 49 arbitrary units), and in the other figure the signal is just barely above the Nyquist limit (frequency = 51 arbitrary units). The two sampled signals are identical. The underlying signal is a simple cosine function, so the beat pattern you see tells us that the signal "reconstruction" is not error free. The reason is that we have taken the sampled points themselves as if they were the reconstruction rather than applying a proper reconstruction filter to the sampled results.
 

Attachments

  • signal just over the nyquist limit.jpg
    signal just over the nyquist limit.jpg
    563.9 KB · Views: 80
  • signal just under the nyquist limit.jpg
    signal just under the nyquist limit.jpg
    564.5 KB · Views: 72
Joined
Jan 31, 2020
Messages
1,287
Location
Germany
Format
Multi Format
Have you looked into what upscaling algorithms like Photoshop's Super Resolution, ye olde Genuine Fractals (was it called that?) etc. do? And the smarter de-mosaicing algorithms? I really don't know but suspect these are the closest things to what you're looking for. Of course the analogy you make only goes so far because in photography we rarely deal with periodic signals.
 
OP
OP

alanrockwood

Member
Joined
Oct 11, 2006
Messages
2,185
Format
Multi Format
Have you looked into what upscaling algorithms like Photoshop's Super Resolution, ye olde Genuine Fractals (was it called that?) etc. do? And the smarter de-mosaicing algorithms? I really don't know but suspect these are the closest things to what you're looking for. Of course the analogy you make only goes so far because in photography we rarely deal with periodic signals.
I haven't looked seriously at those. I did read a little bit about Photoshop's Super Resolution. Based on what I read I don't think it does what I have in mind.
 

grat

Member
Joined
May 8, 2020
Messages
2,044
Location
Gainesville, FL
Format
Multi Format
When the Canon 90D came out, it got slammed a fair amount (by pixel-peeping pinheads) for sensor noise and "meh" images-- but the problem was that everyone, to be "fair", was using Adobe RAW converter, instead of Canon's DPP 4 software.

Given that the sensor density on the 90D means it should be running into diffraction effects starting at about f/8 on the red channel, and yet doesn't, I'm suspecting there's some pretty sophisticated algorithms in use by Canon. DPP 4 does a significantly better job of converting 90D RAW files than Adobe or other third party tools.

That's not exactly an answer to your question-- it's not generic, and it may or may not be using the kind of sampling technique you're referring to. But it is an example of a manufacturer doing some rather impressive reconstruction to overcome limits of the sensor.
 
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:



Ilford ADOX Freestyle Photographic Stearman Press Weldon Color Lab Blue Moon Camera & Machine
Top Bottom