Skip to content
Snippets Groups Projects
Commit b919febf authored by Eric Wait's avatar Eric Wait
Browse files

Added the ability to display time as the third detention in 2-D images

parent 4f0667ea
No related branches found
No related tags found
No related merge requests found
function lever3d()
function lever3d(make2d3d)
global imageData orgImage processedImage tmr uiControlFig useDistance
if (~exist('make2d3d','var') || isempty(make2d3d))
make2d3d = 0;
end
if (~isempty(uiControlFig) && ishandle(uiControlFig))
close(uiControlFig);
end
......@@ -16,7 +20,14 @@ if (FileName==0), return, end
%[orgImage, imageData] = tiffReader([],[],[],[],'d:\Users\Eric.Bioimage29\Documents\Images\LEVer3d\Susan_overnight_new');
[orgImage, imageData] = tiffReader([],[],[],[],fullfile(PathName,FileName));
if (make2d3d~=0)
orgImage = squeeze(orgImage);
imageData.ZDimension = imageData.NumberOfFrames;
imageData.NumberOfFrames = 1;
imageData.ZPixelPhysicalSize = imageData.XPixelPhysicalSize;
else
processedImage = orgImage;
end
tmr = timer('ExecutionMode','fixedSpacing','Period',0.1,'TimerFcn','CheckMessage');
start(tmr);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment