[R] image with R

Prof Brian D Ripley ripley at stats.ox.ac.uk
Wed May 23 16:34:16 CEST 2001

On Wed, 23 May 2001, Olivier Martin wrote:

> Hi all,
> i would like to analyze some images with R.
> For example, i have a tif image (16 bit=2^16 values) that i convert in
> ascii file (8 bit =256 values only)
> so it is easy to work under R with image() function.
> But, i would like to  keep my image with 2^16 values...
> how can i do to load my tif image in my workspace?
> Do you know if there is a package for analysis image ?

Indeed there is: AnalyzeIO.  But `tif' is so ill defined that you would
need to convert to a more standard format (via ImageMagick, netpbm)
and read it with Rstreams or the binary connections functions.

Since the smallest R type is 32 bits (signed) there is no problem using
16 bits, and we do it all the time.

Brian D. Ripley,                  ripley at stats.ox.ac.uk
Professor of Applied Statistics,  http://www.stats.ox.ac.uk/~ripley/
University of Oxford,             Tel:  +44 1865 272861 (self)
1 South Parks Road,                     +44 1865 272860 (secr)
Oxford OX1 3TG, UK                Fax:  +44 1865 272595

r-help mailing list -- Read http://www.ci.tuwien.ac.at/~hornik/R/R-FAQ.html
Send "info", "help", or "[un]subscribe"
(in the "body", not the subject !)  To: r-help-request at stat.math.ethz.ch

More information about the R-help mailing list