[Insight-users] Re: Split -View ?

Miller, James V (Research) millerjv at crd.ge.com
Wed Apr 27 11:05:36 EDT 2005


VTK has a filter that allows you to mix two images where an output 
pixel will come from one or the other input images depending on 
some geometric constraint. 

Take a look at the vtkImageRectilinearWipe. From the documentation

// vtkImageRectilinearWipe makes a rectilinear combination of two
// images. The two input images must correspond in size, scalar type and
// number of components.
// The resulting image has four possible configurations
// called:
//   Quad - alternate input 0 and input 1 horizontally and
//     vertically. Select this with SetWipeModeToQuad. The Position
//     specifies the location of the quad intersection.
//   Corner - 3 of one input and 1 of the other. Select the location of
//     input 0 with with SetWipeModeToLowerLeft, SetWipeModeToLowerRight,
//     SetWipeModeToUpperLeft and SetWipeModeToUpperRight. The Position
//     selects the location of the corner.
//   Horizontal - alternate input 0 and input 1 with a vertical
//     split. Select this with SetWipeModeToHorizontal. Position[0]
//     specifies the location of the vertical transition between input 0
//     and input 1.
//   Vertical - alternate input 0 and input 1 with a horizontal
//     split. Only the y The intersection point of the rectilinear points
//     is controlled with the Point ivar.

// .SECTION Thanks
// This work was supported by PHS Research Grant No. 1 P41 RR13218-01
// from the National Center for Research Resources.



-----Original Message-----
From: insight-users-bounces at itk.org
[mailto:insight-users-bounces at itk.org]On Behalf Of Luis Ibanez
Sent: Wednesday, April 27, 2005 10:41 AM
To: Roxana Racz
Cc: Insight-users at itk.org
Subject: [Insight-users] Re: Split -View ?




Hi Roxana,

There may be better ways to do this (you may want to post your
email to the VTK users-list), but the one that comes to mind
at this point is to use the vtkImageClip filter in both images,
then pass both to vtkImageActors for visualization.

   http://www.vtk.org/doc/nightly/html/classvtkImageClip.html

Note that you will have to tie the GUI controls to the parameters
of the Extent that you pass to the Clip filters. You will need
one Clip filter for the fixed image and another Clip filter for the
mapped moving image. Then make sure that the extents that you
construct ar a partition of fidex image extent.


   Regards,


      Luis


----------------------
Roxana Racz wrote:

> Dear Luis,
>  
> In the RegistrationMethodsOverview tutorial , a method for displaying 
> registered images is Split-View   ;   is there a class in itk , vtk for 
> this purpose ?
> Any suggestion would be usefull !
>  
> Thank you in advance!
>  
> Roxana



_______________________________________________
Insight-users mailing list
Insight-users at itk.org
http://www.itk.org/mailman/listinfo/insight-users


More information about the Insight-users mailing list