Skip to content
Snippets Groups Projects
Commit 84181332 authored by ac_fx's avatar ac_fx
Browse files

applyColormap parula for leversc

parent 5a267903
No related branches found
No related tags found
No related merge requests found
function imc = applyColormap(strDB)
% strDB = '/g/leverjs/Olivier/Agne/march_2023_20x/kymo_downsize/2022-04-05_steady_state_48h_deprived_13_ori.LEVER_ssf_cache.LEVER';
imKymo = leversc.loadImage(strDB,1,1);
kpix = imKymo(find(imKymo));
clipLimits = prctile(kpix,[2.5,97.5]);
imq = SSF.quantize8(imKymo,clipLimits);
cmap = [1,1,1;parula(255)];
% brute force ? ack...
imr = 0*imq; img = 0*imq; imb = 0*imq;
for i = 1 : 255
idx = find(imq == i);
imr(idx) = cmap(i,1);
img(idx) = cmap(i,2);
imb(idx) = cmap(i,3);
end
imc(:,:,:,1) = imr;
imc(:,:,:,2) = img;
imc(:,:,:,3) = imb;
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment