Re: interpolation for a color image?



On May 26, 4:28 pm, da...@xxxxxxxxx (Dave Martindale) wrote:
Harris <xgeorg...@xxxxxxxxxxxxx> writes:
...

The problem I see with this is that you're effectively calculating the
higher-resolution image by recombining a luminance/intensity image
that was obtained by linear interpolation and colour information that
was upsampled by nearest-neighbour.  The latter is a terrible upsampling
method that doesn't actually interpolate anything.

But if the two pixels have the same intensity but different colour,
there will be an abrupt colour change half-way along a line between the
two original pixel locations.  So the colour component of the image will
have some nasty artifacts in it.

Now, you can argue that under certain viewing conditions, your eye's
colour resolution is bad enough that you can't see the colour artifacts,
so they don't matter.  True.  But you will get an image that looks
significantly worse up-close than interpolating in all 3 components
(whether that's in RGB or YCbCr).


In Harris's defense, it won't look "terrible" or "significantly worse"
but just bad enough to negate the advantage of the computation savings
which are much smaller than he imagines. The eye is relatively
insensitive to inaccuracies in the Cb and Cr channels and that is why
they are compressed more than Y in JPEG. I have used schemes similar
to Harris's for Xin Li (NEDI) enlargement. In NEDI, counterparts to
bilinear weights are calculated Wiener style which is very time
consuming. I calculate the weights based only on the Y channel and
apply them to all three channels, Y, Cb, Cr. It is good enough
considering the ~2/3 time savings. However, my default weights for
homogeneous Y are bilinear and not nearest neighbor as in Harris's
case.
.



Relevant Pages

  • Re: Evaluating derivatives by going to Fourier space
    ... If you use Chebyshev nodes, then you can actually get exponential ... weights to have an extreme range of values that can easily exceed the ... For example do a barycentric form of Lagrangian interpolation and look ... With each iteration my Lanczos vector increases in magnitude, and this modified version of the Lanczos algorithm has no stated remedy to this problem. ...
    (comp.dsp)
  • Re: Evaluating derivatives by going to Fourier space
    ... One problem with spectral methods is that they lose their fast ... If you look at the weights ... For example do a barycentric form of Lagrangian interpolation and look ... For an order 50 poly on an equally spaced grid, ...
    (comp.dsp)
  • Re: Convolution-based image interpolation
    ... weights or coefficients you are going to be using. ... going to have to put in those zeroes in your kernel (or keep the length ... That would be the convolution kernel /2 That will be the only ... That's where spline interpolation is real handy. ...
    (comp.dsp)
  • Re: how to express weighted average in this case?
    ... But I don't want the weights to depend on the positions of B, ... You've just re-invented Lagrange interpolation. ... it won't always lie in the triangle. ... How about piecewise linear interpolation? ...
    (sci.math)

Loading