Commit 9ca4c739 authored by Turnhout, M.C. van's avatar Turnhout, M.C. van
Browse files

decapitalise

parent ab917b0d
function [RGB, PQR] = cld_OD2RGB(K, pam, Imax)
% [RGB, P, Q, R] = cld_OD2RGB(K, pam, Imax)
function [RGB, PQR] = cld_od2rgb(K, pam, Imax)
% [RGB, P, Q, R] = cld_od2rgb(K, pam, Imax)
%
% Calculate RGB value from amounts and optical density with
% RGB = (Imax + 1) * exp(-K*pam) - 1
......@@ -42,7 +42,7 @@ end
if nargout > 1
% calculate individual dye RGBs
PQR = zeros(3);
for c = 1:3 % loop (backwards) over dyes
for c = 1:3 % loop over dyes
% RGB of this dye only in column c
PQR(:, c) = (Imax-1)*exp(-pam(c)*K(:, c)) - 1;
end
......
function OD = cld_RGB2OD(RGB, Imax)
% OD = cld_RGB2OD(RGB, Imax)
function OD = cld_rgb2od(RGB, Imax)
% OD = cld_rgb2od(RGB, Imax)
%
% Calculate optical density OD from RGB with
% OD = -log( (RGB + 1)/(Imax + 1) )
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment