Re: Scientifically Based Presharpening for Enlargement



-------------------------------------------------
1. If the main point of the page is implementing a method from a paper,
include a one-paragraph summary of that method in your web page. I'll
use that summary to decide whether I want to read the full paper, and it
will also serve as a substitute if the site with the full paper is
temporarily down."
-------------------------------------------------
I said "loosely based." In fact, the paper has an error that I corrected
and my derivation is very different.

-------------------------------------------------
2. As someone else pointed out, your examples are horrible. The
discussion talks about how images from a sensor are not point sampled,
they are effectively convolved with a small box (the area of a sensel)
before being measured. So show us an example of an image that is either
*direct from a sensor, with no processing applied*, or at least a
simulation of such an image. (For example, you could take a much higher
resolution image and convolve/downsample it to get your example).
-------------------------------------------------
Why do you assume it is not such a simulation? In fact it is.

-------------------------------------------------
What you have on the page at the moment shows really horrendous sharpening
artifacts (halos) as well as compression artifacts that completely
overwhelm the small difference between the two cases that you are trying
to show. Your starting images should be uncompressed and unsharpened.
-------------------------------------------------
There are no compression artifacts in the input images because PNG uses
lossless compression. The differences are obvious to my eyes. If you
don't see the differences you don't need presharpening.

-------------------------------------------------
Also, if the "data dependent Lanczos" filter is what's responsible for the
weird wave-like textures in the road surface at the bottom of the
image, don't use this filter! Adding artifacts that weren't there in the
original is generally a bad idea, and especially bad in something
that's supposed to be an example. Why not use bicubic polynomial
interpolation, which (a) is familiar to many people, and (b) doesn't
create such artifacts. Yes, it doesn't preserve high frequencies as well
as Lanczos, but you should still be able to see the difference
between the images with and without presharpening applied, and that's the
point of the example.
-------------------------------------------------
a. I provided the input images so people could test them with their
favorite enlargement method.

b. That "weird wave-like texture" is less offensive to the eyes than the
jagged edges you will get with bicubic and the halos will be similar with
both. Providing an exotic example without jagged edges illustrates the
versatility of the method.

-------------------------------------------------
3. You might address why the sharpening should be a preprocessing step. If
the sharpening is a linear filter, and interpolation is a linear
filter (and most popular interpolation methods are linear) then it should
not matter what order you perform them in - as long as you deal
with the change in magnification for the sharpening step. You might even
find a way to merge the sharpening into the interpolation.
On the other hand, if the interpolation filter is actually nonlinear, then
that's a reason why the sharpening needs to be a preprocess.
Dave
-------------------------------------------------
Although convolution is linear and commutative, linear operations are not
generally commutative. And, my Data Dependent Lanczos enlargement method
is not linear. An advantage of presharpening too obvious to mention is
that a smaller image can be sharpened more quickly than after enlargement.




.



Relevant Pages

  • Re: source code for interpolation (linear, cubic) in 3D
    ... explains interpolation (with 3D images) and also has some java or C++ ... linear and cubic would suffice. ...
    (comp.graphics.algorithms)
  • Re: Is this over sharpened?
    ... As John doesn't want to participate, here's the *only* relevant example on Focus Magic's page - it's the top set of images: ... Note that they happily admit that they have used inappropriate USM settings... ... So far all you've done in this sharpening thread is attempt to badger those who do work with advanced sharpening routines into revealing to you - the one making a fool out of yourself - where to go for 'examples' or explain how it works. ... I don't have a problem with you learning from the Internet and then trying to make out you are an expert but please try to make sure what you learn is today's technology, not fossilised stuff 'real' photographer's abandoned years ago. ...
    (rec.photo.digital)
  • Re: Newbie help: Canon EOS 350D vs. Nikon D70s
    ... I simply couldn't get sharp images from it, ... I did a comparison between the Canon 24-105L, with a much cheaper Nikon ... with the same sharpening. ...
    (rec.photo.digital)
  • Re: Is camera response needed for HDR based upon multiple exposures ?
    ... In many papers it is suggested to recover first the non linear ... different exposures. ... mixing of the images is carried out in that domain. ... maximizes signal to noise ratio under the assumption of an additive ...
    (sci.image.processing)
  • Re: Disturbing trend with some DSLRs
    ... far as to sneakily sharpen their "RAW" images in the camera, ... It's called capture sharpening, as few cameras, afaik, sharpen RAW images. ...
    (rec.photo.digital.slr-systems)