[vtkusers] How to Vizualize images with vtk2.2 ?

David Gobbi david.gobbi at gmail.com
Thu Jan 28 12:04:53 EST 2016


Hi Marie,

The three lines of code that you posted should work fine with 2.2, as long
as the vtkImageData object is valid.  I'm fairly sure that 2.2 had the
"Print"
method, so you should be able to do some debugging like this:

  image->Print(cout);

I can't help you with the documentation... when I was learning VTK (back in
the days of VTK 2.1), most of the insight that I gained came from reading
the header files and experimenting with little test programs.

 - David


On Thu, Jan 28, 2016 at 8:31 AM, David E DeMarle <dave.demarle at kitware.com>
wrote:

> Avoiding the: "Why such an old /*1998*/ version?" and "You should really
> update." discussion
>
> The oldest doxygen documentation we have on the server is:
> http://www.vtk.org/doc/release/3/html/
>
>
> David E DeMarle
> Kitware, Inc.
> R&D Engineer
> 21 Corporate Drive
> Clifton Park, NY 12065-8662
> Phone: 518-881-4909
>
> On Thu, Jan 28, 2016 at 8:31 AM, Rozand, Marie (GE Healthcare, consultant)
> <marie.rozand at ge.com> wrote:
>
>> Dear all,
>>
>>
>>
>> I can’t use newer version of vtk so I would like to know how to vizualize
>> an vtkImageData with version 2.2 in c++
>>
>> I created a vtkImageViewer and gave it my image :
>>
>> vtkImageViewer * viewer = vtkImageViewer::New();
>>
>> viewer->SetInput(image);
>>
>> viewer->Render();
>>
>>
>>
>> The problem is that when I run my program it crashes during the Render()
>> function. Do I need a kind of Interactor ? If so what is the equivalent
>> class name in vtk 2.2 ? Or is it another problem ?
>>
>>
>>
>> Furthermore, if someone know where I could find or buy a documentation
>> about this old version, it would be great.
>>
>>
>>
>> Marie Rozand
>>
>>
>>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://public.kitware.com/pipermail/vtkusers/attachments/20160128/da43245b/attachment.html>


More information about the vtkusers mailing list