Thx a lot, that solved my problem with jpeg reader, but now there&#39;s nothing in the vtk output window, I guess maybe is a problem with the images or not the proper way to visualize the volume not sure of that. Does anyone know where to get data set samples to test these kind of small apps??<div>
<br></div><div><br><br><div class="gmail_quote">2012/9/25 Goodwin Lawlor <span dir="ltr">&lt;<a href="mailto:goodwin.lawlor.lists@gmail.com" target="_blank">goodwin.lawlor.lists@gmail.com</a>&gt;</span><br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
Hi Rodrigo,<div><br></div><div>If your filenames are Image1.jpg, Image2.jpg etc</div><div><br></div><div>Try</div><div><br></div><div>jpegReader-&gt;SetFilePattern(&quot;%s%d.jpg&quot;);</div><div><div>jpegReader-&gt;SetFilePrefix(&quot;C:/VTK5.10/DATA/MatlabTest/JPG/Image&quot;);</div>

<div><br></div><div><br></div><div>With this FilePattern, the reader replaces &quot;%s&quot; with the FilePrefix, then appends the file number, then appends the extension &quot;.jpg&quot;</div><div><br></div><div>Note you had a typo in the FilePrefix originally - &quot;Imagen&quot;</div>

<div><br></div><div>hth</div><span class="HOEnZb"><font color="#888888"><div><br></div><div>Goodwin</div><br></font></span><div class="gmail_quote"><div><div class="h5">On Tue, Sep 25, 2012 at 3:34 PM, Rodrigo Lovera <span dir="ltr">&lt;<a href="mailto:lobo.theslayer@gmail.com" target="_blank">lobo.theslayer@gmail.com</a>&gt;</span> wrote:<br>

</div></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div><div class="h5">Yes I got&#39;m like <div>Image1.jpg</div><div>Image2.jpg</div><div>etc</div><div><br>
</div><div>But i&#39;m still getting the same error, solved the other one of unsigned char but can&#39;t make the volume read :/</div>
<div>
<br></div><div><div><div>ERROR: In C:\Users\RODRIGO LOVERA\Documents\PUCP\Tesis\VTK 5.10\VTK\IO\vtkJPEGReader.cxx, line 93</div></div><div>vtkJPEGReader (010951B0): Unable to open file C:/VTK5.10/DATA/MatlabTest/JPG/Imagen.0</div>

</div>
<div><br></div><div>I&#39;m running a function to save a matlab volume data 3d matrix to save &#39;em as jpeg slices so I can read &#39;m with vtk in c++ environment but can&#39;t pass that error any other advice???</div>


<div><br></div><div><div><div>vtkJPEGReader *jpegReader = vtkJPEGReader::New();</div><div><span style="white-space:pre-wrap">                </span>jpegReader-&gt;SetDataByteOrderToLittleEndian();</div><div>//<span style="white-space:pre-wrap">                </span>jpegReader-&gt;SetFilePattern(&quot;&quot;);</div>


</div><div><span style="white-space:pre-wrap">                </span>jpegReader-&gt;SetFilePrefix(&quot;C:/VTK5.10/DATA/MatlabTest/JPG/Imagen&quot;);</div><div><div><span style="white-space:pre-wrap">                </span>jpegReader-&gt;SetDataSpacing(3.2, 3.2, 20);</div>


<div><span style="white-space:pre-wrap">                </span>jpegReader-&gt;SetDataOrigin(0, 0, 0);</div><div><br></div></div><div>I also &#39;d like to know where to see which properties or class members aply to Jpeg Reader, already checked the jpegreader.h and .cpp but don&#39;t get it.</div>


<div><span style="white-space:pre-wrap">                </span></div></div><div><br></div><div><div><br><br><div class="gmail_quote">2012/9/25 John Drescher <span dir="ltr">&lt;<a href="mailto:drescherjm@gmail.com" target="_blank">drescherjm@gmail.com</a>&gt;</span><br>


<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div>&gt; Each slice is a single file, all of &#39;em in a sequence but got them like<br>
&gt; image1, image2.... image79... so u mean I need to save &#39;m like image.1<br>
&gt; image.2... and so??<br>
&gt;<br>
<br>
</div>Shouldn&#39;t they be<br>
<br>
image1.jpg<br>
image2.jpg<br>
image3.jpg<br>
...<br>
imageN.jpg<br>
<br>
If this is windows do you have hide extensions enabled for known types<br>
in your Folder Settings located in the Control Pannel.<br>
<span><font color="#888888"><br>
John<br>
</font></span></blockquote></div><br><br clear="all"><div><br></div></div><span><font color="#888888">-- <br><b><font face="&#39;comic sans ms&#39;, sans-serif" color="#000066">Rodrigo aka WarHearT</font></b><br>

</font></span></div>
<br></div></div><div class="im">_______________________________________________<br>
Powered by <a href="http://www.kitware.com" target="_blank">www.kitware.com</a><br>
<br>
Visit other Kitware open-source projects at <a href="http://www.kitware.com/opensource/opensource.html" target="_blank">http://www.kitware.com/opensource/opensource.html</a><br>
<br>
Please keep messages on-topic and check the VTK FAQ at: <a href="http://www.vtk.org/Wiki/VTK_FAQ" target="_blank">http://www.vtk.org/Wiki/VTK_FAQ</a><br>
<br>
Follow this link to subscribe/unsubscribe:<br>
<a href="http://www.vtk.org/mailman/listinfo/vtkusers" target="_blank">http://www.vtk.org/mailman/listinfo/vtkusers</a><br>
<br></div></blockquote></div><br></div>
</blockquote></div><br><br clear="all"><div><br></div>-- <br><b><font face="&#39;comic sans ms&#39;, sans-serif" color="#000066">Rodrigo aka WarHearT</font></b><br>
</div>