[vtkusers] Memory problem

David Gobbi david.gobbi at gmail.com
Thu Jul 15 12:24:48 EDT 2010


On Thu, Jul 15, 2010 at 9:56 AM, Raúl Ferriz <raul at torresyvalero.com> wrote:
>
> Hi David!
>
> My pipeline looks like:
> vtkGDCMImageReader --> vtkImageChangeInformation (to correctly set ZSpacing)
> Now from this output
> ->vtkImageShrink3D->vtkContourFilter->vtkPolyDataMapper->vtkActor
> and also the output from vtkImageChangeInformation goes to 3 vtkImageReader2
> (one for each slicer)
>
> Is there a way to optimize this?

I made a mistake, when you said "axial, sagittal, coronal", I did not
thing you were doing contouring.  I thought you were extracting
slices.

For your pipeline, the only improvement is maybe to use just one
vtkImageShrink3D instead of using one per view.  You don not have to
worry about vtkImageChangeInformation using memory, because it is a
special filter that doesn't use any memory (it just passes the data
while changing the information).

   David



More information about the vtkusers mailing list