diff options
| author | Carl Hetherington <cth@carlh.net> | 2015-06-11 16:18:42 +0100 |
|---|---|---|
| committer | Carl Hetherington <cth@carlh.net> | 2015-06-11 16:18:42 +0100 |
| commit | 64e234d1828e9718aa6e8d4dce065b80491eb8f4 (patch) | |
| tree | 2425ca2d91a9a7eb27ca66f0c9d922da5a7f58d6 /src | |
| parent | 07931370047752c51c54f91a77cef13320de267c (diff) | |
Fix thinko which broke xyz->rgb conversion.
Diffstat (limited to 'src')
| -rw-r--r-- | src/rgb_xyz.cc | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/src/rgb_xyz.cc b/src/rgb_xyz.cc index a52d4f70..293ad5e1 100644 --- a/src/rgb_xyz.cc +++ b/src/rgb_xyz.cc @@ -28,6 +28,7 @@ using std::min; using std::max; +using std::cout; using boost::shared_ptr; using boost::optional; using namespace dcp; @@ -70,8 +71,8 @@ dcp::xyz_to_rgba ( int* xyz_y = xyz_image->data (1); int* xyz_z = xyz_image->data (2); - double const * lut_in = conversion.in()->lut (16, true); - double const * lut_out = conversion.out()->lut (12, false); + double const * lut_in = conversion.out()->lut (12, false); + double const * lut_out = conversion.in()->lut (16, true); boost::numeric::ublas::matrix<double> const matrix = conversion.xyz_to_rgb (); int const height = xyz_image->size().height; @@ -150,8 +151,8 @@ dcp::xyz_to_rgb ( int* xyz_y = xyz_image->data (1); int* xyz_z = xyz_image->data (2); - double const * lut_in = conversion.in()->lut (12, true); - double const * lut_out = conversion.out()->lut (16, false); + double const * lut_in = conversion.out()->lut (12, false); + double const * lut_out = conversion.in()->lut (16, true); boost::numeric::ublas::matrix<double> const matrix = conversion.xyz_to_rgb (); for (int y = 0; y < xyz_image->size().height; ++y) { |
