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

draw_ssf_kymo for 3d

parent af28cef4
No related branches found
No related tags found
No related merge requests found
function imq = draw_ssf_kymo(strKymoFile)
targetChannels = 1;
imKymo = SSF.loadImage(strKymoFile,targetChannels);
imp = imKymo;
imp(imp<0)=0;
imp = max(imp,[],1);
imp = SSF.quantize8(imp);
imn = imKymo;
imn(imn>0)=0;
imn=abs(imn);
imn = max(imn,[],1);
imn = SSF.quantize8(imn);
imq(:,:,1) = squeeze(imp);
imq(:,:,2) = squeeze(imn);
imq(:,:,3) = 0*imp;
% clipLimits = [minVal,maxVal];
function im = quantize8(im,clipLimits)
function [im, clipLimits] = quantize8(im,clipLimits)
if isa(im,'uint8')
return
end
if ~exist('clipLimits','var')
clipLimits = [min(im(:)), max(im(:))];
end
im = max(im,clipLimits(1));
im = min(im,clipLimits(2));
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment