In-place algorithm for image rotation

  • Authors:
  • Tetsuo Asano;Shinnya Bitou;Mitsuo Motoki;Nobuaki Usui

  • Affiliations:
  • School of Information Science, JAIST, Japan;School of Information Science, JAIST, Japan;School of Information Science, JAIST, Japan;PFU Limited, Japan

  • Venue:
  • ISAAC'07 Proceedings of the 18th international conference on Algorithms and computation
  • Year:
  • 2007

Quantified Score

Hi-index 0.00

Visualization

Abstract

This paper presents an algorithm for rotating a subimage in place without using any extra working array. Due to this constraint, we have to overwrite pixel values by interpolated values. Key ideas are local reliability test which determines whether interpolation at a pixel is carried out correctly without using interpolated values, and lazy interpolation which stores interpolated values in a region which is never used for output images and then fills in interpolated values after safety is guaranteed. It is shown that linear interpolation is always safely implemented. An extension to cubic interpolation is also discussed.