<?xml version="1.0" encoding="UTF-8"?><!-- generator="wordpress/2.3.1" -->
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	>
<channel>
	<title>Comments on: How many images can fit in a TIFF file?</title>
	<link>http://blogs.mathworks.com/steve/2007/09/16/multipage-tiffs/</link>
	<description>Steve Eddins manages the Image &#38; Geospatial development team at &#60;a href="http://www.mathworks.com/"&#62;The MathWorks&#60;/a&#62; and coauthored &#60;a href="http://www.mathworks.com/support/books/book5291.html?category=-1&#38;language=-1"&#62;Digital Image Processing Using MATLAB&#60;/a&#62;. He writes here about image processing concepts, algorithm implementations, and MATLAB.&#60;br&#62;&#60;br&#62;&#60;img&#62;</description>
	<pubDate>Sun, 08 Nov 2009 04:56:55 +0000</pubDate>
	<generator>http://wordpress.org/?v=2.3.1</generator>
		<item>
		<title>By: Steve</title>
		<link>http://blogs.mathworks.com/steve/2007/09/16/multipage-tiffs/#comment-22234</link>
		<dc:creator>Steve</dc:creator>
		<pubDate>Mon, 19 Oct 2009 19:48:43 +0000</pubDate>
		<guid>http://blogs.mathworks.com/steve/2007/09/16/multipage-tiffs/#comment-22234</guid>
		<description>Eran&#8212;Thanks.  I corrected your syntax; you had &#60;&#62; instead of ~=.</description>
		<content:encoded><![CDATA[<p>Eran&mdash;Thanks.  I corrected your syntax; you had &lt;&gt; instead of ~=.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Eran Mukamel</title>
		<link>http://blogs.mathworks.com/steve/2007/09/16/multipage-tiffs/#comment-22217</link>
		<dc:creator>Eran Mukamel</dc:creator>
		<pubDate>Tue, 13 Oct 2009 21:53:02 +0000</pubDate>
		<guid>http://blogs.mathworks.com/steve/2007/09/16/multipage-tiffs/#comment-22217</guid>
		<description>Following up on Andrew Carter's suggestion, here is a function that returns the number of frames in a tiff stack:

&lt;pre&gt;

function j = tiff_frames(fn)
%
% n = tiff_frames(filename)
%
% Returns the number of slices in a TIFF stack.
%
%

status = 1; j=0;
jstep = 10^3;
while status
    try
        j=j+jstep;
        imread(fn,j);
    catch
        if jstep&#60;&#62;1
            j=j-jstep;
            jstep = jstep/10;
        else
            j=j-1;
            status = 0;
        end
    end
end

&lt;/pre&gt;</description>
		<content:encoded><![CDATA[<p>Following up on Andrew Carter&#8217;s suggestion, here is a function that returns the number of frames in a tiff stack:</p>
<pre>

function j = tiff_frames(fn)
%
% n = tiff_frames(filename)
%
% Returns the number of slices in a TIFF stack.
%
%

status = 1; j=0;
jstep = 10^3;
while status
    try
        j=j+jstep;
        imread(fn,j);
    catch
        if jstep&lt;&gt;1
            j=j-jstep;
            jstep = jstep/10;
        else
            j=j-1;
            status = 0;
        end
    end
end
</pre>
]]></content:encoded>
	</item>
	<item>
		<title>By: Steve</title>
		<link>http://blogs.mathworks.com/steve/2007/09/16/multipage-tiffs/#comment-22012</link>
		<dc:creator>Steve</dc:creator>
		<pubDate>Mon, 27 Jul 2009 13:51:06 +0000</pubDate>
		<guid>http://blogs.mathworks.com/steve/2007/09/16/multipage-tiffs/#comment-22012</guid>
		<description>Jurgen&#8212;Thanks for your input.</description>
		<content:encoded><![CDATA[<p>Jurgen&mdash;Thanks for your input.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: jurgen</title>
		<link>http://blogs.mathworks.com/steve/2007/09/16/multipage-tiffs/#comment-21994</link>
		<dc:creator>jurgen</dc:creator>
		<pubDate>Wed, 22 Jul 2009 15:32:33 +0000</pubDate>
		<guid>http://blogs.mathworks.com/steve/2007/09/16/multipage-tiffs/#comment-21994</guid>
		<description>Hello Steve, 
I read your post rather accidently while I was searching fro a method to read meta data from tif files but : 
you wrote " I've seen a tool that takes a directory full of single-image TIFF files and merges them quickly into a multipage TIFF file. Would something like that be helpful to you? " I would be interested in the tool since we work with highspeed images of spreading processes, and then we could structure all images of one throw.

kind regard, and thanks fro the answer</description>
		<content:encoded><![CDATA[<p>Hello Steve,<br />
I read your post rather accidently while I was searching fro a method to read meta data from tif files but :<br />
you wrote &#8221; I&#8217;ve seen a tool that takes a directory full of single-image TIFF files and merges them quickly into a multipage TIFF file. Would something like that be helpful to you? &#8221; I would be interested in the tool since we work with highspeed images of spreading processes, and then we could structure all images of one throw.</p>
<p>kind regard, and thanks fro the answer</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Steve</title>
		<link>http://blogs.mathworks.com/steve/2007/09/16/multipage-tiffs/#comment-21817</link>
		<dc:creator>Steve</dc:creator>
		<pubDate>Mon, 01 Jun 2009 14:44:18 +0000</pubDate>
		<guid>http://blogs.mathworks.com/steve/2007/09/16/multipage-tiffs/#comment-21817</guid>
		<description>Sathya&#8212;You've given no details about what kind of processing you are doing, so I can't even begin to guess what the issue might be.  I suggest that you use the MATLAB Profiler to analyze the performance of your code and see where the bottlenecks are.</description>
		<content:encoded><![CDATA[<p>Sathya&mdash;You&#8217;ve given no details about what kind of processing you are doing, so I can&#8217;t even begin to guess what the issue might be.  I suggest that you use the MATLAB Profiler to analyze the performance of your code and see where the bottlenecks are.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Sathya</title>
		<link>http://blogs.mathworks.com/steve/2007/09/16/multipage-tiffs/#comment-21774</link>
		<dc:creator>Sathya</dc:creator>
		<pubDate>Fri, 22 May 2009 21:06:54 +0000</pubDate>
		<guid>http://blogs.mathworks.com/steve/2007/09/16/multipage-tiffs/#comment-21774</guid>
		<description>Thanks for the reply.
I have an avi file with more than 10000 frames. I can write each frame as a single tif file(overwrite next time) and process image and find length of an object in the image. (I need to find length of object for all the 10000 frames and plot a graph using the result).But for the 100 frames itself, it takes much time. I tried for 250 frames too. Not dare enough to try 10000 frames. Is there anyway to do that in minimum time?</description>
		<content:encoded><![CDATA[<p>Thanks for the reply.<br />
I have an avi file with more than 10000 frames. I can write each frame as a single tif file(overwrite next time) and process image and find length of an object in the image. (I need to find length of object for all the 10000 frames and plot a graph using the result).But for the 100 frames itself, it takes much time. I tried for 250 frames too. Not dare enough to try 10000 frames. Is there anyway to do that in minimum time?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Steve</title>
		<link>http://blogs.mathworks.com/steve/2007/09/16/multipage-tiffs/#comment-21714</link>
		<dc:creator>Steve</dc:creator>
		<pubDate>Mon, 27 Apr 2009 19:24:50 +0000</pubDate>
		<guid>http://blogs.mathworks.com/steve/2007/09/16/multipage-tiffs/#comment-21714</guid>
		<description>Sathya&#8212;Use &lt;tt&gt;imwrite&lt;/tt&gt; with the &lt;tt&gt;'WriteMode', 'append'&lt;/tt&gt; option.</description>
		<content:encoded><![CDATA[<p>Sathya&mdash;Use <tt>imwrite</tt> with the <tt>&#8216;WriteMode&#8217;, &#8216;append&#8217;</tt> option.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Sathya</title>
		<link>http://blogs.mathworks.com/steve/2007/09/16/multipage-tiffs/#comment-21713</link>
		<dc:creator>Sathya</dc:creator>
		<pubDate>Mon, 27 Apr 2009 19:13:27 +0000</pubDate>
		<guid>http://blogs.mathworks.com/steve/2007/09/16/multipage-tiffs/#comment-21713</guid>
		<description>Hello,
I have an avi video, from which I can read every 50th frame. I want to save these frames as a single tif file. Is that possible? How can I do that?</description>
		<content:encoded><![CDATA[<p>Hello,<br />
I have an avi video, from which I can read every 50th frame. I want to save these frames as a single tif file. Is that possible? How can I do that?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Steve</title>
		<link>http://blogs.mathworks.com/steve/2007/09/16/multipage-tiffs/#comment-21634</link>
		<dc:creator>Steve</dc:creator>
		<pubDate>Thu, 02 Apr 2009 17:25:36 +0000</pubDate>
		<guid>http://blogs.mathworks.com/steve/2007/09/16/multipage-tiffs/#comment-21634</guid>
		<description>Learner&#8212;Although the PGM format supports multiple images per file, the MATLAB functions &lt;tt&gt;imread&lt;/tt&gt; and &lt;tt&gt;imwrite&lt;/tt&gt; do not.  I suggest that you consider using TIFF instead.  Also, I can't think of any particular reason for using the DFT in the process of storing multiple images.</description>
		<content:encoded><![CDATA[<p>Learner&mdash;Although the PGM format supports multiple images per file, the MATLAB functions <tt>imread</tt> and <tt>imwrite</tt> do not.  I suggest that you consider using TIFF instead.  Also, I can&#8217;t think of any particular reason for using the DFT in the process of storing multiple images.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Steve</title>
		<link>http://blogs.mathworks.com/steve/2007/09/16/multipage-tiffs/#comment-21629</link>
		<dc:creator>Steve</dc:creator>
		<pubDate>Wed, 01 Apr 2009 11:29:35 +0000</pubDate>
		<guid>http://blogs.mathworks.com/steve/2007/09/16/multipage-tiffs/#comment-21629</guid>
		<description>Petr&#8212;Thanks for the information.</description>
		<content:encoded><![CDATA[<p>Petr&mdash;Thanks for the information.</p>
]]></content:encoded>
	</item>
</channel>
</rss>
