<div dir="ltr"><div class="gmail_default" style="font-family:verdana,sans-serif;font-size:small">Hi Robert,</div><div class="gmail_default" style="font-family:verdana,sans-serif;font-size:small"><br></div><div class="gmail_default" style="font-family:verdana,sans-serif;font-size:small">if you want to modify an intermediate result, you should save it to a variable, e.g.:</div><div class="gmail_default" style="font-size:small"><font face="monospace, monospace">ImageType::Pointer fmOutput=fastMarching->GetOutput();</font></div><div class="gmail_default" style="font-size:small"><span style="font-family:verdana,sans-serif">then call </span><font face="monospace, monospace">Set*</font><span style="font-family:verdana,sans-serif"> methods on </span><font face="monospace, monospace">fmOutput</font><font face="verdana, sans-serif">. Otherwise the pipeline update propagation mechanism might interfere with intermediate results and overwrite your changes.</font></div><div class="gmail_default" style="font-family:verdana,sans-serif;font-size:small"><br></div><div class="gmail_default" style="font-family:verdana,sans-serif;font-size:small">Regards,</div><div class="gmail_default" style="font-family:verdana,sans-serif;font-size:small">Dženan</div><div class="gmail_extra"><br><div class="gmail_quote">On Mon, May 16, 2016 at 1:49 PM, Robert <span dir="ltr"><<a href="mailto:scorpiuni@gmail.com" target="_blank">scorpiuni@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Ooops, you're right.<br>
But I still don't get it.<br>
Now the last error persisting is this one:<br>
<br>
terminate called after throwing an instance of 'itk::ExceptionObject'<br>
  what():  /usr/local/include/ITK-4.9/itkImageToImageFilter.hxx:250:<br>
itk::ERROR: GeodesicActiveContourLevelSetImageFilter(0x2127d40): Inputs do<br>
<span>not occupy the same physical space!<br>
InputImage Origin: [0.0000000e+00, 0.0000000e+00, 0.0000000e+00],<br>
InputImage_1 Origin: [7.2991424e+00, 1.0553263e+01, -7.8717673e+00]<br>
</span>        Tolerance: 1.6000000e-07<br>
<br>
Why doesn't the Origin change?! I tried GetOrigin etc as well, nothing<br>
worked. It always sets the Origin as 0 0 0. Spacing and Direction now seem<br>
to work. Is there some order that needs to be respected? If I change the<br>
order of the commands, it seems like the first ont called always fails... Or<br>
is it simply impossible to get all 3 arguments correct without modifying the<br>
Tolerance somewhere? When 2 Args seem to be right, the 3rd one always<br>
fails....<br>
<br>
InternalImageType::PointType newOrigin;<br>
  //newOrigin.Fill(0.0);<br>
  newOrigin[0] = 7.2991424;<br>
  newOrigin[1] = 10.553263;<br>
  newOrigin[2] = -7.8717673;<br>
<br>
  fastMarching->GetOutput()->SetOrigin(newOrigin);<br>
  fastMarching->Update();<br>
<span>  fastMarching->GetOutput()->SetSpacing(sigmoid->GetOutput()->GetSpacing());<br>
</span>  fastMarching->Update();<br>
<span><br>
fastMarching->GetOutput()->SetDirection(sigmoid->GetOutput()->GetDirection());<br>
</span>  //fastMarching->GetOutput()->Update();<br>
  fastMarching->Update();<br>
<br>
<br>
<br>
--<br>
View this message in context: <a href="http://itk-insight-users.2283740.n2.nabble.com/Geodesic-Active-Contour-Error-Inputs-do-not-occupy-the-same-physical-space-tp7588851p7588858.html" rel="noreferrer" target="_blank">http://itk-insight-users.2283740.n2.nabble.com/Geodesic-Active-Contour-Error-Inputs-do-not-occupy-the-same-physical-space-tp7588851p7588858.html</a><br>
<div><div>Sent from the ITK Insight Users mailing list archive at Nabble.com.<br>
_____________________________________<br>
Powered by <a href="http://www.kitware.com" rel="noreferrer" target="_blank">www.kitware.com</a><br>
<br>
Visit other Kitware open-source projects at<br>
<a href="http://www.kitware.com/opensource/opensource.html" rel="noreferrer" target="_blank">http://www.kitware.com/opensource/opensource.html</a><br>
<br>
Kitware offers ITK Training Courses, for more information visit:<br>
<a href="http://www.kitware.com/products/protraining.php" rel="noreferrer" target="_blank">http://www.kitware.com/products/protraining.php</a><br>
<br>
Please keep messages on-topic and check the ITK FAQ at:<br>
<a href="http://www.itk.org/Wiki/ITK_FAQ" rel="noreferrer" target="_blank">http://www.itk.org/Wiki/ITK_FAQ</a><br>
<br>
Follow this link to subscribe/unsubscribe:<br>
<a href="http://public.kitware.com/mailman/listinfo/insight-users" rel="noreferrer" target="_blank">http://public.kitware.com/mailman/listinfo/insight-users</a><br>
</div></div></blockquote></div><br></div></div>