Slow March (contd)

Sathya Krishnamurthy ksathya at
Tue Sep 7 12:48:17 EDT 1999


I had recently posted a question on how to improve the memory management on
my application.( which read a Volume file and displayed a 3D Surface and
also axial, coronal and sagittal information in three different windows)

I had received few very good suggestions from the group. I did some
reworking and came up with few more problems. <grin>

In the axial, coronal and sagittal sections display
the code reads as

 vtkStructuredPointsGeometryFilter *saggitalSection =
    saggitalSection->SetExtent (69,69, 0,135, 0,50);
    saggitalSection->SetInput (reader->GetOutput());

  vtkPolyDataMapper *saggitalMapper = vtkPolyDataMapper::New();

  vtkActor *sagittal = vtkActor::New();

Similarly for the other two.
After executing the vtkImageReader and the above piece of code on 512x512
with 20 slices of data.. I found out that the

vtkStructuredPointsGeometryFilter took about 260 megs of memory and with the
ImageData a total of 310 Megs of memory was used.

Can somebody give me any optimizations or roundabouts for displaying axial ,
coronal and sagittal information..




Sathya Krishnamurthy
Res: 317-630-5412
Off: 317-278-1357

This is the private VTK discussion list.  Please keep messages on-topic.
Check the FAQ at: <>
To UNSUBSCRIBE, send message body containing "unsubscribe vtkusers" to
<majordomo at>.  For help, send message body containing
"info vtkusers" to the same address.     Live long and prosper.

More information about the vtkusers mailing list