Commit 9ca4c739 by Turnhout, M.C. van

### decapitalise

parent ab917b0d
 function [RGB, PQR] = cld_OD2RGB(K, pam, Imax) function [RGB, PQR] = cld_od2rgb(K, pam, Imax) % [RGB, P, Q, R] = cld_OD2RGB(K, pam, Imax) % [RGB, P, Q, R] = cld_od2rgb(K, pam, Imax) % % % Calculate RGB value from amounts and optical density with % Calculate RGB value from amounts and optical density with % RGB = (Imax + 1) * exp(-K*pam) - 1 % RGB = (Imax + 1) * exp(-K*pam) - 1 ... @@ -42,7 +42,7 @@ end ... @@ -42,7 +42,7 @@ end if nargout > 1 if nargout > 1 % calculate individual dye RGBs % calculate individual dye RGBs PQR = zeros(3); 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 % RGB of this dye only in column c PQR(:, c) = (Imax-1)*exp(-pam(c)*K(:, c)) - 1; PQR(:, c) = (Imax-1)*exp(-pam(c)*K(:, c)) - 1; end end ... ...
 function OD = cld_RGB2OD(RGB, Imax) function OD = cld_rgb2od(RGB, Imax) % OD = cld_RGB2OD(RGB, Imax) % OD = cld_rgb2od(RGB, Imax) % % % Calculate optical density OD from RGB with % Calculate optical density OD from RGB with % OD = -log( (RGB + 1)/(Imax + 1) ) % 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!