Try the rgdal package, ?readGDAL will read a bmp file. Building on that and
adding more features is the raster package, see ?raster which will return
am object from reading the file and provide extra support to sort out the
plotting of colour tables etc correctly.
Cheers, Mike
On Wednesday, November 23, 2011, Alaios <alaios@yahoo.com>
wrote:> Dear all,
> I am looking for a function that can read a simple bmp file and return me
a matrix with their corresponding values.>
> I have already looked in the packages
>
>
> require(ReadImages)
> require(pixmap)
>
> and also did apropos("image")
>
> but I could not find something that can do something like that.
>
> I have also tried the read.ftable but it also failed.
>
> B.R
> Alex
>
> [[alternative HTML version deleted]]
>
> ______________________________________________
> R-help@r-project.org mailing list
> https://stat.ethz.ch/mailman/listinfo/r-help
> PLEASE do read the posting guide
http://www.R-project.org/posting-guide.html> and provide commented, minimal, self-contained, reproducible code.
>
--
Michael Sumner
Institute for Marine and Antarctic Studies, University of Tasmania
Hobart, Australia
e-mail: mdsumner@gmail.com
[[alternative HTML version deleted]]