<?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: Locating the US continental divide,  part 1 - Introduction</title>
	<link>http://blogs.mathworks.com/steve/2009/04/24/continental-divide-1-intro/</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>Mon, 23 Nov 2009 01:28:32 +0000</pubDate>
	<generator>http://wordpress.org/?v=2.3.1</generator>
		<item>
		<title>By: Steve</title>
		<link>http://blogs.mathworks.com/steve/2009/04/24/continental-divide-1-intro/#comment-22183</link>
		<dc:creator>Steve</dc:creator>
		<pubDate>Mon, 05 Oct 2009 17:40:19 +0000</pubDate>
		<guid>http://blogs.mathworks.com/steve/2009/04/24/continental-divide-1-intro/#comment-22183</guid>
		<description>Matteo&#8212;No problem.  That issue gets even experienced users from time to time.</description>
		<content:encoded><![CDATA[<p>Matteo&mdash;No problem.  That issue gets even experienced users from time to time.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Matteo</title>
		<link>http://blogs.mathworks.com/steve/2009/04/24/continental-divide-1-intro/#comment-22182</link>
		<dc:creator>Matteo</dc:creator>
		<pubDate>Mon, 05 Oct 2009 17:22:56 +0000</pubDate>
		<guid>http://blogs.mathworks.com/steve/2009/04/24/continental-divide-1-intro/#comment-22182</guid>
		<description>Thank you Steve. Beginner's mistakes...</description>
		<content:encoded><![CDATA[<p>Thank you Steve. Beginner&#8217;s mistakes&#8230;</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Steve</title>
		<link>http://blogs.mathworks.com/steve/2009/04/24/continental-divide-1-intro/#comment-22180</link>
		<dc:creator>Steve</dc:creator>
		<pubDate>Mon, 05 Oct 2009 15:14:38 +0000</pubDate>
		<guid>http://blogs.mathworks.com/steve/2009/04/24/continental-divide-1-intro/#comment-22180</guid>
		<description>Matteo&dash;Values in the data files are stored by row, whereas your &lt;tt&gt;fread&lt;/tt&gt; call is filling the output matrix by column.  There's a mismatch between the number of columns in the input file and the number of rows you specified in the call to &lt;tt&gt;fread&lt;/tt&gt;, so the data is going to wrap around in funny ways.  Try something like this:

&lt;pre&gt;
B = fread(fid, [10800 4800], precision);
B = B';
&lt;/pre&gt;

&lt;tt&gt;multibandread&lt;/tt&gt; takes care of such details for you.</description>
		<content:encoded><![CDATA[<p>Matteo&dash;Values in the data files are stored by row, whereas your <tt>fread</tt> call is filling the output matrix by column.  There&#8217;s a mismatch between the number of columns in the input file and the number of rows you specified in the call to <tt>fread</tt>, so the data is going to wrap around in funny ways.  Try something like this:</p>
<pre>
B = fread(fid, [10800 4800], precision);
B = B';
</pre>
<p><tt>multibandread</tt> takes care of such details for you.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Matteo</title>
		<link>http://blogs.mathworks.com/steve/2009/04/24/continental-divide-1-intro/#comment-22167</link>
		<dc:creator>Matteo</dc:creator>
		<pubDate>Sat, 03 Oct 2009 04:48:47 +0000</pubDate>
		<guid>http://blogs.mathworks.com/steve/2009/04/24/continental-divide-1-intro/#comment-22167</guid>
		<description>Hi Steve, great Series. I am trying to use it on tiles A and B to get Canadian continental divide. But I have problems loading data with fread. When I display with imshow it is not right. Upon inspection I noticed columns are arranged in a series 1 to 8 with 9th column the one that should follow column 1. Here is my code.
&lt;pre&gt;
fid = fopen('b10g','r',byte_order);
[B] = fread(fid,[4800 10800],precision);
fid1 = fopen('a10g','r', byte_order);
[A] = fread(fid1,[4800 10800],precision);
dem = [A,B];
dem_cropped = dem(1500:4000, 6000:16500);
imshow(dem_cropped, display_range);
&lt;/pre&gt;
Do you notice anything wrong?
Thank you so much for any advice.</description>
		<content:encoded><![CDATA[<p>Hi Steve, great Series. I am trying to use it on tiles A and B to get Canadian continental divide. But I have problems loading data with fread. When I display with imshow it is not right. Upon inspection I noticed columns are arranged in a series 1 to 8 with 9th column the one that should follow column 1. Here is my code.</p>
<pre>
fid = fopen('b10g','r',byte_order);
[B] = fread(fid,[4800 10800],precision);
fid1 = fopen('a10g','r', byte_order);
[A] = fread(fid1,[4800 10800],precision);
dem = [A,B];
dem_cropped = dem(1500:4000, 6000:16500);
imshow(dem_cropped, display_range);
</pre>
<p>Do you notice anything wrong?<br />
Thank you so much for any advice.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Kazım</title>
		<link>http://blogs.mathworks.com/steve/2009/04/24/continental-divide-1-intro/#comment-21745</link>
		<dc:creator>Kazım</dc:creator>
		<pubDate>Sat, 09 May 2009 09:55:55 +0000</pubDate>
		<guid>http://blogs.mathworks.com/steve/2009/04/24/continental-divide-1-intro/#comment-21745</guid>
		<description>Very beatiful work.Thanks for shared.</description>
		<content:encoded><![CDATA[<p>Very beatiful work.Thanks for shared.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Steve</title>
		<link>http://blogs.mathworks.com/steve/2009/04/24/continental-divide-1-intro/#comment-21740</link>
		<dc:creator>Steve</dc:creator>
		<pubDate>Thu, 07 May 2009 17:48:33 +0000</pubDate>
		<guid>http://blogs.mathworks.com/steve/2009/04/24/continental-divide-1-intro/#comment-21740</guid>
		<description>T&#8212;You can use &lt;tt&gt;fread&lt;/tt&gt; if you like. &lt;tt&gt;multibandread&lt;/tt&gt; is more convenient to use for many "raw" files, but these are simple enough that &lt;tt&gt;fread&lt;/tt&gt; is pretty easy.</description>
		<content:encoded><![CDATA[<p>T&mdash;You can use <tt>fread</tt> if you like. <tt>multibandread</tt> is more convenient to use for many &#8220;raw&#8221; files, but these are simple enough that <tt>fread</tt> is pretty easy.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: T</title>
		<link>http://blogs.mathworks.com/steve/2009/04/24/continental-divide-1-intro/#comment-21739</link>
		<dc:creator>T</dc:creator>
		<pubDate>Thu, 07 May 2009 17:45:41 +0000</pubDate>
		<guid>http://blogs.mathworks.com/steve/2009/04/24/continental-divide-1-intro/#comment-21739</guid>
		<description>What's the reason for using multibandread instead of fread?  I tried it on different (though relatively large) images that also have one "band" and it seems slower than fread...</description>
		<content:encoded><![CDATA[<p>What&#8217;s the reason for using multibandread instead of fread?  I tried it on different (though relatively large) images that also have one &#8220;band&#8221; and it seems slower than fread&#8230;</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Steve</title>
		<link>http://blogs.mathworks.com/steve/2009/04/24/continental-divide-1-intro/#comment-21708</link>
		<dc:creator>Steve</dc:creator>
		<pubDate>Sat, 25 Apr 2009 22:53:27 +0000</pubDate>
		<guid>http://blogs.mathworks.com/steve/2009/04/24/continental-divide-1-intro/#comment-21708</guid>
		<description>Thai&#8212;Yes, these data sets are pretty big.  I used a 64-bit Linux computer with something like 6 GB of RAM.</description>
		<content:encoded><![CDATA[<p>Thai&mdash;Yes, these data sets are pretty big.  I used a 64-bit Linux computer with something like 6 GB of RAM.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Thai Hoang</title>
		<link>http://blogs.mathworks.com/steve/2009/04/24/continental-divide-1-intro/#comment-21707</link>
		<dc:creator>Thai Hoang</dc:creator>
		<pubDate>Sat, 25 Apr 2009 22:03:04 +0000</pubDate>
		<guid>http://blogs.mathworks.com/steve/2009/04/24/continental-divide-1-intro/#comment-21707</guid>
		<description>My Matlab runs out of memory with this new post.</description>
		<content:encoded><![CDATA[<p>My Matlab runs out of memory with this new post.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Rich Hoeg</title>
		<link>http://blogs.mathworks.com/steve/2009/04/24/continental-divide-1-intro/#comment-21705</link>
		<dc:creator>Rich Hoeg</dc:creator>
		<pubDate>Sat, 25 Apr 2009 14:17:29 +0000</pubDate>
		<guid>http://blogs.mathworks.com/steve/2009/04/24/continental-divide-1-intro/#comment-21705</guid>
		<description>Working with the continental divide in the Rockies is too easy! Your next assignment ... map all three major continental watershed divides found in Minnesota! There is one point in northern Minnesota where all three come together (Hudson Bay, St. Lawrence River, Mississippi River). Cheers!</description>
		<content:encoded><![CDATA[<p>Working with the continental divide in the Rockies is too easy! Your next assignment &#8230; map all three major continental watershed divides found in Minnesota! There is one point in northern Minnesota where all three come together (Hudson Bay, St. Lawrence River, Mississippi River). Cheers!</p>
]]></content:encoded>
	</item>
</channel>
</rss>
