A Fast Implementation of Image Rotation with Bresenham’s Line-Scanning Algorithm

  • Conference paper
  • First Online:
Image and Graphics (ICIG 2021)

Part of the book series: Lecture Notes in Computer Science ((LNIP,volume 12888))

Included in the following conference series:

  • 2017 Accesses

Abstract

Image rotation is a fundamental task in image processing. It has two primary stages: rasterization of the rotated domain and evaluation of these pixel values. This paper mainly proposes a novel strategy for the first stage with Bresenham’s line description, and further a natural way for the second stage. Two neighbouring sides of the boundary of the rotated image are expressed by a variation of Bresenham scanning lines, one taken as the supporting side and the other as the moving side. Then the rotated region can be expressed as stacking the copies of the moving side along the supporting side. We re-implement Bresenham’s line algorithm in such a scheme that a line is expressed as successive runs of line segments, so as to rapidly realize the rasterization of the defined domain of the rotated image. At the same time, an incremental method is used to assign values to the pixels. Our method avoids lots of computation that must be conducted in previous works for determining whether a point is in the rotated domain and therefore, according to experiments, significantly decreases running time of image rotation.

Supported by Science and Technology Planning Projects of Guangdong Province, China, with grant numbers 2019B010150002 and 2020B0101130019.

This is a preview of subscription content, log in via an institution to check access.

Access this chapter

Subscribe and save

Springer+ Basic
EUR 32.99 /Month
  • Get 10 units per month
  • Download Article/Chapter or Ebook
  • 1 Unit = 1 Article or 1 Chapter
  • Cancel anytime
Subscribe now

Buy Now

Chapter
USD 29.95
Price excludes VAT (Canada)
  • Available as PDF
  • Read on any device
  • Instant download
  • Own it forever
eBook
USD 109.00
Price excludes VAT (Canada)
  • Available as EPUB and PDF
  • Read on any device
  • Instant download
  • Own it forever
Softcover Book
USD 139.99
Price excludes VAT (Canada)
  • Compact, lightweight edition
  • Dispatched in 3 to 5 business days
  • Free ship** worldwide - see info

Tax calculation will be finalised at checkout

Purchases are for personal use only

Institutional subscriptions

Similar content being viewed by others

References

  1. Gonzalez, R.C., Woods, R.E.: Digital Image Processing, 4th edn. Pearson/Prentice Hall, New York (2018)

    Google Scholar 

  2. Gidaris, S., Singh, P., Komodakis, N.: Unsupervised representation learning by predicting image rotations. In: International Conference on Learning Representations 2018 (2018). https://openreview.net/forum?id=S1v4N2l0-

  3. Danielsson, P.E., Hammerin, M.: High-accuracy rotation of images. CVGIP Graph. Models Image Process. 54(4), 340–344 (1992)

    Article  Google Scholar 

  4. Unser, M., Thevenaz, P., Yaroslavsky, L.: Convolution based interpolation for fast, high quality rotation of images. IEEE Trans. Image Process. 4(10), 1371–1381 (1995)

    Article  Google Scholar 

  5. Chen, B., Kaufman, A.E.: Two-pass image and volume rotation. In: IEEE Workshop on Volume Graphics (2001). http://cfcs.pku.edu.cn/baoquan

  6. Chien, S., Baek, Y.: A fast black run rotation algorithm for binary images. Pattern Recogn. Lett. 9(5), 455–459 (1998)

    Article  Google Scholar 

  7. Watve, R.S., Shende, A.S., Kshirasagar, S.: Real time image rotation using SoC architecture. In: 8th International Symposium on Signal Processing and Its Applications, pp. 795–798. IEEE (2005)

    Google Scholar 

  8. Shi, S., Zhang, Y., **, R., Zheng, J.: A fast-high-quality image rotation approach based on Bresenham algorithm. J. Comput.-Aided Des. Comput. Graph. 19(11), 1387–1392 (2007)

    Google Scholar 

  9. Bresenham, J.E.: Algorithm for computer control of a digital plotter. IBM Syst. J. 4(1), 25–30 (1965)

    Article  Google Scholar 

  10. Pitteway, M.L.V., Watkinson, D.J.: Bresenham’s algorithm with grey scale. Commun. ACM 23(11), 625–626 (1980)

    Article  Google Scholar 

  11. Reid-Green, K.S.: Three early algorithms. IEEE Ann. Hist. Comput. 24(4), 10–13 (2002)

    Article  MathSciNet  Google Scholar 

  12. Parker, J.A., Kenyon, R.V., Troxel, D.E.: Comparison of interpolating methods for image resampling. IEEE Trans. Med. Imaging 2(1), 31–39 (1983)

    Article  Google Scholar 

  13. Lehmann, T.M., Gonner, C., Spitzer, K.: Survey: interpolation methods in medical image processing. IEEE Trans. Med. Imaging 18(11), 1049–1075 (1999)

    Article  Google Scholar 

  14. Keys, R.G.: Cubic convolution interpolation for digital image processing. IEEE Trans. Acoust. Speech Signal Process. 26(6), 1153–1160 (1981)

    Article  MathSciNet  Google Scholar 

  15. Park, G., Leibon, D., Rockmore, N., Chirikjian, G.S.: Accurate image rotation using Hermite expansions. IEEE Trans. Image Process. 18(9), 1988–2003 (2009)

    Article  MathSciNet  Google Scholar 

  16. Ashtari, A.H., Nordin, M.J., Kahaki, S.M.M.: Double line image rotation. IEEE Trans. Image Process. 24(11), 3370–3385 (2015)

    Article  MathSciNet  Google Scholar 

Download references

Author information

Authors and Affiliations

Authors

Corresponding author

Correspondence to Yinwei Zhan .

Editor information

Editors and Affiliations

Rights and permissions

Reprints and permissions

Copyright information

© 2021 Springer Nature Switzerland AG

About this paper

Check for updates. Verify currency and authenticity via CrossMark

Cite this paper

Xu, M., Zhan, Y., Li, Y. (2021). A Fast Implementation of Image Rotation with Bresenham’s Line-Scanning Algorithm. In: Peng, Y., Hu, SM., Gabbouj, M., Zhou, K., Elad, M., Xu, K. (eds) Image and Graphics. ICIG 2021. Lecture Notes in Computer Science(), vol 12888. Springer, Cham. https://doi.org/10.1007/978-3-030-87355-4_51

Download citation

  • DOI: https://doi.org/10.1007/978-3-030-87355-4_51

  • Published:

  • Publisher Name: Springer, Cham

  • Print ISBN: 978-3-030-87354-7

  • Online ISBN: 978-3-030-87355-4

  • eBook Packages: Computer ScienceComputer Science (R0)

Publish with us

Policies and ethics

Navigation