function [ imgRGB ] = D35WQ8_YCbCr_to_RGB( imgYCbCr )
    %!!!!!!!!!!!!!!!!!!!!!!!!
    % coefficients in slides are not correct inverse.
    %imgYCbCr = double(imgYCbCr);
    y = reshape(imgYCbCr, [], 3);
    % W1 = [.299, .587, .114; -.1687, .3313, .5; .5, -.4187, .0813];
    % Using the inverse, hardcoded...
    invW = [1.100953318987135443052238770178519189358 -0.4447659684111785471927191792929079383612 1.1915658775037616390335415417212061584;1.228764528976554970540746580809354782104 -0.1523230101662708391163647547728032805026 -0.7861949719580796358542329471674747765064;-0.442717727073605793464139424031600356102 1.950865188794239646341566185583360493183 0.9229671154891927464802847680402919650078];
    % 128 downscaled to 0.5
    %b = [0, .5, .5];
    b = [0, 128, 128];
    y_b = bsxfun(@minus, y, b);
    x1 = (y_b*invW');
    
    imgRGB = reshape(x1, size(imgYCbCr));
    %imgRGB = uint8(imgRGB);
    % WITH THIS I GET WRONG RGB IMG
    % W2 = [1, 0, 1.402; 1, -.34414, -.71414; 1, 1.772, 0];
    % x2 = (W2*y')';
    %imgRGB_slides = reshape(x2, size(imgYCbCr));
    %imgRGB = reshape(x2, size(imgYCbCr));
end