<?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 for Steve on Image Processing</title>
	<link>http://blogs.mathworks.com/steve</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>Sat, 21 Nov 2009 01:08:36 +0000</pubDate>
	<generator>http://wordpress.org/?v=2.3.1</generator>
		<item>
		<title>Comment on Batch processing by Sana</title>
		<link>http://blogs.mathworks.com/steve/2006/06/06/batch-processing/#comment-22367</link>
		<dc:creator>Sana</dc:creator>
		<pubDate>Wed, 18 Nov 2009 17:59:16 +0000</pubDate>
		<guid>http://blogs.mathworks.com/steve/2006/06/06/batch-processing/#comment-22367</guid>
		<description>hi steve,

could you explain to me how i would be able to use the dir function, to do a loop through a directory and all of the subfolders in the directory for files that have the following format.

i have several subfolders in my directory. specifically ones that correspond to a date (ie. 20091011), and in each of those folders, there are several subfolders corresponding to a specific image set. In each of those folders are about 47 files, and I need to process the most recent/the last file in those folders

I00000XX (XX = is a series of numbers corresponding to the file name).... there is no file extension. (its a DICOM file).

The subfolders are as follows:

ImageData (contains 1 folder) &#62; MDX1 (contains one folder) &#62; image (contains several folders, each corresponding to a date) &#62; 20091002 (contains several folders, each corresponding to a image set) &#62; E0000012 &#62; all of the files, of which the last file is the file I need.

I want to create a list of sorts of all of these files (ie, path).

Then I want to run an executable on all of these files, to get an output that i can save in matrix form

