[vtkusers] vtkImageChangeInformation

Lic. José M. Rodriguez Bacallao jmrbcu at gmail.com
Wed Dec 9 15:25:51 EST 2009


and this must be done before I connect the output of
vtkImageChangeInformation to the rest of the pipeline?
what about changing the spacing after the images are shown?

this is my pipeline:

vtkGDCMImageReader -> vtkImageMapToWindowLevelColors2 ->
vtkImageChangeInformation ->  vtkImageReslice's -> vtkImageActor's ->
| -> vtkRenderer's -> vtkRenderWindow -> vtkRenderWindowInteractor

by the way, having vtkImageMapToWindowLevelColors before anything
doesn't work, but this pipeline work:

vtkGDCMImageReader -> vtkImageChangeInformation ->  vtkImageReslice's
-> vtkImageMapToWindowLevelColors2 -> vtkImageActor's ->
| -> vtkRenderer's -> vtkRenderWindow -> vtkRenderWindowInteractor

what is happening here?

On 12/9/09, David Gobbi <david.gobbi at gmail.com> wrote:
> On Wed, Dec 9, 2009 at 11:59 AM, Lic. José M. Rodriguez Bacallao
> <jmrbcu at gmail.com> wrote:
>> so, now, how to use vtlImageChangeInformation correctly?
>
> Use the SetOutputSpacing(xspacing, yspacing, zspacing) method, where
> (xspacing, yspacing) is the pixel size, and zspacing is your desired
> slice spacing.
>


-- 
Lic. José M. Rodriguez Bacallao
Centro de Biofisica Medica
-----------------------------------------------------------------
Todos somos muy ignorantes, lo que ocurre es que no todos ignoramos lo mismo.

Recuerda: El arca de Noe fue construida por aficionados, el titanic
por profesionales
-----------------------------------------------------------------



More information about the vtkusers mailing list