<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0">
  <channel>
    <link>http://www.mathworks.com/matlabcentral/newsreader/view_thread/237735</link>
    <title>MATLAB Central Newsreader - Read image fromsequence of  folders</title>
    <description>Feed for thread: Read image fromsequence of  folders</description>
    <language>en-us</language>
    <copyright>&amp;copy;1994-2012 by MathWorks, Inc.</copyright>
    <webmaster>webmaster@mathworks.com</webmaster>
    <generator>MATLAB Central Newsreader</generator>
    <docs>http://blogs.law.harvard.edu/tech/rss</docs>
    <ttl>60</ttl>
    <image>
      <title>MathWorks</title>
      <url>http://www.mathworks.com/images/membrane_icon.gif</url>
    </image>
    <item>
      <pubDate>Sat, 18 Oct 2008 07:31:01 -0400</pubDate>
      <title>Read image fromsequence of  folders</title>
      <link>http://www.mathworks.com/matlabcentral/newsreader/view_thread/237735#606010</link>
      <author>Smith S</author>
      <description>Hi anyone help me how to read and process image files in the sequence of folder like folder1 has 5 files and folder2 has 5 files and folder3 has 5 files and so on continously like a sequence.this will be helpful for training the database.</description>
    </item>
    <item>
      <pubDate>Sat, 18 Oct 2008 10:38:58 -0400</pubDate>
      <title>Re: Read image fromsequence of folders</title>
      <link>http://www.mathworks.com/matlabcentral/newsreader/view_thread/237735#606023</link>
      <author>Piter_</author>
      <description>On Oct 18, 10:31=A0am, &quot;Smith S&quot; &amp;lt;x...@yahoo.com&amp;gt; wrote:&lt;br&gt;
&amp;gt; Hi anyone help me how to read and process image files in the sequence of =&lt;br&gt;
folder like folder1 has 5 files and folder2 has 5 files and folder3 has 5 f=&lt;br&gt;
iles and so on continously like a sequence.this will be helpful for trainin=&lt;br&gt;
g the database.&lt;br&gt;
&lt;br&gt;
I don't know what kind of image and how you read them, but to load in&lt;br&gt;
sequence I use &quot;for loop&quot;.&lt;br&gt;
if files differ in names like file_name.1 file_name.1 file_name.3....&lt;br&gt;
path_folder=3D['path/folder1/'; 'path/folder2/'; 'path/folder3/';];&lt;br&gt;
&lt;br&gt;
for i=3D1:length(path_folder(:,1))&lt;br&gt;
&lt;br&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;for u=3D1:5&lt;br&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;cd(path_folder(i))&lt;br&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;file_name=3D['file_name.'  num2str(i)];&lt;br&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;eval([a ' num2str(i)  num2str(u)&lt;br&gt;
'=3Dcommand_to_load_image(filename)'];&lt;br&gt;
end&lt;br&gt;
end&lt;br&gt;
&lt;br&gt;
You can play with output of dir (or ls) command if files don't have&lt;br&gt;
pattern in names.&lt;br&gt;
&lt;br&gt;
Hope it helps&lt;br&gt;
Best.&lt;br&gt;
Petro.</description>
    </item>
    <item>
      <pubDate>Sat, 18 Oct 2008 12:20:04 -0400</pubDate>
      <title>Re: Read image fromsequence of folders</title>
      <link>http://www.mathworks.com/matlabcentral/newsreader/view_thread/237735#606028</link>
      <author>Bruno Luong</author>
      <description>Piter_ &amp;lt;x.piter@gmail.com&amp;gt; wrote in message &amp;lt;2be4f27f-d0a8-454b-b92b-e9a5440373fa@e2g2000hsh.googlegroups.com&amp;gt;...&lt;br&gt;
&lt;br&gt;
&amp;gt;          eval([a ' num2str(i)  num2str(u)&lt;br&gt;
&amp;gt; '=3Dcommand_to_load_image(filename)'];&lt;br&gt;
&lt;br&gt;
Do we really need call for this ugly EVAL?&lt;br&gt;
&lt;br&gt;
Why not using cell or struct to store the list of things of different kinds and sizes?&lt;br&gt;
&lt;br&gt;
Bruno</description>
    </item>
  </channel>
</rss>

