[vtkusers] help! about how to use vtkImageViewer to view bmp files in c++, i can't find any examples

alex Gouaillard AGouaillard at slb.com
Mon Dec 11 05:28:20 EST 2006


Here,
http://www.vtk.org/doc/nightly/html/classvtkImageReader.html
the examples illustrate how to read multiple 2D image to generate a 3D
image.

or here,
http://www.vtk.org/doc/nightly/html/classvtkBMPReader.html
the description explain you the naming convention your files must follow.

with a look there:
http://www.vtk.org/doc/nightly/html/c2_vtk_e_0.html#c2_vtk_e_vtkBMPReader
that gives you this:
vtkBMPReader 
• Python - /Examples/Rendering/Python/TPlane.py -
/Examples/VisualizationAlgorithms/Python/GenerateTextureCoords.py -
/Examples/VisualizationAlgorithms/Python/imageWarp.py 
• Tcl - /Examples/Rendering/Tcl/TPlane.tcl -
/Examples/VisualizationAlgorithms/Tcl/GenerateTextureCoords.tcl -
/Examples/VisualizationAlgorithms/Tcl/imageWarp.tcl 
No examples in C++, but going from python or tcl to C++ should be direct.
Those one all use the reader for a single 2D file. Use the examples of the
vtkImageReader to extend the usage to multiple files.



When you get no answer on an easy question, think “RTFM”, don’t think “I
will spam the mailing list with the same question rephrased”.

Alex.


-----Original Message-----
From: vtkusers-bounces+agouaillard=slb.com at vtk.org
[mailto:vtkusers-bounces+agouaillard=slb.com at vtk.org] On Behalf Of jere ju
Sent: Monday, December 11, 2006 5:14 PM
To: vtkusers at vtk.org
Subject: [vtkusers] help! about how to use vtkImageViewer to view bmp files
in c++, i can't find any examples

dear all:
help! about how to use vtkImageViewer to view bmp files in c++, i can't find
any examples
 
yours




More information about the vtkusers mailing list