Um texto embutido e sem conjunto de caracteres especificado associado... Nome: n?o dispon?vel Url: https://stat.ethz.ch/pipermail/r-help/attachments/20070312/112cd7f9/attachment.pl
On Mon, 12 Mar 2007, Milton Cezar Ribeiro wrote:> Hi R-gurus > > How can I read my "bmp" files into R?RSiteSearch('bmp') system('convert my.bmp my.pnm') library(pixmap) ?read.pnm Dave -- Dr. David Forrest drf at vims.edu (804)684-7900w drf5n at maplepark.com (804)642-0662h http://maplepark.com/~drf5n/
Try EBImage from Bioconductor.org Best, Oleg Milton Cezar Ribeiro wrote:> Hi R-gurus > > How can I read my "bmp" files into R? > > Kind regards, > > > miltinho > Brazil > > __________________________________________________ > > > [[alternative HTML version deleted]] > > ______________________________________________ > R-help at stat.math.ethz.ch 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.-- Dr Oleg Sklyar * EBI/EMBL, Cambridge CB10 1SD, England * +44-1223-494466
Another way:
require(sp)
require(rgdal)
library(rgdal)
## read using one of the many GDAL drivers
d <- readGDAL("im.bmp")
summary(d)
## map colours for RGB and display
col <- SGDF2PCT(d)
d$idx <- col$idx
image(d, "idx", col = col$ct)
## Available drivers:
gdalDrivers()
Milton Cezar Ribeiro wrote:
>/ Hi R-gurus
/>/ />/ How can I read my "bmp" files into R?
/>/ />/ Kind regards,
/>/ />/ />/ miltinho
/>/ Brazil /
>/ /