The XYZ to RGB conversion is already in convertColor(), and also in the
colorspace package.
-thomas
On Sun, 15 Mar 2009, baptiste auguie wrote:
I've put together a rough R port of that C code [*] in a package on r-forge:
Thanks for pointing this out, i did check the available packages
before dwelling on this but i was focussed on the first part of the
problem (spectrum to xyz).
The available convertColor() function is especially welcome that it
was the most inefficient part of the code I produced yesterday.
Thanks for pointing this out, i did check the available packages before
dwelling on this but i was focussed on the first part of the problem
(spectrum to xyz).
The available convertColor() function is especially welcome that it was
the most inefficient part of the code I produced yesterday.
I've put together a rough R port of that C code [*] in a package on r-
forge:
http://r-forge.r-project.org/plugins/scmsvn/viewcvs.php/pkg/spectral/?root=photonics
http://r-forge.r-project.org/R/?group_id=160 ( package spectral, will
be built overnight )
There is a lot of optimization and
Hi there,
I try to plot visible light spectrum (380nm~780nm) with color
corresponding to the specific wavelength. However, I don't find a
function that could do this.
Another question, it's possible to plot a color space chromaticity
diagram like this:
Hi,
For a good discussion of the link between colour and spectra I would
suggest,
http://www.fourmilab.ch/documents/specrend/
which provides an open-source C code to perform the conversion you ask
for. I asked for some advice on how to wrap a R function around this
code last week but
Hi,
For a good discussion of the link between colour and spectra I would
suggest,
http://www.fourmilab.ch/documents/specrend/
which provides an open-source C code to perform the conversion you ask
for. I asked for some advice on how to wrap a R function around this
code last week but
On 14 Mar 2009, at 13:08, Jinsong Zhao wrote:
Hi,
For a good discussion of the link between colour and spectra I would
suggest,
http://www.fourmilab.ch/documents/specrend/
which provides an open-source C code to perform the conversion you
ask
for. I asked for some advice on how to wrap a
if you don't mind about the efficiency of your program, just use ?
sapply on a range of wavelengths. I'm not particularly keen on the
implementation of the FORTRAN program you used compared to the one I
suggested, it seems like a very crude convolution.
Thank you very much for your
9 matches
Mail list logo