<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META http-equiv=Content-Type content="text/html; charset=iso-8859-1">
<META content="MSHTML 6.00.2800.1400" name=GENERATOR>
<STYLE></STYLE>
</HEAD>
<BODY bgColor=#ffffff>
<DIV><FONT face=Arial size=2>Hi everyone,</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2>Have you tried to shrink a volume data (using
vtkShrinkFilter)? </FONT></DIV>
<DIV><FONT face=Arial size=2>The volume data comes from the visible
woman.</FONT></DIV>
<DIV><FONT face=Arial size=2>VTK crashes when trying to shrink data. And so does
Paraview too!</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2>The C++ code is as follows:</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial
size=2>//****************************************************************</FONT></DIV>
<DIV><FONT face=Arial size=2> vtkImageReader *BodyVolume =
vtkImageReader::New();<BR> BodyVolume->SetFilePrefix
(fileName);<BR> BodyVolume->SetFilePattern
("%s");<BR> BodyVolume->SetDataScalarType(4);<BR> BodyVolume->SetDataByteOrder(0);<BR> BodyVolume->SetFileDimensionality(3);<BR> BodyVolume->SetDataOrigin(0,
0, 0); <BR> BodyVolume->SetDataSpacing(1, 1, 1);
<BR> BodyVolume->SetDataExtent(0, 255, 0, 255, 0, 577);
<BR> BodyVolume->SetNumberOfScalarComponents (1);</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2> vtkShrinkFilter *shrink =
vtkShrinkFilter::New();<BR> shrink->SetInput((vtkDataSet
*)BodyVolume
->GetOutput());<BR> shrink->SetShrinkFactor(0.5);</FONT></DIV>
<DIV><FONT face=Arial size=2> shrink->Update();<BR></DIV>
<DIV><FONT face=Arial
size=2>//****************************************************************</FONT></DIV>
<DIV> </DIV>
<DIV>Any ideas? Thanks in advance.</DIV>
<DIV> </DIV>
<DIV>Cristian</DIV>
<DIV> </DIV>
<DIV>__________________________________________________________</DIV>
<DIV> </DIV>
<DIV>Cristian J. Luciano<BR>Research Computer Scientist</DIV>
<DIV> </DIV>
<DIV>Electronic Visualization Laboratory<BR>Industrial Virtual Reality
Institute<BR> <BR>University of Illinois at Chicago<BR>842 W. Taylor
Street, 2039 ERF <BR>Chicago, IL, 60607<BR>ph: (312) 996-0579<BR>fax: (312)
413-0447<BR><<A
href="http://www.evl.uic.edu">http://www.evl.uic.edu</A>><BR>__________________________________________________________
<BR> </DIV>
<DIV> </DIV>
<DIV> </DIV></FONT></BODY></HTML>