[vtkusers] VTK6.3 runtime crash when using vtkImageData as input for vtkImageAlgorithm

David Gobbi david.gobbi at gmail.com
Tue Jun 7 10:48:08 EDT 2016


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
pipelined
connection where y.Update() is automatically called when necessary.

 - David
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://public.kitware.com/pipermail/vtkusers/attachments/20160607/0a6a1c5d/attachment.html>


More information about the vtkusers mailing list