Displaying 20 results from an estimated 8000 matches similar to: "creating image using RGB values"
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
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]]
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 Sep 04
1
showing the image
Hi everyone,
I have a matrix containing color values of an image same as following,
[1,] "#444444" "#444444" "#434343" "#404040" "#3D3D3D" "#3D3D3D" "#3E3E3E"
[2,] "#414141" "#414141" "#414141" "#404040" "#3F3F3F" "#3F3F3F" "#3F3F3F"
[3,] "#3E3E3E"
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 Nov 14
1
running r script in windows command line
Hi,
I would like to run a saved script in windows command line. Some command
which takes the filename as an argument, and runs it in R.
Thanks,
Rostam
[[alternative HTML version deleted]]
2002 Jul 06
5
about image and rgb
Hi all,
I have a 16 bit image (TIFF) and i want to analyse the pixels distribution.
So, i obtain a matrix which values are between 0 and 2^16 -1.
Now i would like to represnt this image with the fucntions rgb() and
image().
I am not sure , but i think that only 256 colors are available.
So is there a solution to represent all the palette of the colors or i
have to limit
the representations with
2005 Aug 04
3
how to read individual values from a pixmap object
Hi All,
I have a greyscale image that I am reading in through RGDAL and placing in a
pixmap object.
As an example use the logo.jpg file that comes with the RGDAL package:
#Read the file
logo <- system.file("pictures/logo.jpg", package="rgdal")[1]
x <- new("GDALReadOnlyDataset", logo)
#Create the pixmap object
xGrey <- getPixmapGDAL(x)
Now I would
2002 Apr 28
2
Image processing? Manipulating image data in R?
Hi!
I am looking for a R library by which i can load images (i found pixmap that
allows it to do).
But in addition i need methods to access the data, get them for example as an
array or matrix to do with this data some processing.
1. Is there a method in the pixmap library to access the matrix in which the
image data is stored.
2. Is there an alternative library running under MS Windows?
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
2009 Nov 04
1
[PATCH] nv10/exa: Spring-cleaning
* Kill the A8+A8 hack. Recent enough X servers (>=1.7) fall back to
ARGB glyphs for drivers not supporting A8 render targets.
* Kill all the global state. It doesn't matter a lot yet but it might
if we get multicard working at some point.
* Other random clean-ups with no functional changes.
Some numbers from x11perf -aa10text -aa24text -comppixwin10 -comppixwin500:
* Before, with A
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.
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 Feb 05
2
using image to show RGB image data ?
Hello all,
I'm now using image() to show image data (in my case dumps of SOM
weights) but would like to show RGB colour data, not just single "z"
colour values.
I've currently been using seq() to skip 4 values, so I can show the R, G
or B channels separately as "z". But is there a way I can show all three
channels simultaneously as a proper colour image?
Thanks,
B.
2007 Mar 05
1
compiz composited video and alpha only GLX pixmaps
I've added a simple plugin to compiz that provides a way to render video
efficiently on a composited desktop.
A video playback client basically copies video data to a pixmap and sets
an X property on a client window that describes the image format of the
data and where it should be rendered.
The compiz video plugin will scale and perform necessary colorspace
conversions when compositing the
2004 Feb 14
1
Digital Image Processing
I have seen several posts (but few answers) in "R-help search" as to whether there are any packages that use R to process digital images. There are several categories related to the general type of problem that are useful to know about:
-- Any existing packages for taking a digital image format {any flavor like TIFF, jpg, png, or GIF (or even TWAIN input)} and representing it internally
2012 Jul 10
2
RGB components of plot() colours
A quick question:
Is there anywhere a listing of the RGB components of the
named colours listed by colors()?
For example, where would I find the RGB for "orange1"
or "salmon"?
When I look at an EPS file from R where I have used
these colours, it seems that for:
"salmon":
0.9804 0.5020 0.4471 rgb
"orange1":
1 0.6471 0 rgb
However, this is a tedious way
2004 Sep 17
1
Confused about specifying plot colors as RGB values
Based on reading 'rgb' documentation, I would have thought
the following would have produced identical results. Can
someone explain how to make this happen? I need to be able
to specify an array of rgb values for the 'col' parameter.
colnames.col <- c("black", "red", "blue", "green")
colnames.rgb <- apply(as.matrix(colnames.col), 1,
2007 Mar 07
3
video plugin?
Hello,
I updated to current git and find the video plugin.
What exactly is it supposed to do?
I want to test it but I don't know exactly what to test....
Enabling it did not make any difference (it loaded successfully).
2000 Dec 15
1
Colour to RGB value?
There are a lot of ways to specify colours in R plot functions (number
from the palette, by name, etc.). I'd like to pass a colour from an R
function to an external function, and I'd like it to have the same
flexibility. To avoid having to interpret all possible colour
specifications myself, I need a function to convert a general colour
specification into a standard form (e.g. r,g,b