Commit 892b1fb7 authored by Turnhout, M.C. van's avatar Turnhout, M.C. van
Browse files

add Ruifrok arrow, scale axis

parent 0ff4f10f
......@@ -11,23 +11,28 @@ dyes = [254 209 0; % yellow
[amounts, P, Q, R, RGB, A, K, iOD] = cld_decon(dyes, im(1, 1, :), 'rgb');
% do the deconvolve
[amounts, P, Q, R, RGB, A, K2, iOD] = cld_decon(dyes(:, 1:2), im(1, 1, :), 'rgb');
[amounts, P, Q, R, RGB, A, K2, iOD] = cld_decon(dyes(:, 1:2), im(1, 1, :), 'rgb', 'cross');
K(:, 4) = K2(:, 3);
dyes(:, 4) = 255/300*256*exp(-2*K(:, 4)) - 1;
% do the deconvolve
[amounts, P, Q, R, RGB, A, K3, iOD] = cld_decon(dyes(:, 1:2), im(1, 1, :), 'rgb', 'norm');
K(:, 5) = K3(:, 3);
dyes(:, 5) = 256*exp(-2*K(:, 5)) - 1;
figure
hold on
for c = 1:4
for c = 1:5
quiver3(0, 0, 0, K(1, c), K(2, c), K(3, c), 'linewidth', 2, 'color', dyes(:, c)/255)
end
R = eye(3);
for c = 1:3
quiver3(0, 0, 0, R(1, c), R(2, c), R(3, c), 'linewidth', 1, 'color', R(:, c))
end
axis([-1/4 5/4 -1/4 5/4 -1/4 5/4])
grid on
axis equal
axis equal tight
xlabel('R')
ylabel('G')
zlabel('B')
......@@ -50,9 +55,9 @@ end
for c = 1:3
quiver3(0, 0, 0, R(1, c), R(2, c), R(3, c), 'linewidth', 1, 'color', R(:, c))
end
axis([-1/4 5/4 -1/4 5/4 -1/4 5/4])
grid on
axis equal
axis equal tight
xlabel('R')
ylabel('G')
zlabel('B')
......
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