Revision 53cc9fe3025a68dd7b5ce2faa7ff9d1b1815cae6 authored by nathanCSharris on 08 October 2020, 14:39:32 UTC, committed by GitHub on 08 October 2020, 14:39:32 UTC
final github upload for Takeishi, Yeon et al to elife 100820
multitiff2M_16bit.m
function M = multitiff2M(tiff,framesel);
%This function converts a tif stack into a matlab matrix
%framesel should be the set of frames you want to grab (i.e. 1:361)
tiffinfo = imfinfo(tiff);
% infos sur image, struct dont la taille est le nb de frames
numframes = length(tiffinfo);
%nb de frames
M = zeros(tiffinfo(1).Height,tiffinfo(1).Width,['uint' num2str(tiffinfo(1).BitDepth)]);
for frame=framesel;
curframe = im2uint16(imread(tiff,frame));
M(:,:,frame-framesel(1)+1) = curframe;
end
Computing file changes ...