[vtkusers] Can't use vtkSliceCubes
LinX
camilo.jimenez at spymac.com
Sun Jun 12 11:47:51 EDT 2005
Hi there.
I have tried to use the vtkSliceCubes filter, but I don't have a image series so
I can read them by using a vtkVolume16Reader.
I tried
vtkImageWriter *lWriter = vtkImageWriter::New();
lWriter->SetInput( Image );
lWriter->SetFilePrefix( "Images/Helix" );
lWriter->SetFileDimensionality( 2 );
lWriter->Write();
to write them, so I could
vtkVolume16Reader *v16 = vtkVolume16Reader::New();
v16->SetDataDimensions(50,50);
v16->SetImageRange(1,255);
v16->SetDataByteOrderToLittleEndian();
v16->SetFilePattern( "Images/Helix" );
v16->SetDataSpacing(1, 1, 1);
and then
vtkSliceCubes *mcubes = vtkSliceCubes::New();
mcubes->SetReader( v16 );
mcubes->SetValue( 0 );
mcubes->SetFileName( "fullHead.tri" );
mcubes->SetLimitsFileName( "fullHead.lim" );
mcubes->Update( );
vtkMCubesReader *reader = vtkMCubesReader::New( );
reader->SetFileName( "fullHead.tri" );
reader->SetLimitsFileName( "fullHead.lim" );
but didn't worked. ( the "fullHead.lim" and "fullHead.tri" are zero size files )
What am I doing wrong?
Thanx in advance
LinX
More information about the vtkusers
mailing list