Skip to main content

Reading and Writing Images with R: Generating High Quality Output

  • Chapter
  • First Online:
Introduction to Image Processing Using R

Part of the book series: SpringerBriefs in Computer Science ((BRIEFSCOMPUTER))

  • 4769 Accesses

Abstract

This chapter presents how to read and write images with R in vector and raster formats. Different packages providing procedures for input and output are available. For vector formats, the package grImport is used. It provides functions for reading vector images and also for manipulation. In the case of raster images, the main packages available for input are: pixmap, png, rtiff, ReadImages, EBImage and bmp. These packages, and additionally the jpeg library, are used for writing in raster formats. In order to write an image in vector formats, some devices as postscript, pdf, and svg can be used. The new support for rendering raster formats in R is also presented in this chapter. The main advantages of using this new support is the better scaling, faster rendering, and smaller graphics files.

Either write something worth reading or do something worthwriting. Benjamin Franklin.

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

Access this chapter

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

Tax calculation will be finalised at checkout

Purchases are for personal use only

Institutional subscriptions

References

Download references

Author information

Authors and Affiliations

Authors

Corresponding author

Correspondence to Alejandro C. Frery .

Rights and permissions

Reprints and permissions

Copyright information

© 2013 Alejandro C. Frery

About this chapter

Cite this chapter

Frery, A.C., Perciano, T. (2013). Reading and Writing Images with R: Generating High Quality Output. In: Introduction to Image Processing Using R. SpringerBriefs in Computer Science. Springer, London. https://doi.org/10.1007/978-1-4471-4950-7_3

Download citation

  • DOI: https://doi.org/10.1007/978-1-4471-4950-7_3

  • Published:

  • Publisher Name: Springer, London

  • Print ISBN: 978-1-4471-4949-1

  • Online ISBN: 978-1-4471-4950-7

  • eBook Packages: Computer ScienceComputer Science (R0)

Publish with us

Policies and ethics