diff options
| author | Carl Hetherington <cth@carlh.net> | 2022-05-05 20:56:14 +0200 |
|---|---|---|
| committer | Carl Hetherington <cth@carlh.net> | 2022-05-05 21:09:40 +0200 |
| commit | cbbb9e63b7ec7a5c34f186ceafe5da6be8faa739 (patch) | |
| tree | 79ccaa11973954138df02c2022b2ea25c0717b9d /src/rgb_xyz.cc | |
| parent | ad7244de981a7dd0b9b4f8f3d62d4704f1968012 (diff) | |
Allow LUTs to be created with a particular range.
Diffstat (limited to 'src/rgb_xyz.cc')
| -rw-r--r-- | src/rgb_xyz.cc | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/src/rgb_xyz.cc b/src/rgb_xyz.cc index b8acc9b0..de6a40db 100644 --- a/src/rgb_xyz.cc +++ b/src/rgb_xyz.cc @@ -80,8 +80,8 @@ dcp::xyz_to_rgba ( int* xyz_y = xyz_image->data (1); int* xyz_z = xyz_image->data (2); - auto lut_in = conversion.out()->lut (12, false); - auto lut_out = conversion.in()->lut (16, true); + auto lut_in = conversion.out()->lut(0, 1, 12, false); + auto lut_out = conversion.in()->lut(0, 1, 16, true); boost::numeric::ublas::matrix<double> const matrix = conversion.xyz_to_rgb (); double fast_matrix[9] = { @@ -157,8 +157,8 @@ dcp::xyz_to_rgb ( int* xyz_y = xyz_image->data (1); int* xyz_z = xyz_image->data (2); - auto lut_in = conversion.out()->lut (12, false); - auto lut_out = conversion.in()->lut (16, true); + auto lut_in = conversion.out()->lut(0, 1, 12, false); + auto lut_out = conversion.in()->lut(0, 1, 16, true); auto const matrix = conversion.xyz_to_rgb (); double fast_matrix[9] = { @@ -276,8 +276,8 @@ dcp::rgb_to_xyz ( double x, y, z; } d; - auto lut_in = conversion.in()->lut (12, false); - auto lut_out = conversion.out()->lut (16, true); + auto lut_in = conversion.in()->lut(0, 1, 12, false); + auto lut_out = conversion.out()->lut(0, 1, 16, true); /* This is is the product of the RGB to XYZ matrix, the Bradford transform and the DCI companding */ double fast_matrix[9]; |
