[R] importing images

Roger Bivand Roger.Bivand at nhh.no
Wed Feb 20 14:04:10 CET 2002


On Wed, 20 Feb 2002, Herve Cardot wrote:

> 
> I would like to import "tif" images in R and I do not find any
> function that can do that. In Matlab there exists the  function "imread"
> 
> that can read the most known images format. Does a similar function
> exist for R ?
> 

If you can convert your image to a portable anymap, then read.pnm() in the
pixmap package should do this. On Linux/Unix the NetPBM program tifftopnm
does the conversion, ImageMagick convert does it, and many bitmap graphics
applications will too.

Roger


> --
> Herve CARDOT
> ____________________________________________________________
> Unite Biometrie et Intelligence Artificielle, INRA Toulouse
> BP 27,  31326 Castanet-Tolosan cedex, France.
> Tel: (+33)5.61.28.50.64 mailto:Herve.Cardot at toulouse.inra.fr
> Page Equipe: http://www.inra.fr/bia/T/modelisation/Doc/
> Page Perso:  http://www.inra.fr/bia/T/cardot/
> 
> 
> 
> -.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-
> 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
> _._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._
> 

-- 
Roger Bivand
Economic Geography Section, Department of Economics, Norwegian School of
Economics and Business Administration, Breiviksveien 40, N-5045 Bergen,
Norway. voice: +47 55 95 93 55; fax +47 55 95 93 93
e-mail: Roger.Bivand at nhh.no
and: Department of Geography and Regional Development, University of
Gdansk, al. Mar. J. Pilsudskiego 46, PL-81 378 Gdynia, Poland.

-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-
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