259 |
|
especially for matrix multiplication |
260 |
|
and complex operations on long input rows. |
261 |
|
.SH EXAMPLES |
262 |
< |
To convert two hyperspectral inputs to RGB color space, |
262 |
> |
To convert two hyperspectral pictures to RGB color space, |
263 |
|
average them together, and write them out as a RADIANCE picture: |
264 |
|
.IP "" .2i |
265 |
< |
rcomb -C RGB -s .5 img1.spc -s .5 img2.spc > avg.hdr |
265 |
> |
rcomb -C RGB -s .5 img1.hsr -s .5 -fc img2.hsr > avg.hdr |
266 |
|
.PP |
267 |
|
Divide one set of matrix elements by the Euclidean sum of two others: |
268 |
|
.IP "" .2i |
272 |
|
Compute the absolute and relative differences between melanopic and photopic values |
273 |
|
in a spectral image: |
274 |
|
.IP "" .2i |
275 |
< |
rcomb -fa -C MY -e "abs(x):if(x,x,-x)" |
275 |
> |
rcomb -C MY -e "abs(x):if(x,x,-x)" |
276 |
|
-e "co(p)=select(p,abs(ci(1,1)-ci(1,2)),(ci(1,1)-ci(1,2))/ci(1,2))" |
277 |
< |
input_spec.hsr > compare.mtx |
277 |
> |
input_spec.hsr -fa > compare.mtx |
278 |
|
.PP |
279 |
|
Concatenate a spectral flux coefficient matrix with a spectral sky |
280 |
|
matrix to compute a set of melanopic lux values: |