[vtkusers] about vtkMetaImageWriter
diaoxianfen at asisz.com
Thu Dec 16 04:38:34 EST 2004
Hello every one,
I used the vtkMetaImageWriter class several times.I found that the image header file was wrong.But when I added the Update() function before this pipeline the writed file was right.You may not understand what I want to say. Please refer to the following program.
vtkMetaImageReader *reader = vtkMetaImageReader::New();
vtkImageGaussianSmooth *smooth = vtkImageGaussianSmooth::New();
vtkImageGradientMagnitude *magnitude = vtkImageGradientMagnitude::New();
magnitude->Update();//this function is necessary to get the right file header information
vtkMetaImageWriter *writer = vtkMetaImageWriter::New();
I doubt there is some bug in the class vtkMetaImageWriter.
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the vtkusers