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->SetFilePattern("%s%d.jpg");</div><div><div>jpegReader->SetFilePrefix("C:/VTK5.10/DATA/MatlabTest/JPG/Image");</div>
<div><br></div><div><br></div><div>With this FilePattern, the reader replaces "%s" with the FilePrefix, then appends the file number, then appends the extension ".jpg"</div><div><br></div><div>Note you had a typo in the FilePrefix originally - "Imagen"</div>
<div><br></div><div>hth</div><div><br></div><div>Goodwin</div><br><div class="gmail_quote">On Tue, Sep 25, 2012 at 3:34 PM, Rodrigo Lovera <span dir="ltr"><<a href="mailto:lobo.theslayer@gmail.com" target="_blank">lobo.theslayer@gmail.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Yes I got'm like <div>Image1.jpg</div><div>Image2.jpg</div><div>etc</div><div><br></div><div>But i'm still getting the same error, solved the other one of unsigned char but can't make the volume read :/</div>
<div>
<br></div><div><div class="im"><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'm running a function to save a matlab volume data 3d matrix to save 'em as jpeg slices so I can read 'm with vtk in c++ environment but can't pass that error any other advice???</div>
<div><br></div><div><div class="im"><div>vtkJPEGReader *jpegReader = vtkJPEGReader::New();</div><div><span style="white-space:pre-wrap">                </span>jpegReader->SetDataByteOrderToLittleEndian();</div><div>//<span style="white-space:pre-wrap">                </span>jpegReader->SetFilePattern("");</div>
</div><div><span style="white-space:pre-wrap">                </span>jpegReader->SetFilePrefix("C:/VTK5.10/DATA/MatlabTest/JPG/Imagen");</div><div class="im"><div><span style="white-space:pre-wrap">                </span>jpegReader->SetDataSpacing(3.2, 3.2, 20);</div>
<div><span style="white-space:pre-wrap">                </span>jpegReader->SetDataOrigin(0, 0, 0);</div><div><br></div></div><div>I also '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't get it.</div>
<div><span style="white-space:pre-wrap">                </span></div></div><div><br></div><div><div class="im"><br><br><div class="gmail_quote">2012/9/25 John Drescher <span dir="ltr"><<a href="mailto:drescherjm@gmail.com" target="_blank">drescherjm@gmail.com</a>></span><br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div>> Each slice is a single file, all of 'em in a sequence but got them like<br>
> image1, image2.... image79... so u mean I need to save 'm like image.1<br>
> image.2... and so??<br>
><br>
<br>
</div>Shouldn'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 class="HOEnZb"><font color="#888888">-- <br><b><font face="'comic sans ms', sans-serif" color="#000066">Rodrigo aka WarHearT</font></b><br>
</font></span></div>
<br>_______________________________________________<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></blockquote></div><br></div>