similar to: How to read .bmp files into R? read.pnm throws error

Displaying 20 results from an estimated 900 matches similar to: "How to read .bmp files into R? read.pnm throws error"

2009 Apr 09
1
reading an image and adding a legend
Hi all, I would like to 1. Read in an arcmap image into R (I can export pretty much any type of image jpeg, bitmap etc from arcmap) 2. Use R to create a nice colour legend in the plot First of all, Is this possible? So far I'm stuck on point 1. I have tried read.pnm() from pixmap and read.jpeg() from rgl. the pnm example provided works fine x <-
2007 Jun 07
2
reading BMP or TIFF files
I realize that this question has been asked before (2003); From: Yi-Xiong Zhou Date: Sat 22 Nov 2003 - 10:57:35 EST but I am hoping that the answer has changed. Namely, I would rather read the BMP (or TIFF) files directly instead of putting them though a separate utility for conversion as suggested by, From: Prof Brian Ripley Date: Sat 22 Nov 2003 - 15:23:33 EST "Even easier is
2013 Mar 22
2
read.pnm question in R-beta
In R-beta (Masked Marvel), when I do the example from the read.pnm help file, this is what happens: x <- read.pnm(system.file("pictures/logo.pgm",package="pixmap")[1]) Warning message: In rep(cellres, length=2): x is NULL so the result will be NULL In R-2.15.3, it's all right. Thanks, Erin Erin M. Hodgess, Ph.D. Associate Professor Department of Computer and
2008 Jul 28
1
Are there any packages that can process images other than pixelmap (i.e. pnm)?
Hi, all, I am having trouble getting R to take pnm images via mogrify i.e. mogrify -resize 320x217 -format pnm *.png However R via pixmap says that it can't read the file. If you have any ideas like a package that can read jpeg files, etc., I would appreciate it. Best wishes, Art Roberts University of Washington
2003 Feb 01
1
Try for to use in read.pnm()
Hi, I don't obtain to use try to capture an error of read.pnm(). I was using: res <- try(read.pnm(file_name)) But I don't understand that the variable res represents, or eiher, as I can access its attrbites. Tks, Francisco. ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ Francisco J?nior, Computer Science - UFPE-Brazil "One life has more value that the world whole"
2002 Oct 16
1
SYSLINUX: display a pnm
Hi! I'm Turbo24prg and want to ask you, if I can use the code in SYSLINUX that display an PNM-File on the screen. I'm writting an open-source OS, named InfiniT OS and want to use this code in it. Thanks in advance. thx & cu Turbo24prg ->> Have you written it, or have you implemented out of an other source, and if it is so can you send me the source, please?
2013 Mar 22
1
read.pnm question
Dear R People: I am trying to replicate a cool example that I saw on the R-bloggers some time ago by kafka399. Here are the lines tI think may be causing the trouble: gray_file <- read.pnm(path) pos[i,] <- c(gray_file@grey) The warning error that I get is "In rep(cellres, length=2): x is NULL so the result will be NULL Any suggestions would be much appreciated. Thanks,
2005 Feb 08
1
Windows BMPs: Why grey background? How to display BMP in R?
"white" is supposed to be the default background for BMPs (according to ?bmp) but it doesn't work > bmp("test.bmp", bg="white") > plot(0) > dev.off() # results in grey background # This seems to be a good enough workaround for now. > bmp("test.bmp") > par(bg="white") > plot(0) > dev.off() # background is white
2001 Aug 29
2
Missing functions in package e1071(Win*)
Hi! After unziping the CRAN file e1071.zip on my Win95 library directory, I start R and type >library(e1071) After that, help commands of the e1071 functions work (i.e., help(read.pnm), BUT some functions themselves are not available: > read.pnm Error: Object "read.pnm" not found I've looked at the file library/R/e1071 with an ascii editor and it seems like the functions
2004 Aug 25
1
Pixmap problem
Hi, I'm having trouble writing .pnm images which I think is due to a problem with my colour space. The pixmap object seems to be looking for 72 of 8 colours (one per cell?) which doesn't seem healthy... > library(pixmap) > x <- pixmapIndexed(rep(1:8, 9), nrow=6, col=rainbow(8)) > x Pixmap image Type : pixmapIndexed Size : 6x12 Resolution : 1x1
2008 Aug 14
0
bmp
Hi R users, I already had post this question under the title of bmp header, there was a mistake in my post. The following is the same post without the mistake. Thanks Rostam I have a xml file. A value of one of the nodes of the xml file is a bmp image encoded in base64. I would like to read this image by R. I think I should do the following steps: 1. Decoding it from base64 to binary. 2.
2003 Feb 28
2
File opening error after 1020 files opened
Hi, I am trying to use "read.pnm" from the package "pixmap" to read more than 10 thousand image files in "mydir". > file.list <- dir( "mydir", full=T) > for( i in 1:length(file.list) ) { print(i) x <- read.pnm(file.list[i]) } In the beginning it was fine. But after reading 1020 images or so, the read.pnm function seems to crash on
2012 Oct 26
1
asking about R Code
Hi, my name is Ellen. I want to ask you about R Code. I got a code for extracting a pixel value, but I can't compile it..  It is said "Error in is.data.frame(x) : object 'lena' not found" Here is the original full code: library(pixmap) lena <- read.pnm("oldlennablur.pgm") write.table(lena@grey,"mylenna", quote=FALSE, row.names = FALSE, col.names=
2007 Mar 12
3
reading BMP into R
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
2003 Jan 29
1
Error
people, I'm using the pixmap library and method read.pnm() for to read figures and it's giving the following error: Error in substr(inpstr, com1, stop = ns) : evaluation is nested too deeply: infinite recursion? I think that to be because of its size. Am I correct? Tks, Francisco. ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ Francisco Júnior, Computer Science - UFPE-Brazil "One
2003 Jun 05
1
ppmtolss16, Permature EOF!
Hi , I am using syslinux-2.04. I used the isolinux boot loader, to create a customized boot cd. As an add on to that process, i thought of displaying the product logo in the bootup screen. So as the document suggested i went on to create the lss from png. But it failed with following message. $ ~archives/syslinux-2.04/ppmtolss16 < ipm-white.pnm > ipm-white.lss './ppmtolss16:
2007 Apr 20
1
faster image display?
Does someone here know of a way to display images in R that isn't slow? Here are the things I've tried so far: library(rimage) i<-read.jpeg('foo.jpg') plot(i) # very slow library(pixmap) i <- read.pnm('foo.pnm') plot(i) # also slow chans <- getChannels(i) image(chans[,,1]) # this is slow too I also tried using library(cairoDevice) but it only makes everything
2001 Nov 20
1
trouble running pixmap examples
I am having trouble running the 'read.pnm' examples in this package. Can anyone tell me what is wrong? I am using the current package and running Redhat 7.2 (intel). The other examples seem fine but I can't seem to pull in files. [root at KENNY root]# R R : Copyright 2001, The R Development Core Team Version 1.3.0 (2001-06-22) R is free software and comes with ABSOLUTELY NO
2003 May 05
1
ppmtolss16 fix
Hi! using ppmtolss16 tool from syslinux-2.04 with an input .pnm file created with gimp 1.2.3, I bumbed into the following error: [root at azur syslinux-2.04]# ./ppmtolss16 < /home/sr/try.pnm > /tmp/t ./ppmtolss16: Input format error 1 [root at azur syslinux-2.04]# The problem is that gimp adds the comment # CREATOR: The GIMP's PNM Filter Version 1.0 at 2nd line. Suggested fix for
2003 Mar 01
1
RE: [R] File opening error after 1020 files opened
Maybe open.connection() should also check if the connection is already open and given an error or at least a warning if it is. Suggested code update: open.connection <- function(con, open="r", blocking=TRUE, ...) { if (!inherits(con, "connection")) stop("argument is not a connection") if (isOpen(con)) # NEW