[vtkusers] Shrinking volume data makes VTK to crash

Cristian Luciano clucia1 at uic.edu
Tue Mar 16 13:01:06 EST 2004


Hi everyone,

Have you tried to shrink a volume data (using vtkShrinkFilter)? 
The volume data comes from the visible woman.
VTK crashes when trying to shrink data. And so does Paraview too!

The C++ code is as follows:

//****************************************************************
 vtkImageReader *BodyVolume = vtkImageReader::New();
  BodyVolume->SetFilePrefix (fileName);
  BodyVolume->SetFilePattern ("%s");
  BodyVolume->SetDataScalarType(4);
  BodyVolume->SetDataByteOrder(0);
  BodyVolume->SetFileDimensionality(3);
  BodyVolume->SetDataOrigin(0, 0, 0); 
  BodyVolume->SetDataSpacing(1, 1, 1); 
  BodyVolume->SetDataExtent(0, 255, 0, 255, 0, 577); 
  BodyVolume->SetNumberOfScalarComponents (1);

 vtkShrinkFilter *shrink = vtkShrinkFilter::New();
  shrink->SetInput((vtkDataSet *)BodyVolume ->GetOutput());
  shrink->SetShrinkFactor(0.5);
  shrink->Update();

//****************************************************************

Any ideas? Thanks in advance.

Cristian

__________________________________________________________

Cristian J. Luciano
Research Computer Scientist

Electronic Visualization Laboratory
Industrial Virtual Reality Institute
 
University of Illinois at Chicago
842 W. Taylor Street, 2039 ERF 
Chicago, IL, 60607
ph: (312) 996-0579
fax: (312) 413-0447
<http://www.evl.uic.edu>
__________________________________________________________ 
 

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.vtk.org/pipermail/vtkusers/attachments/20040316/221467fd/attachment.htm>


More information about the vtkusers mailing list