Yahoo Answers is shutting down on May 4th, 2021 (Eastern Time) and beginning April 20th, 2021 (Eastern Time) the Yahoo Answers website will be in read-only mode. There will be no changes to other Yahoo properties or services, or your Yahoo account. You can find more information about the Yahoo Answers shutdown and how to download your data on this help page.

Arjen
Lv 5
Arjen asked in Consumer ElectronicsCameras · 1 decade ago

how are pictures digital enlarged?

When you have a photo that's for example 640x480 pixels, but your looking at them on your full size screen (960x720). The photo is now 1.5 times enlarged. But how do they do that? You can't just double all pixels, the picture would be to big. You can't just do certain pixels, it will make the picture look odd (or doesn't it?). Do they make a mix pixel between the pixels surrounding the new pixel?

So what's the technique behind enlarging photo's?

2 Answers

Relevance
  • link
    Lv 7
    1 decade ago
    Favorite Answer

    The enlarging technique is called resampling. In your example, if you were to take the 960x720 output grid and lay it over the 640x480 input pixel grid, it would define the points of interpolation between the original pixels. There are many different ways to do the interpolation, but the three most common are:

    Nearest neighbor (just pick the closest pixel) - fastest but poor quality

    Bilinear (linearly interpolate between the 2x2 surrounding pixels) - fast, but not very sharp

    4x4 interpolation with various interpolating functions (Kernels). This is known by names such as Bicubic, cubic convolution, lagrange interpolation, Lanzos, Bspline and others. This is the highest quality, but slowest technique, since it requires a 4x4 multiply-add at each output pixel. But modern processors are so fast now that it's not a problem. The processors also have special hardware to speed this up. That's one of the functions of the SSE instruction set extensions.

    Upsampling (enlarging) is pretty easy. Downsampling (reduction) requires some kind of anti-alias filtering to be performed before interpolation, although in practice, the anti-alias filter is sometimes combined with the interpolation filter if the degree of reduction is less than 2X or so.

  • Anonymous
    5 years ago

    I doubt a picture from a phone has a lot of quality to begin with, but if you have photoshop or some other drawing program you can open the picture and increase the resolution (100 or higher, like 300) which usually increases the size of the picture as well.

Still have questions? Get your answers by asking now.