<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<style type="text/css" style="display:none;"><!-- P {margin-top:0;margin-bottom:0;} --></style>
</head>
<body dir="ltr">
<div id="divtagdefaultwrapper" style="font-size:12pt;color:#000000;font-family:Calibri,Arial,Helvetica,sans-serif;" dir="ltr">
<p>Hi all,</p>
<p><br>
</p>
<p>I am looking at a ITK code written by a predecessor in my lab group. This code is used for image registration and the snippet of this looks as shown below.</p>
<p><br>
</p>
<p></p>
<div>    m_FixedImage->Update();</div>
<div>   m_MovingImage->Update();</div>
<div>    m_FixedImage->DisconnectPipeline();</div>
<div>    m_MovingImage->DisconnectPipeline();</div>
<div><br>
</div>
<div>  // do image registration</div>
<div><br>
</div>
<div>However, if I comment the first two lines. I still get the exact same results but I end up saving 30 seconds. </div>
<div><br>
</div>
<div>If I comment all lines I get an error saying I tried to access some region which was of size [0,0]</div>
<div><br>
</div>
<div>I was hoping someone could give me insight into what exactly is going on here. </div>
<div>I understand updates matter to make sure your pipeline executes. But both these images are inputs to downstream filters then why had my predecessor chosen to do these updates separately here and why do I still get correct results without the updates.</div>
<div>Why is it important to disconnect these pipelines here before continuing the registration?</div>
<div><br>
</div>
<div>Thank you,</div>
<div>Nirvedh</div>
<div><br>
</div>
<p></p>
</div>
</body>
</html>