Commit 11ee1d80 authored by Turnhout, M.C. van's avatar Turnhout, M.C. van
Browse files

split test scripts for simulated and IRL data

parent f78eee30
clear all; close all;
dyes = [0.5737953, 0.6956962, 0.4322119;
0.24696793, 0.84164965, 0.48024228]';
im = imread('data/2ColorImagecropped.tif');
[amounts, P, Q, R, RGB, A, K, iOD] = cld_decon(dyes, im, 'od');
a = squeeze(amounts(:, :, 2));
figure
hist(nonzeros(a(:)), 50); % histogram of pink amounts
[r, c] = ind2sub(size(a), find(a == min(a(:)))); % largest negative pink
[r, c] = ind2sub(size(a), find(a < -2, 1, 'first')) % largest negative pink
%
%
%
%
% [amounts, P, Q, R, RGB, A, K, iOD] = cld_decon(dyes, im, 'od');
%
%
% figure
% imshow(im)
%
% figure
% imshow(uint8(P))
%
% figure
% imshow(uint8(Q))
%
% figure
% imshow(uint8(R))
%
% for d = 1:3
%
% figure
% imagesc(amounts(:, :, d))
% colormap(gray)
% colorbar
%
% end
%
%
% figure
% imshow(uint8(RGB))
......@@ -5,7 +5,8 @@ dyes = [254 209 0; % yellow
0 155 58 % green
0 0 0]'; % black
im = imread('pics/Flag_of_Jamaica.png');
[amounts, P, Q, R, RGB, A, K, iOD] = cld_decon(dyes, im);
[amounts, P, Q, R, RGB, A, K, iOD] = cld_decon(dyes, im, 'od');
figure
......
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