From bba4b0c1f005e8deb670d29bfc3f762f5706c2c5 Mon Sep 17 00:00:00 2001 From: Shin Kira Date: Wed, 8 Mar 2017 13:01:04 -0500 Subject: [PATCH] Update tiffRead.m For SI2016 data, scanimage.util.opentif is not readily available? (I could not find it online...) So I came up with workaround with MATLAB built-in function. This might be easier for other people in the lab to use. --- tiffRead.m | 13 ++++++++++--- 1 file changed, 10 insertions(+), 3 deletions(-) diff --git a/tiffRead.m b/tiffRead.m index da76b90..2550c2a 100644 --- a/tiffRead.m +++ b/tiffRead.m @@ -92,8 +92,15 @@ end varargout{2} = s.scanimage; case 2016 - siHeader = scanimage.util.opentif(fPath); - varargout{2} = siHeader; + info = imfinfo(fPath); + temp = info.Software; + ind = strfind(temp,'SI.'); + temp(ind(2:end)-1) = ';'; + temp(end) = ';'; + eval(temp); + varargout{2} = SI; + % siHeader = scanimage.util.opentif(fPath); + % varargout{2} = siHeader; case -1 % Not a scanimage file. Since a second output argument was % requested, we use a fake scanimage metadata to make the Acq2P @@ -104,4 +111,4 @@ end % Close: -t.close(); \ No newline at end of file +t.close();