function [dkl] = OurConeIncToDKL(coneInc,bgLMS,T_cones,T_Y)
% [dkl] = OurConeIncToDKL(coneInc,bgLMS,T_cones,T_Y)
%
% Convert from incremental cone coordinates to DKL
% coordinates.
%
% The DKL coordinate system convention is (L+M, L-M, S)
%
% The code follows that published by Brainard
% as an appendix to Human Color Vision by Kaiser
% and Boynton.
%
% See also DKLToConeInc, ComputeDKL_M, DKLDemo.
%
% 8/30/96	dhb	 Converted this from script.
% 10/5/12   dhb  Comment specifying coordinate system convention.
%
% 04/08/15	ek	ComputeDKL_Mが変更されたのに合わせてConeIncToDKLを修正

% Compute conversion matrix
M_ConeIncToDKL = ComputeDKL_M(bgLMS,T_cones,T_Y);
% M_DKLToConeInc = inv(M_ConeIncToDKL);

% Multiply the vectors we wish to
% convert by M to obtain its DKL coordinates.
dkl = M_ConeIncToDKL*coneInc;
