[vtkusers] Trying to read a set of jpg slices
goodwin.lawlor.lists at gmail.com
Tue Sep 25 10:52:31 EDT 2012
If your filenames are Image1.jpg, Image2.jpg etc
With this FilePattern, the reader replaces "%s" with the FilePrefix, then
appends the file number, then appends the extension ".jpg"
Note you had a typo in the FilePrefix originally - "Imagen"
On Tue, Sep 25, 2012 at 3:34 PM, Rodrigo Lovera <lobo.theslayer at gmail.com>wrote:
> Yes I got'm like
> But i'm still getting the same error, solved the other one of unsigned
> char but can't make the volume read :/
> ERROR: In C:\Users\RODRIGO LOVERA\Documents\PUCP\Tesis\VTK
> 5.10\VTK\IO\vtkJPEGReader.cxx, line 93
> vtkJPEGReader (010951B0): Unable to open file
> 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???
> vtkJPEGReader *jpegReader = vtkJPEGReader::New();
> // jpegReader->SetFilePattern("");
> jpegReader->SetDataSpacing(3.2, 3.2, 20);
> jpegReader->SetDataOrigin(0, 0, 0);
> 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.
> 2012/9/25 John Drescher <drescherjm at gmail.com>
>> > Each slice is a single file, all of 'em in a sequence but got them like
>> > image1, image2.... image79... so u mean I need to save 'm like image.1
>> > image.2... and so??
>> Shouldn't they be
>> If this is windows do you have hide extensions enabled for known types
>> in your Folder Settings located in the Control Pannel.
> *Rodrigo aka WarHearT*
> Powered by www.kitware.com
> Visit other Kitware open-source projects at
> Please keep messages on-topic and check the VTK FAQ at:
> Follow this link to subscribe/unsubscribe:
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the vtkusers