[vtkusers] VTK6.3 runtime crash when using vtkImageData as input for vtkImageAlgorithm
lackodan at outlook.com
Tue Jun 7 11:29:28 EDT 2016
Thanks again, that does the trick. I thought GetOutput() was also supposed to call Update() automatically.
Out of curiosity, was this something that was introduced in VTK6? The last time I worked with VTK it with 5.10, and I remember using SetInput() without the intermediate Update()-s. I might be remembering wrong, of course.
From: david.gobbi at gmail.com
Date: Tue, 7 Jun 2016 08:48:08 -0600
Subject: Re: [vtkusers] VTK6.3 runtime crash when using vtkImageData as input for vtkImageAlgorithm
To: lackodan at outlook.com
CC: vtkusers at vtk.org
On Tue, Jun 7, 2016 at 8:22 AM, D L <lackodan at outlook.com> wrote:
As far as I understand, niftiReader.GetOutput() returns a vtkImageData (which is a vtkDataObject) and vtkNIFTIWriter.GetInputData() should take a vtkDataObject as input.
Could anyone help me understand what's going on? Please let me know if you need any more info.
The object returned by GetOutput() cannot be used until the reader's Update()method has been called.
In comparison, x.SetInputConnection(y.GetOutputPort()) establishes a pipelinedconnection where y.Update() is automatically called when necessary.
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the vtkusers