Displaying 2 results from an estimated 2 matches for "spectrum_to_xyz".
2009 Mar 08
0
advice on using this C code in R
...://math.acadiau.ca/ACMMaC/howtos/C_R.html
Here, however, the code has several functions, some of which use
structures as input variables and return several values.
I've created a shared library with,
> R CMD SHLIB specrend.c
and then ran,
dyn.load('specrend.so')
> .C('spectrum_to_xyz', spec_intens=as.numeric(1),
> wavelength=as.numeric(1),
> x=numeric(1), y=numeric(1), z=numeric(1))
which obviously resulted in a nice crash,
> *** caught illegal operation ***
> address 0x942776, cause 'illegal opcode'
>
> Traceback:
> 1: .C("sp...
2009 Mar 14
3
[OT] two question about color space.
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:
http://upload.wikimedia.org/wikipedia/commons/thumb/0/02/CIExy1931.svg/300px-CIExy1931.svg.png
Thanks in advance!
Jinsong