[vtkusers] Superimpose images

Erik Tuerke tuerke at cbs.mpg.de
Tue Nov 2 13:55:12 EDT 2010


Hi!

I have a problem when visualizing two images. VTK visualizes the images 
side by side in my window.

The code is the following:

This is done for both images:

...
m_ExtractSagittal->SetInput( m_ImageVector[m_currentTimestep] );
m_MapperSagittal->SetInput( m_ExtractSagittal->GetOutput() );
m_ActorSagittal->SetMapper( m_MapperSagittal );
m_ActorSagittal->GetProperty()->SetInterpolationToFlat();
m_ActorSagittal->SetPosition(0,0,0);
m_RendererSagittal->AddActor( m_ActorSagittal );
...

And this once:
m_InteractorSagittal->SetInteractorStyle( m_InteractionStyleSagittal );
m_WindowSagittal->SetInteractor( m_InteractorSagittal );
m_WindowSagittal->AddRenderer( m_RendererSagittal );

m_InteractorSagittal->Initialize();
ui.qvtkWidgetSagittal->SetRenderWindow( m_WindowSagittal );

And then render.

Is there any possibility to superimpose the images??

Thanks for your help!

-- 
Erik Tuerke
Department of Neurophysics 
Max-Planck-Institute for Human Cognitive and Brain Sciences
Stephanstrasse 1A
04103 Leipzig
Germany 
Tel: +49 341 99 40-2440
Email: tuerke at cbs.mpg.de
www.cbs.mpg.de





More information about the vtkusers mailing list