Learn R Programming

readbitmap

Introduction

readbitmap is a simple R package that provides a function read.bitmap to read standard bitmap format images, identifying them by their image header (or magic value) rather than relying on the file extension.

tiff packages.

  • includes function to identify images by magic values (standard file extensions can also be used)
  • Includes simple test suite

Installation

Regular CRAN Install

install.packages('readbitmap')

Latest Version

if (!require("devtools")) install.packages("devtools")
devtools::install_github('jefferis/readbitmap')

Dependencies

The jpeg, png, and tiff R packages depend on system libjpeg, libpng and libtiff libraries. These are pretty much always installed on unix like systems (e.g. linux, macosx). Failing that, see:

For Windows, binary installs of the jpeg and png packages include the libjpeg and lipng available on winbuilder and therefore no system library is required. The winbuilder libraries are part of a collection provied by Brian Ripley at:

http://www.stats.ox.ac.uk/pub/Rtools/goodies/multilib/

The file is called local323.zip at the time of writing.

For windows users building from source, the libraries are part of the Rtools bundle available at:

http://cran.r-project.org/bin/windows/Rtools/

Copy Link

Version

Install

install.packages('readbitmap')

Monthly Downloads

5,959

Version

0.1.5

License

GPL (>= 2)

Issues

Pull Requests

Stars

Forks

Last Published

June 27th, 2018

Functions in readbitmap (0.1.5)

image_type

Identify the type of an image using the magic value at the start of the file
read.bitmap

Read in a bitmap image in JPEG, PNG, BMP or TIFF format
readbitmap-package

readbitmap: read standard bitmap image formats