[vtkusers] vtkImageResample crashes on MacOSX
Luca Pamparana
luca.pamparana at gmail.com
Wed Apr 9 15:12:58 EDT 2008
Hi everyone,
I am trying to resample as image as follows:
double * spacing = vtkDicomReader->GetOutput()->GetSpacing();
vtkImageResample * sampler = vtkImageResample::New();
sampler->SetInput(vtkDicomReader->GetOutput());
sampler->SetDimensionality(2);
sampler->SetAxisOutputSpacing(0, spacing[0] / 2.0);
sampler->SetAxisOutputSpacing(1, spacing[1] / 2.0);
sample->Update();
However, this code crashes on the MacOSX. Does not matter if I try using the
SetAxisOutputSpacing or the SetAxisMagnificationFactor. Somehow the
upsampling operation always crashes.
Is there something I am missing?
Thanks,
Luca
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.vtk.org/pipermail/vtkusers/attachments/20080409/10fd0f01/attachment.htm>
More information about the vtkusers
mailing list