[R] PNG-import into R

2005-11-21 Thread Sydler, Dominik
Hi there I'm looking for a function to read PNG-bitmap-images from a file into R. I only found: - the pixmap-package which cannot import png or similar formats - the rimage-package which can only import lossy jpeg-images (the convertion from png to jpeg modifies the data!) Is there any

Re: [R] PNG-import into R

2005-11-21 Thread Tuszynski, Jaroslaw W.
' , 'write.png', and 'write.jpeg' functions? Jarek Tuszynski -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Sydler, Dominik Sent: Monday, November 21, 2005 5:36 AM To: r-help@stat.math.ethz.ch Subject: [R] PNG-import into R Hi there I'm looking for a function

Re: [R] PNG-import into R

2005-11-21 Thread Barry Rowlingson
Tuszynski, Jaroslaw W. wrote: Also does anybody know how hard would it be to tap into C code needed for 'read.jpeg', 'png' and 'jpeg' functions to write 'read.png' , 'write.png', and 'write.jpeg' functions? Much, much harder than using ImageMagick to convert to one of the formats that R

Re: [R] PNG-import into R

2005-11-21 Thread tom wright
Hi, I dont think you can import PNG images into R directly (although I may be wrong). I use ImageMagick (available for most operating systems) and the system() function to do my image conversions. convertImage-function(dirname,srcname,targetname){ strSrcName-shQuote(paste(dirname,srcname,sep

Re: [R] PNG-import into R

2005-11-21 Thread Rajarshi Guha
On Mon, 2005-11-21 at 09:38 -0500, Tuszynski, Jaroslaw W. wrote: Also does anybody know how hard would it be to tap into C code needed for 'read.jpeg', 'png' and 'jpeg' functions to write 'read.png' , 'write.png', and 'write.jpeg' functions? Not too difficult (at least with libpng). I was

Re: [R] PNG-import into R

2005-11-21 Thread paul sorenson
Rajarshi Guha wrote: Right now it segfaults, so its not really useful yet. Can I use that as a tag line? __ R-help@stat.math.ethz.ch mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide!

Re: [R] PNG-import into R

2005-11-21 Thread Roger Bivand
On Mon, 21 Nov 2005, Sydler, Dominik wrote: Hi there I'm looking for a function to read PNG-bitmap-images from a file into R. I only found: - the pixmap-package which cannot import png or similar formats - the rimage-package which can only import lossy jpeg-images (the convertion from