Displaying 20 results from an estimated 2000 matches similar to: "how to read individual values from a pixmap object"
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
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 transparent.
What would you
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 with
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
2005 Aug 01
2
Rgdal windows binary warning message
Hi all,
I just downloaded windows binaries of RGDAL (from
http://www.stats.ox.ac.uk/pub/RWin/bin/windows/contrib/2.1/) and installed.
I ran the example R_HOME\library\rgdal\R-ex\getPixmapGDAL.R and everything
seemed to work as expected. However I got the following warning message:
DLL attempted to change FPU control word from 8001f to 9001f
The R-help (?dyn.load) describes the problem as:
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?
2003 Sep 02
2
identify with image
Hola!
I will want to identify pixels in an image with the mouse, for
so getting the image data from the matrix(es), for use in subsequent
discriminant analysis. But the following bombs R:
(windows XP, rw1071)
> str(baboon)
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(*,
2005 Feb 23
1
Package pixmap breaks try() under circumstances
Dear R users,
in some circumstances, try() shows a strange behaviour,
when the pixmap package is loaded.
The following piece of code works as expected, if it is
either sourced in an interactive session or invoked via
R CMD BATCH (the try-error is printed).
However, if i invoke R using ``R --vanilla < source.R'',
the execution halts (without printing the try-error).
# source.R
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=
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:
2001 Sep 06
1
RFC: package pixmap
There is a new package pixmap in $CRAN/src/contrib/Devel which
provides a first shot at a class hierarchy for bitmapped images (as
both bitmap and image are already taken I named it pixmap ... if
somebody has an idea for a better name, please let me know).
This is by no means meant to be final ... more like a basis for
discussion about classes for that purpose. It already has RGB, indexed
and
2002 Sep 19
1
install.packages() together with pixmap package (PR#2042)
Full_Name: Wolfgang Huber
Version: 1.5.1
OS: Windoof 2000
Submission from: (NULL) (193.174.62.11)
Hi,
Trying to install the binary distribution (zip file) for the "pixmap" package,
as downloaded today from CRAN, I get the following warning "error -1". The
package will not be installed.
Installation of other packages (e.g. pinktoe, acepack) worked fine. The warning
or error
2017 Dec 31
2
[PATCH] dri3: remove bogus condition for creating pixmap
Not clear what the depth % 8 was trying to protect against, but it was
breaking 30bpp visuals with DRI3.
Signed-off-by: Ilia Mirkin <imirkin at alum.mit.edu>
---
src/nouveau_dri2.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/src/nouveau_dri2.c b/src/nouveau_dri2.c
index cbb7b2a..07b6022 100644
--- a/src/nouveau_dri2.c
+++ b/src/nouveau_dri2.c
@@ -1076,7 +1076,7 @@
2018 Feb 04
1
[PATCH 1/2] dri3: remove bogus condition for creating pixmap
Not clear what the depth % 8 was trying to protect against, but it was
breaking 30bpp visuals with DRI3. Add it in to ensure that bitsPerPixel
% 8 is 0, since there is plenty of bpp/8 math in the driver.
Signed-off-by: Ilia Mirkin <imirkin at alum.mit.edu>
---
src/nouveau_dri2.c | 5 ++++-
1 file changed, 4 insertions(+), 1 deletion(-)
diff --git a/src/nouveau_dri2.c b/src/nouveau_dri2.c
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
2007 Jan 01
2
Get pixmap of minimized windows?
Is it possible to get pixmaps of minimized windows?
I don't want to use ugly hacks like "temp unminimize" just to get it.
Stjepan
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
2004 Jan 12
2
Wrote new tiff package, would like big-endian tiffs for testing
Over the years I have noted a couple of people interested in an R package that will read tiff files. There were some valid arguments against (e.g. R is not an image editting suite, libtiff does not support all tiff files, etc.). True enough, when I want to work with family photos, I use Gimp. But in my research I use tiffs as data sets in the context of computational biology and molecular
2009 Jun 15
1
display SVG, PNG, GIF, JPEG, TIFF, PPM in new plot frame
Dear R-help
I want to display an image file in a new plot frame.
SVG is my preferred format, but I can also consider
PNG, GIF, JPEG, TIFF, and PPM (from ImageMagick).
By way of background (although not material to this
posting), the image file is generated by a call to
'dot' (part of the 'Graphviz' suite) after the required
.dot file has been produced using hand-crafted R code.
2009 Mar 12
1
Using one buffer object per (EXA) pixmap potentially wastes memory.
I've been doing some testing and it seems that glyphs (typically
smaller than a page size on nv50) render slow'ish sometimes, mostly
due to the many trips to the kernel (drm_addmap_core is the symbol
that shows up). Ofcource this was a benchmark, but it does leave me
wondering, do we really need need to call the kernel for every little
pixmap? Also from a memory point of view, because a