[vtkusers] about volume rendering

Mark Jefferson mark.jefferson at qq.com
Tue Jul 8 21:43:13 EDT 2008


Hi,  
   I think the problem is your png image's name. you should change all your png image's name to be "image0.png", "image1.png", "image2.png" and so on. at the same time, you must specify the image range, then you could use vtkPNGReader like so:
 vtkPNGReader pngreader = new vtkPNGRead();
  pngreader.SetFilePrefix(standardStr + "\image");
  pngreader.SetFilePattern("%s%d.png");
  // ... ...
  pngreader.SetDataExtent(0, 511, 0, 511, 1, 10);
  // ... ...
  hope this could help you.
   M. J.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.vtk.org/pipermail/vtkusers/attachments/20080709/9b023fa8/attachment.htm>


More information about the vtkusers mailing list