thanks much!</description>
		<content:encoded><![CDATA[<p>hi steve,</p>
<p>could you explain to me how i would be able to use the dir function, to do a loop through a directory and all of the subfolders in the directory for files that have the following format.</p>
<p>i have several subfolders in my directory. specifically ones that correspond to a date (ie. 20091011), and in each of those folders, there are several subfolders corresponding to a specific image set. In each of those folders are about 47 files, and I need to process the most recent/the last file in those folders</p>
<p>I00000XX (XX = is a series of numbers corresponding to the file name)&#8230;. there is no file extension. (its a DICOM file).</p>
<p>The subfolders are as follows:</p>
<p>ImageData (contains 1 folder) &gt; MDX1 (contains one folder) &gt; image (contains several folders, each corresponding to a date) &gt; 20091002 (contains several folders, each corresponding to a image set) &gt; E0000012 &gt; all of the files, of which the last file is the file I need.</p>
<p>I want to create a list of sorts of all of these files (ie, path).</p>
<p>Then I want to run an executable on all of these files, to get an output that i can save in matrix form</p>
<p>thanks much!</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on Showing image pixels associated with a Hough transform bin by Nishtha</title>
		<link>http://blogs.mathworks.com/steve/2006/09/01/showing-image-pixels-associated-with-a-hough-transform-bin/#comment-22364</link>
		<dc:creator>Nishtha</dc:creator>
		<pubDate>Tue, 17 Nov 2009 10:11:21 +0000</pubDate>
		<guid>http://blogs.mathworks.com/steve/2006/09/01/showing-image-pixels-associated-with-a-hough-transform-bin/#comment-22364</guid>
		<description>Sir,
I have preprocessed the image in following steps: [1] adaptive histogram equalization [2] thresholding [3] dilation [4] erosion [5] edge detection [6] Circle detection. Is this method proper for preprocessing. In edge detected image I am getting tires part of truck quite clearly. 
Regards,
Nishtha</description>
		<content:encoded><![CDATA[<p>Sir,<br />
I have preprocessed the image in following steps: [1] adaptive histogram equalization [2] thresholding [3] dilation [4] erosion [5] edge detection [6] Circle detection. Is this method proper for preprocessing. In edge detected image I am getting tires part of truck quite clearly.<br />
Regards,<br />
Nishtha</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on Release notes for old versions by Kristof</title>
		<link>http://blogs.mathworks.com/steve/2009/10/07/release-notes-for-old-versions/#comment-22363</link>
		<dc:creator>Kristof</dc:creator>
		<pubDate>Tue, 17 Nov 2009 07:25:58 +0000</pubDate>
		<guid>http://blogs.mathworks.com/steve/2009/10/07/release-notes-for-old-versions/#comment-22363</guid>
		<description>I also strongly support the idea.
I have just recently bumped into the problem that &lt;i&gt;im2single&lt;/i&gt; was not included in an older release of the image processing toolbox. I have spent about an hour trying to locate it at the release notes page, with no luck. Does anyone have a clue when it was introduced? I would really appreciate any help.</description>
		<content:encoded><![CDATA[<p>I also strongly support the idea.<br />
I have just recently bumped into the problem that <i>im2single</i> was not included in an older release of the image processing toolbox. I have spent about an hour trying to locate it at the release notes page, with no luck. Does anyone have a clue when it was introduced? I would really appreciate any help.</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on Connected component labeling - Part 3 by Steve</title>
		<link>http://blogs.mathworks.com/steve/2007/03/20/connected-component-labeling-part-3/#comment-22362</link>
		<dc:creator>Steve</dc:creator>
		<pubDate>Mon, 16 Nov 2009 19:22:37 +0000</pubDate>
		<guid>http://blogs.mathworks.com/steve/2007/03/20/connected-component-labeling-part-3/#comment-22362</guid>
		<description>David&#8212;I'm glad you found it useful!</description>
		<content:encoded><![CDATA[<p>David&mdash;I&#8217;m glad you found it useful!</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on Connected component labeling - Part 3 by David Lalejini</title>
		<link>http://blogs.mathworks.com/steve/2007/03/20/connected-component-labeling-part-3/#comment-22360</link>
		<dc:creator>David Lalejini</dc:creator>
		<pubDate>Mon, 16 Nov 2009 18:24:27 +0000</pubDate>
		<guid>http://blogs.mathworks.com/steve/2007/03/20/connected-component-labeling-part-3/#comment-22360</guid>
		<description>I found your example very useful for finding connected nodes in a large set of input pairs.  I start with an Nx6 array of pixel matches between video frames, and needed to find all points in every frame that are actually of the same location on the ground.  I use Delauney tessellation to come up with unique identifiers for every node, then build the sparse adjacency matrix and apply dmperm.  Thanks for you example, it was a big help!

&lt;pre&gt;
%"matchedPixelUV" is an Nx6 array of matching pixel pairs between video
%frames, in this order: frame# pixel_u pixel_v frame# pixel_u pixel_v.

%Set up an array of unique points from all points in matchedPixelUV.
points = [matchedPixelUV(:,1:3);matchedPixelUV(:,4:6)];
points = unique(points,'rows');

%Use Delaunay Tessellation to get the indices to the unique point list from
%the original matchedPixelUV.  The k1 and k2 vectors are the matching node
%pairs, which will be used to build the adjacency matrix.
T = delaunayn(points);
[k1 d1] = dsearchn(points,T,matchedPixelUV(:,1:3));
[k2 d2] = dsearchn(points,T,matchedPixelUV(:,4:6));
display(['distance checks should be zero: d1=' num2str(sum(d1)) ', d2=' num2str(sum(d1))])
clear T d1 d2 matchedPixelUV

%Now build a sparse adjacency matrix.  Make sure it is square by
%temporarily putting ones in the upper left and lower right of the
%diagonal, then remove them.
A = sparse([1; k1; size(points,1)],[1; k2; size(points,1)],1);
clear k1 k2
A(1,1) = 0;
A(size(points,1),size(points,1))=0;

%Get the transpose of the matrix and add it back to it.  This is because
%[k1 k2] is the "forward" connection between nodes, i.e. [1 2; 1 3; 2 3; 3 4].
%However, it does not have the "return" paths [2 1; 3 1; 3 2; 4 3].
A = A+A';
% spy(A)

%Add the identity matrix so we have ones along the diagonal.
I = speye(size(A));
A = A+I;
clear I

%Use dmperm (Dulmage-Mendelsohn decomposition) to compute the connected
%components, see http://blogs.mathworks.com/steve/2007/03/20/connected-component-labeling-part-3/
%for example.
[p,q,r] = dmperm(A);
&lt;/pre&gt;</description>
		<content:encoded><![CDATA[<p>I found your example very useful for finding connected nodes in a large set of input pairs.  I start with an Nx6 array of pixel matches between video frames, and needed to find all points in every frame that are actually of the same location on the ground.  I use Delauney tessellation to come up with unique identifiers for every node, then build the sparse adjacency matrix and apply dmperm.  Thanks for you example, it was a big help!</p>
<pre>
%"matchedPixelUV" is an Nx6 array of matching pixel pairs between video
%frames, in this order: frame# pixel_u pixel_v frame# pixel_u pixel_v.

%Set up an array of unique points from all points in matchedPixelUV.
points = [matchedPixelUV(:,1:3);matchedPixelUV(:,4:6)];
points = unique(points,'rows');

%Use Delaunay Tessellation to get the indices to the unique point list from
%the original matchedPixelUV.  The k1 and k2 vectors are the matching node
%pairs, which will be used to build the adjacency matrix.
T = delaunayn(points);
[k1 d1] = dsearchn(points,T,matchedPixelUV(:,1:3));
[k2 d2] = dsearchn(points,T,matchedPixelUV(:,4:6));
display(['distance checks should be zero: d1=' num2str(sum(d1)) ', d2=' num2str(sum(d1))])
clear T d1 d2 matchedPixelUV

%Now build a sparse adjacency matrix.  Make sure it is square by
%temporarily putting ones in the upper left and lower right of the
%diagonal, then remove them.
A = sparse([1; k1; size(points,1)],[1; k2; size(points,1)],1);
clear k1 k2
A(1,1) = 0;
A(size(points,1),size(points,1))=0;

%Get the transpose of the matrix and add it back to it.  This is because
%[k1 k2] is the "forward" connection between nodes, i.e. [1 2; 1 3; 2 3; 3 4].
%However, it does not have the "return" paths [2 1; 3 1; 3 2; 4 3].
A = A+A';
% spy(A)

%Add the identity matrix so we have ones along the diagonal.
I = speye(size(A));
A = A+I;
clear I

%Use dmperm (Dulmage-Mendelsohn decomposition) to compute the connected
%components, see <a href="http://blogs.mathworks.com/steve/2007/03/20/connected-component-labeling-part-3/" rel="nofollow">http://blogs.mathworks.com/steve/2007/03/20/connected-component-labeling-part-3/</a>
%for example.
[p,q,r] = dmperm(A);
</pre>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on Showing image pixels associated with a Hough transform bin by tommy</title>
		<link>http://blogs.mathworks.com/steve/2006/09/01/showing-image-pixels-associated-with-a-hough-transform-bin/#comment-22359</link>
		<dc:creator>tommy</dc:creator>
		<pubDate>Mon, 16 Nov 2009 16:14:25 +0000</pubDate>
		<guid>http://blogs.mathworks.com/steve/2006/09/01/showing-image-pixels-associated-with-a-hough-transform-bin/#comment-22359</guid>
		<description>Dear Steve,
I have a question,please if you are kind to help me regarding the accumulator array dimensions of the standard hough transform available in Matlab.
I can specify the Theta Resolution and Rho Resolution but I don't know what are the dimensions of the accumulator array built by default.
On my program I use the standard functions HOUGH,HOUGHLINES and HOUGHPEAKS

Sincerely,
Tommy</description>
		<content:encoded><![CDATA[<p>Dear Steve,<br />
I have a question,please if you are kind to help me regarding the accumulator array dimensions of the standard hough transform available in Matlab.<br />
I can specify the Theta Resolution and Rho Resolution but I don&#8217;t know what are the dimensions of the accumulator array built by default.<br />
On my program I use the standard functions HOUGH,HOUGHLINES and HOUGHPEAKS</p>
<p>Sincerely,<br />
Tommy</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on Image visualization using transparency by Steve</title>
		<link>http://blogs.mathworks.com/steve/2008/08/20/image-visualization-using-transparency/#comment-22357</link>
		<dc:creator>Steve</dc:creator>
		<pubDate>Mon, 16 Nov 2009 15:35:32 +0000</pubDate>
		<guid>http://blogs.mathworks.com/steve/2008/08/20/image-visualization-using-transparency/#comment-22357</guid>
		<description>Abc&#8212;I don't know how to distinguish the faces.  You might try posting your question in the &lt;a href="http://www.mathworks.com/matlabcentral/newsreader/" rel="nofollow"&gt;MATLAB newsgroup&lt;/a&gt;.</description>
		<content:encoded><![CDATA[<p>Abc&mdash;I don&#8217;t know how to distinguish the faces.  You might try posting your question in the <a href="http://www.mathworks.com/matlabcentral/newsreader/" rel="nofollow">MATLAB newsgroup</a>.</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on Gray scale pixel values in labeled regions by Manju</title>
		<link>http://blogs.mathworks.com/steve/2007/08/21/gray-scale-pixel-values-in-labeled-regions/#comment-22356</link>
		<dc:creator>Manju</dc:creator>
		<pubDate>Mon, 16 Nov 2009 14:06:56 +0000</pubDate>
		<guid>http://blogs.mathworks.com/steve/2007/08/21/gray-scale-pixel-values-in-labeled-regions/#comment-22356</guid>
		<description>well if we have a few ovals within each other like in a cell how do we measure the distance from the center point to the boundary of each region?How do we calculate individual regions?
Thanks</description>
		<content:encoded><![CDATA[<p>well if we have a few ovals within each other like in a cell how do we measure the distance from the center point to the boundary of each region?How do we calculate individual regions?<br />
Thanks</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on Gray scale pixel values in labeled regions by Steve</title>
		<link>http://blogs.mathworks.com/steve/2007/08/21/gray-scale-pixel-values-in-labeled-regions/#comment-22355</link>
		<dc:creator>Steve</dc:creator>
		<pubDate>Mon, 16 Nov 2009 12:32:16 +0000</pubDate>
		<guid>http://blogs.mathworks.com/steve/2007/08/21/gray-scale-pixel-values-in-labeled-regions/#comment-22355</guid>
		<description>Manju&#8212;What do you mean?  How is each region defined?</description>
		<content:encoded><![CDATA[<p>Manju&mdash;What do you mean?  How is each region defined?</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on Gray scale pixel values in labeled regions by Manju</title>
		<link>http://blogs.mathworks.com/steve/2007/08/21/gray-scale-pixel-values-in-labeled-regions/#comment-22352</link>
		<dc:creator>Manju</dc:creator>
		<pubDate>Mon, 16 Nov 2009 03:48:56 +0000</pubDate>
		<guid>http://blogs.mathworks.com/steve/2007/08/21/gray-scale-pixel-values-in-labeled-regions/#comment-22352</guid>
		<description>if we have 2-3 regions within each other how do we measure the regions of each one?</description>
		<content:encoded><![CDATA[<p>if we have 2-3 regions within each other how do we measure the regions of each one?</p>
]]></content:encoded>
	</item>
</channel>
</rss>
