21 |
|
* to tristimulus should use scolor_rgb() or scolor_cie(). |
22 |
|
* |
23 |
|
* A new Radiance format is provided for spectral pictures, |
24 |
< |
* and spectral colors must be converted by caller using |
25 |
< |
* convertscolor() if the sampling doesn't match. |
24 |
> |
* and spectral colors must be converted by caller if the |
25 |
> |
* sampling doesn't match. |
26 |
|
*/ |
27 |
|
#ifndef _RAD_COLOR_H_ |
28 |
|
#define _RAD_COLOR_H_ |
370 |
|
extern int compxyz2rgbWBmat(COLORMAT mat, RGBPRIMS pr); |
371 |
|
extern int comprgb2xyzWBmat(COLORMAT mat, RGBPRIMS pr); |
372 |
|
extern int comprgb2rgbWBmat(COLORMAT mat, RGBPRIMS pr1, RGBPRIMS pr2); |
373 |
+ |
/* any uniform spectrum to working */ |
374 |
+ |
extern void convertscolorcol(SCOLOR rcol, const COLORV src[], int snc, |
375 |
+ |
double swl0, double swl1); |
376 |
|
/* most accurate spectral->tristim */ |
377 |
|
extern void scolor2cie(COLOR col, SCOLOR scol, int ncs, const float wlpt[4]); |
378 |
|
extern void scolor2rgb(COLOR col, SCOLOR scol, int ncs, const float wlpt[4]); |