[vtkusers] Problem in reading JPEG sequence

qt.itk.vtk.help qt.itk.vtk.help at gmail.com
Mon Dec 10 04:27:50 EST 2012


 Hi,
I am working on reading Jpeg Sequence. I have referred this post
http://vtk.1045678.n5.nabble.com/Trying-to-read-a-set-of-jpg-slices-td5716283.html
and
modified my code as:

        reader->SetFilePattern("%s");
reader->SetFileDimensionality(3);
reader->SetDataExtent(0,572,0,329,0,219);
reader->SetFilePrefix(QFileDialog::getOpenFileName().toStdString().c_str());
reader->SetDataSpacing(3.2,3.2,20);
reader->SetDataOrigin(0,0,0);

reader->Update();

        myInteractorStyle->SetImageViewer(imageViewer);
        myInteractorStyle->SetStatusMapper(sliceTextMapper);
        imageViewer->SetupInteractor(renderWindowInteractor);
        renderWindowInteractor->SetInteractorStyle(myInteractorStyle);
        imageViewer->GetRenderer()->AddActor2D(sliceTextActor);

        imageViewer->Render();
imageViewer->GetRenderer()->ResetCamera();
imageViewer->Render();

        renderWindowInteractor->Start();

 its reading only one image. Please help.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.vtk.org/pipermail/vtkusers/attachments/20121210/d7e233b7/attachment.htm>


More information about the vtkusers mailing list