<?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: Linear indexing</title>
	<link>http://blogs.mathworks.com/steve/2008/02/08/linear-indexing/</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 02:28:13 +0000</pubDate>
	<generator>http://wordpress.org/?v=2.3.1</generator>
		<item>
		<title>By: Steve</title>
		<link>http://blogs.mathworks.com/steve/2008/02/08/linear-indexing/#comment-20312</link>
		<dc:creator>Steve</dc:creator>
		<pubDate>Sat, 23 Feb 2008 19:50:12 +0000</pubDate>
		<guid>http://blogs.mathworks.com/steve/2008/02/08/linear-indexing/#comment-20312</guid>
		<description>JanKees&#8212;See &lt;tt&gt;normxcorr2&lt;/tt&gt;.</description>
		<content:encoded><![CDATA[<p>JanKees&mdash;See <tt>normxcorr2</tt>.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: JanKees</title>
		<link>http://blogs.mathworks.com/steve/2008/02/08/linear-indexing/#comment-20307</link>
		<dc:creator>JanKees</dc:creator>
		<pubDate>Sat, 23 Feb 2008 12:37:30 +0000</pubDate>
		<guid>http://blogs.mathworks.com/steve/2008/02/08/linear-indexing/#comment-20307</guid>
		<description>Hi, Steve:

As you are dealing with indexing, maybe my question fits in this topic: is there a fast way to do template matching in Matlab? I am thinking in something related to xcorr/xcorr2 or something related to it (as in the case of the summation of the absolute/squared difference).

Best regards from,

JanKees</description>
		<content:encoded><![CDATA[<p>Hi, Steve:</p>
<p>As you are dealing with indexing, maybe my question fits in this topic: is there a fast way to do template matching in Matlab? I am thinking in something related to xcorr/xcorr2 or something related to it (as in the case of the summation of the absolute/squared difference).</p>
<p>Best regards from,</p>
<p>JanKees</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Steve</title>
		<link>http://blogs.mathworks.com/steve/2008/02/08/linear-indexing/#comment-20210</link>
		<dc:creator>Steve</dc:creator>
		<pubDate>Sat, 16 Feb 2008 13:16:45 +0000</pubDate>
		<guid>http://blogs.mathworks.com/steve/2008/02/08/linear-indexing/#comment-20210</guid>
		<description>Kevin&#8212;The later chapters are about image analysis and object recognition.  There's nothing in the book about tracking.</description>
		<content:encoded><![CDATA[<p>Kevin&mdash;The later chapters are about image analysis and object recognition.  There&#8217;s nothing in the book about tracking.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Kevin Lan</title>
		<link>http://blogs.mathworks.com/steve/2008/02/08/linear-indexing/#comment-20206</link>
		<dc:creator>Kevin Lan</dc:creator>
		<pubDate>Sat, 16 Feb 2008 07:28:10 +0000</pubDate>
		<guid>http://blogs.mathworks.com/steve/2008/02/08/linear-indexing/#comment-20206</guid>
		<description>They are not quite parallel but I will try that, thank you. And I just bought your book "Digital Image Processing using Matlab" to try to solve one of my recent projects. Which part of the book should I read to solve pattern tracking/detection/recognition problems? I basically have a light microscope image that has some fingerprint-like patterns that I would like to detect and mark. Or what methods would you recommend? Thank you!</description>
		<content:encoded><![CDATA[<p>They are not quite parallel but I will try that, thank you. And I just bought your book &#8220;Digital Image Processing using Matlab&#8221; to try to solve one of my recent projects. Which part of the book should I read to solve pattern tracking/detection/recognition problems? I basically have a light microscope image that has some fingerprint-like patterns that I would like to detect and mark. Or what methods would you recommend? Thank you!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Steve</title>
		<link>http://blogs.mathworks.com/steve/2008/02/08/linear-indexing/#comment-20201</link>
		<dc:creator>Steve</dc:creator>
		<pubDate>Fri, 15 Feb 2008 20:27:41 +0000</pubDate>
		<guid>http://blogs.mathworks.com/steve/2008/02/08/linear-indexing/#comment-20201</guid>
		<description>From your description, especially the "lines very much blended to the background color" part, it sounds challenging.  If the lines are parallel, however, you might try computing a projection along the direction parallel to the lines.  The line locations would show up as peaks in the projection.</description>
		<content:encoded><![CDATA[<p>From your description, especially the &#8220;lines very much blended to the background color&#8221; part, it sounds challenging.  If the lines are parallel, however, you might try computing a projection along the direction parallel to the lines.  The line locations would show up as peaks in the projection.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Kevin Lan</title>
		<link>http://blogs.mathworks.com/steve/2008/02/08/linear-indexing/#comment-20182</link>
		<dc:creator>Kevin Lan</dc:creator>
		<pubDate>Thu, 14 Feb 2008 20:20:31 +0000</pubDate>
		<guid>http://blogs.mathworks.com/steve/2008/02/08/linear-indexing/#comment-20182</guid>
		<description>Hello Steve,
I am trying to analyze a scanning electron microscope image which has many layers bounded very closely which makes the edges/boundaries of the layers very unclear (but can still tell by naked eyes). It also has some obvious cracks as well. I tried a couple of edge functions and they didn't give me satisfactory results, either too much distaction on surrounding or no edges except for cracks. If you have hard time imagining the image, it just looks a page of lined notepad with the lines very much blended to the background color and with a few obvious crack spreaded on it. Is there a way that I can detect the edges accurately and clearly?
Thank you!</description>
		<content:encoded><![CDATA[<p>Hello Steve,<br />
I am trying to analyze a scanning electron microscope image which has many layers bounded very closely which makes the edges/boundaries of the layers very unclear (but can still tell by naked eyes). It also has some obvious cracks as well. I tried a couple of edge functions and they didn&#8217;t give me satisfactory results, either too much distaction on surrounding or no edges except for cracks. If you have hard time imagining the image, it just looks a page of lined notepad with the lines very much blended to the background color and with a few obvious crack spreaded on it. Is there a way that I can detect the edges accurately and clearly?<br />
Thank you!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Steve</title>
		<link>http://blogs.mathworks.com/steve/2008/02/08/linear-indexing/#comment-20180</link>
		<dc:creator>Steve</dc:creator>
		<pubDate>Thu, 14 Feb 2008 13:58:53 +0000</pubDate>
		<guid>http://blogs.mathworks.com/steve/2008/02/08/linear-indexing/#comment-20180</guid>
		<description>Tim&#8212;Thanks for the clarification.  Almost all of my image processing work is with dense matrices.</description>
		<content:encoded><![CDATA[<p>Tim&mdash;Thanks for the clarification.  Almost all of my image processing work is with dense matrices.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Tim Davis</title>
		<link>http://blogs.mathworks.com/steve/2008/02/08/linear-indexing/#comment-20178</link>
		<dc:creator>Tim Davis</dc:creator>
		<pubDate>Thu, 14 Feb 2008 13:49:02 +0000</pubDate>
		<guid>http://blogs.mathworks.com/steve/2008/02/08/linear-indexing/#comment-20178</guid>
		<description>Linear indexing is great for dense matrices, but use it with caution for sparse matrices.  It's very slow (the problem is intrinsically difficult), and it breaks down if prod(size(A)) is greater than 2^31.  It's quite easy to work with sparse matrices that large, but not with linear indexing.

It would be really easy to implement a kind of indexing where you could refer to the kth nonzero element in the matrix (in column order).  That is, the kth nonzero would be the kth entry in i, j, and x where [i j x] = find (A), not the A(row,col) index where k=M*(col-1)+row.  That would be extremely fast, as compared with linear indexing based on row/column indices, but M doesn't support that kind of indexing.</description>
		<content:encoded><![CDATA[<p>Linear indexing is great for dense matrices, but use it with caution for sparse matrices.  It&#8217;s very slow (the problem is intrinsically difficult), and it breaks down if prod(size(A)) is greater than 2^31.  It&#8217;s quite easy to work with sparse matrices that large, but not with linear indexing.</p>
<p>It would be really easy to implement a kind of indexing where you could refer to the kth nonzero element in the matrix (in column order).  That is, the kth nonzero would be the kth entry in i, j, and x where [i j x] = find (A), not the A(row,col) index where k=M*(col-1)+row.  That would be extremely fast, as compared with linear indexing based on row/column indices, but M doesn&#8217;t support that kind of indexing.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Daisuke Aoyagi</title>
		<link>http://blogs.mathworks.com/steve/2008/02/08/linear-indexing/#comment-20124</link>
		<dc:creator>Daisuke Aoyagi</dc:creator>
		<pubDate>Tue, 12 Feb 2008 19:45:29 +0000</pubDate>
		<guid>http://blogs.mathworks.com/steve/2008/02/08/linear-indexing/#comment-20124</guid>
		<description>I get confused between col-order (matrix) and row-order (subplot) sometimes.  I thought it'd be cleaner (less confusing) if they are consistent, plus it'd be nice to be able to use something built-in like sub2ind to specify col &#38; row of subplots, instead of N*(row-1)+col (and mess up).   Not a big deal, though.</description>
		<content:encoded><![CDATA[<p>I get confused between col-order (matrix) and row-order (subplot) sometimes.  I thought it&#8217;d be cleaner (less confusing) if they are consistent, plus it&#8217;d be nice to be able to use something built-in like sub2ind to specify col &amp; row of subplots, instead of N*(row-1)+col (and mess up).   Not a big deal, though.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Steve</title>
		<link>http://blogs.mathworks.com/steve/2008/02/08/linear-indexing/#comment-20094</link>
		<dc:creator>Steve</dc:creator>
		<pubDate>Tue, 12 Feb 2008 02:57:41 +0000</pubDate>
		<guid>http://blogs.mathworks.com/steve/2008/02/08/linear-indexing/#comment-20094</guid>
		<description>Daisuke&#8212;I have no idea.  That behavior was established probably 20 years ago.  I've been at MathWorks at long time but not that long.  Why does it matter to you?</description>
		<content:encoded><![CDATA[<p>Daisuke&mdash;I have no idea.  That behavior was established probably 20 years ago.  I&#8217;ve been at MathWorks at long time but not that long.  Why does it matter to you?</p>
]]></content:encoded>
	</item>
</channel>
</rss>
