| 1 |
greg |
1.1 |
.\" RCSid "$Id: pabopto2bsdf.1,v 1.1 2021/02/25 04:48:19 greg Exp $" |
| 2 |
|
|
.TH PABOPTO2XYZ 1 3/1/2021 RADIANCE |
| 3 |
|
|
.SH NAME |
| 4 |
|
|
pabopto2xyz - convert a collection of single-channel BSDF measurements to CIE-XYZ colorimetry |
| 5 |
|
|
.SH SYNOPSIS |
| 6 |
|
|
.B pabopto2xyz |
| 7 |
|
|
[ |
| 8 |
|
|
.B "\-m X1 X2 X3 Y1 Y2 Y3 Z1 Z2 Z3" |
| 9 |
|
|
][ |
| 10 |
|
|
.B "\-o basename" |
| 11 |
|
|
][ |
| 12 |
|
|
.B "\-n nprocs" |
| 13 |
|
|
] |
| 14 |
|
|
.B "s1files.txt s2files.txt s3files.txt" |
| 15 |
|
|
.SH DESCRIPTION |
| 16 |
|
|
.I Pabopto2xyz |
| 17 |
|
|
takes three sets of standard single-channel BSDF files, each |
| 18 |
|
|
measured with a different light source and/or sensor filter to select |
| 19 |
|
|
different wavelengths, combining them into an equivalent set of 3-channel BSDF data |
| 20 |
|
|
files with CIE-XYZ colorimetry. |
| 21 |
|
|
The 3x3 transform from the input file measurements to CIE XYZ color space is |
| 22 |
|
|
set by the |
| 23 |
|
|
.I \-m |
| 24 |
|
|
option. |
| 25 |
|
|
The default coefficients correspond to a specific set of filters in use at LBNL, |
| 26 |
|
|
and are probably not applicable to any other instrument. |
| 27 |
|
|
.PP |
| 28 |
|
|
The |
| 29 |
|
|
.I \-o |
| 30 |
|
|
option is used to set the base output file name, which defaults to "pabopto_xyz". |
| 31 |
|
|
To this base name, the theta and phi angles are added, along with a ".txt" suffix. |
| 32 |
|
|
.PP |
| 33 |
|
|
The |
| 34 |
|
|
.I \-n |
| 35 |
|
|
option may be supplied on Unix systems for multiple processes to speed up |
| 36 |
|
|
the conversion. |
| 37 |
|
|
.PP |
| 38 |
|
|
The BSDF measurement file names are listed the three required input text files, |
| 39 |
|
|
dileneated in each by white space. |
| 40 |
|
|
File names or paths therein cannot contain white space, and quoting/escaping |
| 41 |
|
|
is not supported. |
| 42 |
|
|
The same incident directions must be provided in all three measurement sets, but may |
| 43 |
|
|
be broken into different files. |
| 44 |
|
|
(I.e., two or more BSDF files may correspond to the same incident direction.)\0 |
| 45 |
|
|
Only one file will be produced for each incident direction in the output. |
| 46 |
|
|
.PP |
| 47 |
|
|
.I Pabopto2xyz |
| 48 |
|
|
works by resampling the second and third input channels to correspond to the |
| 49 |
|
|
exiting directions measured in the first channel. |
| 50 |
|
|
A 2-D interpolant is applied at each incident direction for channels 2 and 3, |
| 51 |
|
|
the given 3x3 matrix is applied, |
| 52 |
|
|
and a combined virtual measurement is produced in output files beginning with |
| 53 |
|
|
the given base name. |
| 54 |
|
|
.PP |
| 55 |
|
|
The combined data files produced by |
| 56 |
|
|
.I pabopto2xyz |
| 57 |
|
|
are subsequently passed to |
| 58 |
|
|
.I pabopto2bsdf(1) |
| 59 |
|
|
to produce a Scattering Interpolant Representation (SIR) file for further |
| 60 |
|
|
processing. |
| 61 |
|
|
.SH EXAMPLE |
| 62 |
|
|
To combine three sets of measurements in a REC709 color space and produce |
| 63 |
|
|
a CIE-XYZ file for pabopto2bsdf, which produces a color SIR file: |
| 64 |
|
|
.IP "" .2i |
| 65 |
|
|
pabopto2bsdf -m .412 .358 .180 .213 .715 .072 .019 .119 .951 -o blinds_xyz filesR.txt filesG.txt filesB.txt |
| 66 |
|
|
.br |
| 67 |
|
|
pabopto2bsdf blinds_xyz*.txt > blinds_xyz.sir |
| 68 |
|
|
.SH AUTHOR |
| 69 |
|
|
Greg Ward |
| 70 |
|
|
.SH "SEE ALSO" |
| 71 |
|
|
bsdf2klems(1), bsdf2rad(1), bsdf2ttree(1), bsdfview(1), genBSDF(1), |
| 72 |
|
|
pabopto2bsdf(1) |