Displaying 11 results from an estimated 11 matches for "pixmapgrey".
2003 Sep 30
2
using identify() together with plot () and pixmap()
Dear R users
I have a two-dimensional array, whose values I want to plot, using the
pixmapGrey class. Plotting works fine, and now I would like to be able
to identify some of the points in the plot using identify(). But I get
the following message while pressing the left mouse button:
> plot(pixmapGrey(fmri.vtc[,,slice,volume]))
> identify(fmri.vtc[,,slice,volume])
warning: no point w...
2003 Sep 26
2
overlay two pixmap
Hi
I need to overlay two pixmaps (library (pixmap)). One, a pixmapGrey, is
the basis, and on this I need to overlay a pixmapIndexed, BUT: the
pixmapIndexed has set only some of its "pixels" to an indexed color,
many of its pixels should not cover the basis pixmapGrey pixel, means,
for this "in pixmapIndexed not defined pixels" it should be transpar...
2003 Sep 02
2
identify with image
...boon)
list()
- attr(*, "size")= int [1:2] 512 512
- attr(*, "cellres")= num [1:2] 1 1
- attr(*, "bbox")= num [1:4] 0 0 512 512
- attr(*, "channels")= chr "grey"
- attr(*, "bbcent")= logi FALSE
- attr(*, "class")= chr "pixmapGrey"
- attr(*, "grey")= num [1:512, 1:512] 0.537 0.510 0.345 0.259 0.322
...
> class(baboon)
[1] "pixmapGrey"
> library(pixmap)
> plot(baboon)
> identify(baboon, n=1)
... and then R bombs!
What to do?
Kjetil Halvorsen
2005 Aug 04
3
how to read individual values from a pixmap object
...in a
separate vector. However I have not found a straight-forward way to do this.
I thought that something like:
x <- xGrey[1,1]
would return the pixel value, but it seems to return a pixmap object with
dimension 1x1 (i.e. only one pixel in size)
xGrey[1,1]
Pixmap image
Type : pixmapGrey
Size : 1x1
Resolution : 1x1
Bounding box : 1 0 2 1
Any ideas on how to get the actual pixel value from a pixmap? (Note I could
output to an ascii file and then read the file back in as text - but not
nice!)
Thanks in advance
Tony
***************************************...
2004 Aug 25
1
Pixmap problem
...: 6x12
Resolution : 1x1
Bounding box : 0 0 12 6
Nr. of colors : 72 of 8
> write.pnm(x, file="D:/Temp/output.pnm")
Error in options(x) : evaluation nested too deeply: infinite recursion /
options(expression=)?
>
Grey ones work but with a warning...
> x <- pixmapGrey(rep(1:8, 9), nrow=6)
> x
Pixmap image
Type : pixmapGrey
Size : 6x12
Resolution : 1x1
Bounding box : 0 0 12 6
> write.pnm(x, file="D:/Temp/output.pnm")
Warning message:
connection is already open
>
Any ideas?
Cheers, Ben
[R 1.9.1 and Pixmap...
2003 Apr 22
3
Problem with pixmap on R 1.7.0?
Hi R users:
I got the following message when I use the pixmap library
on R 1.7.0 over w2K platform (on R 1.6.2 it runs right).
pixmapGrey(matrix(c(0,1),128,128))
Error in .class1(object) : Object "from" not found
I download the library .zip file from:
http://cran.r-project.org/bin/windows/contrib/1.7/pixmap_0.3-2.zip
Other question:
When I try to "Install package(s) from bioconductor" I got the
following messa...
2003 Sep 03
0
identify() seg.faults (PR#4057)
...:2] 512 512
> > - attr(*, "cellres")= num [1:2] 1 1
> > - attr(*, "bbox")= num [1:4] 0 0 512 512
> > - attr(*, "channels")= chr "grey"
> > - attr(*, "bbcent")= logi FALSE
> > - attr(*, "class")= chr "pixmapGrey"
> > - attr(*, "grey")= num [1:512, 1:512] 0.537 0.510 0.345 0.259 0.322
> > ...
> > > class(baboon)
> > [1] "pixmapGrey"
> > > library(pixmap)
> > > plot(baboon)
> > > identify(baboon, n=1)
> >
> > ... an...
2012 Oct 26
1
asking about R Code
...39;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= FALSE)
plot(pixmapGrey(as.matrix(read.table("mylenn"))))
do you know why i got the error? i have change the "oldlennablur.pgm" with the one i have and also with the specified path on my computer..|
And would you like give me an explanation about "read.pnm". I need to know what result will i...
2006 Mar 09
1
count pixels of same color in pixmap object?
Dear all,
I try to figure out how to use R to count the number of pixels of the
same color in some gray-level picture. I managed to read it in either
tiff or jpeg format, but the returned pixmap object keeps its
information out of (my) reach. Is there an easy way to tabulate the
different color/graylevel pixels and their numbers? Or should I use a
completely different (free) software?
2004 Oct 14
2
fidelity of generated raster images (R and perl)
Hi:
Goal: use R to turn a matrix of 1's and 0's
into a corresponding image (e.g. png)
of black and white pixels.
Why R: Yes, I can do this more efficiently and precisely
with a perl module like Image::PBM. Been there,
done that many times, etc. (Just humor me.
I'm trying to do this with R for a number of reasons.)
Problem:
2011 Apr 22
3
Reading a TIFF file
Dear all, I have been trying to speed up a process we have been done in ArcGIS. We have to read a single layer TIFF (monochrome image) in . For this, I have used the "rtiff" package. After reading the TIFF file, I compared the raw values for each pixel that I have in ArcGIS to the ones obtained in R. In ArcGIS I have discrete values in the range 0..255, while in R I have continuous