<html>
<head>
<style><!--
.hmmessage P
{
margin:0px;
padding:0px
}
body.hmmessage
{
font-size: 12pt;
font-family:Calibri
}
--></style></head>
<body class='hmmessage'><div dir='ltr'>Thanks again, that does the trick. I thought GetOutput() was also supposed to call Update() automatically. <br><br>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.<br><br>~ Daniel<br><br><div><hr id="stopSpelling">From: david.gobbi@gmail.com<br>Date: Tue, 7 Jun 2016 08:48:08 -0600<br>Subject: Re: [vtkusers] VTK6.3 runtime crash when using vtkImageData as input for vtkImageAlgorithm<br>To: lackodan@outlook.com<br>CC: vtkusers@vtk.org<br><br><div dir="ltr"><div class="ecxgmail_extra"><div class="ecxgmail_quote">On Tue, Jun 7, 2016 at 8:22 AM, D L <span dir="ltr"><<a href="mailto:lackodan@outlook.com" target="_blank">lackodan@outlook.com</a>></span> wrote:<br><blockquote class="ecxgmail_quote" style="border-left:1px #ccc solid;padding-left:1ex;">


<div><div dir="ltr"><br>As far as I understand, niftiReader.GetOutput() returns a vtkImageData (which is a vtkDataObject) and vtkNIFTIWriter.GetInputData() should take a vtkDataObject as input.<br><br>Could anyone help me understand what's going on? Please let me know if you need any more info.<br></div></div></blockquote><div><br></div><div>The object returned by GetOutput() cannot be used until the reader's Update()</div><div>method has been called.</div><div><br></div><div>In comparison, x.SetInputConnection(y.GetOutputPort()) establishes a pipelined</div><div>connection where y.Update() is automatically called when necessary.</div><div><br></div><div> - David</div><div><br></div><div> </div></div></div></div></div>                                        </div></body>
</html>