Slow March (contd)
Sathya Krishnamurthy
ksathya at omirf.iusd.iupui.edu
Tue Sep 7 12:48:17 EDT 1999
Hi
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 =
vtkStructuredPointsGeometryFilter::New();
saggitalSection->SetExtent (69,69, 0,135, 0,50);
saggitalSection->SetInput (reader->GetOutput());
vtkPolyDataMapper *saggitalMapper = vtkPolyDataMapper::New();
saggitalMapper->SetInput(saggitalSection->GetOutput());
saggitalMapper->ScalarVisibilityOn();
vtkActor *sagittal = vtkActor::New();
sagittal->SetMapper(saggitalMapper);
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..
Thanks
Sincerely
Sathya
Sathya Krishnamurthy
Res: 317-630-5412
Off: 317-278-1357
http://omirf.iusd.iupui.edu/~ksathya
-----------------------------------------------------------------------------
This is the private VTK discussion list. Please keep messages on-topic.
Check the FAQ at: <http://www.automatrix.com/cgi-bin/vtkfaq>
To UNSUBSCRIBE, send message body containing "unsubscribe vtkusers" to
<majordomo at gsao.med.ge.com>. For help, send message body containing
"info vtkusers" to the same address. Live long and prosper.
-----------------------------------------------------------------------------
More information about the vtkusers
mailing list