Hello,<br><br> I am trying to figure out how to get the vtkBMPReader to bring in multiple bmp 2D images all at once. My plan is to create something very similar to the program in the Examples/Medical/Cxx/Medical1.cxx but instead of using the vtkVolume16Reader, I need to use the vtkBMPReader instead...here is a bit of code from the example I mentioned that I need to alter:<br>
<br> // The following reader is used to read a series of 2D slices (images)<br> // that compose the volume. The slice dimensions are set, and the<br> // pixel spacing. The data Endianness must also be specified. The reader<br>
// uses the FilePrefix in combination with the slice number to construct<br> // filenames using the format FilePrefix.%d. (In this case the FilePrefix<br> // is the root name of the file: quarter.)<br> vtkSmartPointer<vtkVolume16Reader> v16 =<br>
vtkSmartPointer<vtkVolume16Reader>::New();<br> v16->SetDataDimensions (64,64);<br> v16->SetImageRange (1,93);<br> v16->SetDataByteOrderToLittleEndian();<br> v16->SetFilePrefix (argv[1]);<br> v16->SetDataSpacing (3.2, 3.2, 1.5);<br>
<br>If I could read in all the files, I could feed the output into a contour filter and extract some isosurfaces to view and process. Can someone help me figure this outt?<br><br>Thank you for your help and time,<br>Luke H<br>