Displaying 20 results from an estimated 6000 matches similar to: "bmp"
2003 Nov 21
1
How to read .bmp files into R? read.pnm throws error
Hi,
Is there a way to read .bmp files into R? I have tried read.pnm from pixmap
package. It returned
Error in pm.readmagicnumber(con) : Not a PNM format file
Anyother ways to load bitmap images?
Yi-Xiong
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
2008 Aug 01
1
creating image using RGB values
Hi R users,
I would like to create an image using three matrices which contain the
values of Red, Green, and Blue of each pixel, i.e. one matrix which has
values of red, one which has values of green, and one which has values of
blue.
The values are between 0 and 1 instead of 0-255.
I have obtained the matrices using the getChannels of pixmap library.
I wonder if anyone knows how to create the
2012 May 08
2
PPM to BMP converter
Dear all,
Several days ago, I posted How to write a bmp file pixel by pixel. Instead of bmp, I succeeded in writing a PPM file by using the pixmap package. Thanks for the hint generously provided by Uwe Ligges.
Now I have a new question. How to convert a PPM file to BMP file in R? I know I can do this in photoshop or by some other softwares, but I think if I Can do this in R, that
2008 Aug 05
2
max size of a matrix
Hi R users,
I am trying to create a matrix, but R has problem with the size of dim,
wondering if there is anything that I can do?
> a <- diag(147456)
Error in array(0, c(n, p)) : 'dim' specifies too large an array
Thanks for your help
Rostam
[[alternative HTML version deleted]]
2008 Aug 11
6
number of an element in a matrix
Hi, I wonder if there is any function which gives the number of times which
an element is repeated in the matrix. Let say there is a matrix, I would
like to find out how many times number 2 has been repeated in the matrix, or
in other words, how many elements of the matrix are equal 2.
Thanks for your help,
Rostam
[[alternative HTML version deleted]]
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
2009 Dec 03
2
adding bmp/jpg/gif to an existing plot
Hi, all.
I searched a lot at mailing list, installed EBImage and gtk packages, but I
couldn't make this simple work:
How to add a image file (jpg or bmp ou gif) to an existing plot window (not
plot over the image), like the code below (pseudo function add.image):
plot(1:10,1:10,main="test")
image = read.X("myimage.jpg")
add.image(image, x.left=2, y.bottom=4,
2008 Aug 12
1
converting rgb() output to 0-255
Hi,
I have three matrices, Red, Green and Blue. I would like to produce a matrix
which is the combined values of Red, Green and Blue matrices.
I know rgb() does the job, but the values are not between 0-255, they are in
the following format:
"#2C312C"
I would like to have the values between 0-255.
I wonder if you could tell me what I can do...
Thanks for your help,
Rostam
2001 Sep 11
0
New package pixmap
A new package called `pixmap' has been released on CRAN. From the
DESCRIPTION file:
Package: pixmap
Version: 0.2-1
Title: Bitmap Images (``Pixel Maps'')
Depends: R (>= 1.3)
Author: Friedrich Leisch and Roger Bivand
Maintainer: Friedrich Leisch <Friedrich.Leisch at ci.tuwien.ac.at>
Description: Functions for import, export, plotting and other
manipulations of bitmapped
2009 May 18
1
S4 method dispatch and namespaces: why is default method selected
Hi,
I ran into the following peculiarity involving S4 method dispatch and
namespaces.
I develop a package which have a namespace and which depends on 'pixmap'
package, which itself does not have a namespace.
Now, in my package I have a class which has a slot for objects from
class "pixmap" and I
want to have a "plot" method for this new class. Not to clutter the
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
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
2012 May 04
1
How to write a BMP file pixel by pixel?
Dear all,
I open a bmp device by the bmp() function in the png package, but I don't know how to write color pixel by pixel into the file? Any help or hint?
What I want to do is to create a 512*512 bmp file with certain dots being red and others black. I have all the pixel coordinates for the red dots, but I don't know how to draw the color on the device.
Please help
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
2000 Jun 28
3
BMP to matrix
Hi all,
is there any R function that loads a bmp file, or any other format, and converts its grid of pixels into a matrix or data frame?
Thanks in advance.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: https://stat.ethz.ch/pipermail/r-help/attachments/20000628/f3fc8b21/attachment.html
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
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 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