Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

What interpolation is best for image rotation?

I have some images to rotate. I must rotate them (each by different angle) with as little as possible image artifacts (e.g. blurring) that occur during image rotation (due to interpolation).

At the moment I have GIMP 2.6 that has Cubic and Sinc(Lanczos3) interpolations available for image rotation. I'm not sure which one is better and introduces less artifacts? What are its disadvantaged, if any?

Also, is there some other software (e.g. a plugin for photoshop or gimp) or some script for Matlab that can provide near perfect image rotations (e.g. by using better interpolation algorithm than those available in GIMP)?

Many thanks in advance.

like image 731
Marcin Avatar asked Jan 24 '11 12:01

Marcin


People also ask

Which interpolation method is best for image?

BICUBIC INTERPOLATION Bicubic produces noticeably sharper images than the previous two methods, and is perhaps the ideal combination of processing time and output quality. For this reason it is a standard in many image editing programs (including Adobe Photoshop), printer drivers and in-camera interpolation.

What are the 3 interpolation methods for images?

Image interpolation is generally achieved through one of three methods: nearest neighbor, bilinear interpolation, or bicubic interpolation.

Which interpolation method is best?

Radial Basis Function interpolation is a diverse group of data interpolation methods. In terms of the ability to fit your data and produce a smooth surface, the Multiquadric method is considered by many to be the best.

What is interpolation in imaging?

Image interpolation occurs when you resize or distort your image from one pixel grid to another. Image resizing is necessary when you need to increase or decrease the total number of pixels, whereas remapping can occur when you are correcting for lens distortion or rotating an image.


1 Answers

I remember seeing a comparison of different interpolation algorithms that was quite clever - the image was rotated by a fixed angle repeatedly until it was rotated all the way back to 360 degrees. Any artifacts or blurring were immediately obvious, and the image could be directly compared to the original. Edit: Found the link - http://www.all-in-one.ee/~dersch/interpolator/interpolator.html

Please don't think that Lanczos is the same as Sinc - they're related, but Lanczos trades some accuracy for ease of computation.

like image 89
Mark Ransom Avatar answered Sep 23 '22 20:09

Mark Ransom