## Copyright (C) 2013 Ming Liu ## ## This program is free software; you can redistribute it and/or modify ## it under the terms of the GNU General Public License as published by ## the Free Software Foundation; either version 3 of the License, or ## (at your option) any later version. ## ## This program is distributed in the hope that it will be useful, ## but WITHOUT ANY WARRANTY; without even the implied warranty of ## MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the ## GNU General Public License for more details. ## ## You should have received a copy of the GNU General Public License ## along with this program; if not, see . function xyz = whitepoint(string) switch string case 'a' xyz = [1.0985 1.0000 0.3558]; case 'c' xyz = [0.9807 1.0000 1.1823]; case 'd50' xyz = [0.9642 1.0000 0.8251]; case 'd55' xyz = [0.9568 1.0000 0.9214]; case 'd65' xyz = [0.9504 1.0000 1.0889]; case 'icc' xyz = [0.9642 1.0000 0.8249]; otherwise error('string must be one of a, c, icc, d50, d55, d65'); end end %XYZ color values of standard illuminants