Showing posts with label Image scaling. Show all posts
Showing posts with label Image scaling. Show all posts

Friday, February 13, 2015

How to Scale an Image

Generally speaking, there are three main types of algorithms which can be made use of by people in the process of image scaling to increase the size of an image. First of all, the simplest method is to take each original pixel in the source image and then copy it to the corresponding position in the larger image. Some gaps between the pixels in the larger image may appear, but they can be filled by assigning to the empty pixels to the color of the source pixel to the left of the current location. As a matter of fact, such operations can multiply an image and its data into a larger area. This method, called nearest-neighbor, is very useful in terms of preventing data loss, but the image quality usually suffers some damage as the enlarged blocks of individual pixels will be clearly visible.

There are also some other image scaling algorithms called bilinear interpolation and bicubic interpolation. They work by filling in the empty spaces in an enlarged image with pixels whose color is determined by the color of the given pixels surrounding it. Under such conditions, the scaled image will be smoother than the scaled image using the nearest-neighbor method, but the image may suffer from some other problems, including becoming blurry and full of indistinct blocks of color.

The third type of image scaling algorithm makes use of pattern recognition to identify the different areas of an image being enlarged. Next, it tries to structure the missing pixels. This method will bring people a lot of benefits. However, the more times the image is scaled by this algorithm, the more visual artifacts will appear. In addition, this method requires more money than other types of scaling when scaling full-color photographic images, which makes it more computationally expensive under some circumstances.

Thursday, February 12, 2015

Image scaling

Scaling is also known as Resize. Sometimes, Resample is even called scaling, which is not entirely unreasonable. Image scaling refers to the computer graphics process which increase or decrease the size of a digital image. As a matter of fact, an image can be easily scaled by an image viewer or editing software. In addition, an image can also be scaled automatically by a program, which can greatly help the image to fit into an area of different size without efforts. People can make use of a lot of methods in order to reduce an image. However, the most popular way adopted by people is a type of sampling called undersampling, which can help to maintain the original quality. It is more complicated to enlarge an image as there is larger area to be filled with more pixels. 


Generally speaking, scaling is a non-trivial process which involves a trade-off between efficiency, smoothness and sharpness. With bitmap graphics, the pixels forming the image will become more and more visible when the size of the image is being reduced or enlarged, which can make the image seem “soft” if the pixels are averaged or jagged. 

In effect, scaling will not change the image pixels in any way. To be honest, scaling will only change the single number of dpi (ppi), a number simply stored separately in the image file in an arbitrary way. The only equipment makes use of it is the printer. What’s more, it only changes the size the image will print on paper. The images on the computer screen will not be influence by the number at all. Actually, the camera can never know how people want to print the image, and thus just makes up a number. As a result, people are supposed to fix the number before printing anything.