Commit 7fca8d34 authored by Turnhout, M.C. van's avatar Turnhout, M.C. van
Browse files

decapitalise

parent 9ca4c739
...@@ -34,7 +34,7 @@ function [amounts, P, Q, R, RGB, A, K, iOD] = cld_decon(dyes, im, varargin) ...@@ -34,7 +34,7 @@ function [amounts, P, Q, R, RGB, A, K, iOD] = cld_decon(dyes, im, varargin)
% slightly from OD = -log( (RGB + 1)/Imax ); as it is used in the <a % slightly from OD = -log( (RGB + 1)/Imax ); as it is used in the <a
% href="https://imagej.net/Colour_Deconvolution">ImageJ plugin</a> % href="https://imagej.net/Colour_Deconvolution">ImageJ plugin</a>
% %
% See also cld_RGB2OD, cld_OD2RGB % See also cld_rgb2od, cld_od2rgb
% set defaults % set defaults
...@@ -53,7 +53,7 @@ end ...@@ -53,7 +53,7 @@ end
% RGB or OD? % RGB or OD?
if strcmpi(rod(1), 'r') if strcmpi(rod(1), 'r')
% dyes contains RGB values, convert to OD % dyes contains RGB values, convert to OD
A = cld_RGB2OD(dyes, Imax); A = cld_rgb2od(dyes, Imax);
else else
A = dyes; A = dyes;
end end
...@@ -71,7 +71,7 @@ for c = 1:3 ...@@ -71,7 +71,7 @@ for c = 1:3
end end
% convert image RGB to image OD % convert image RGB to image OD
iOD = cld_RGB2OD(double(im), Imax); iOD = cld_rgb2od(double(im), Imax);
done = 0; p = 0; done = 0; p = 0;
fprintf('Processing image: 0%% done') fprintf('Processing image: 0%% done')
...@@ -96,7 +96,7 @@ for r = 1:size(im, 1) ...@@ -96,7 +96,7 @@ for r = 1:size(im, 1)
amounts(r, c, :) = pam; amounts(r, c, :) = pam;
% reconstruct pixels RGB contributions % reconstruct pixels RGB contributions
[RGB(r, c, :), PQR] = cld_OD2RGB(K, pam, Imax); [RGB(r, c, :), PQR] = cld_od2rgb(K, pam, Imax);
P(r, c, :) = PQR(:, 1); P(r, c, :) = PQR(:, 1);
Q(r, c, :) = PQR(:, 2); Q(r, c, :) = PQR(:, 2);
R(r, c, :) = PQR(:, 3); R(r, c, :) = PQR(:, 3);
......
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