<br>Dženan,<br><br>We did quite a heavy testing when we fixed<br>the problem of centered pixel coordinates.<br><br>The Dashboard was green when we released<br>ITK 3.18, which give us some confidence on<br>the correctness of the code.<br>
<br>--<br><br>Please note that it is your responsibility to call<br><br> interpolator->IsInsideBuffer( point )<br><br>before you call<br><br> interpolator->Evaluate( point );<br><br><br>That is, your code should take the form:<br>
<br><br> if( interpolator->IsInsideBuffer( p1 ) )<br> {<br> p2 = interpolator->Evaluate( p1 );<br> }<br><br><br>--<br><br>If you still find run-time errors, please<br>post to the list a minimal code example<br>
that displays the problem.<br><br><br> Thanks<br><br><br> Luis<br><br><br>----------------------------------------------------------<br><div class="gmail_quote">2010/6/11 Dženan Zukić <span dir="ltr"><<a href="mailto:dzenanz@gmail.com">dzenanz@gmail.com</a>></span><br>
<blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">Hi everyone,<div><br></div><div>I am running into some crashes in \InsightToolkit-3.18.0\Code\Common\itkLinearInterpolateImageFunction.txx (line 150), and I wonder could it be due to recent move to consistent use of centered pixels (physical coordinates going from -spacing/2 to (n-1)*spacing+spacing/2, instead of 0 to n*spacing). Did anyone have encounters with similar problems? More specifically, does TransformPhysicalPointToContinuousIndex in \InsightToolkit-3.18.0\Code\Common\itkImageBase.h honor the centered pixel coordinates?</div>
<div><br></div><div>Regards,</div><div>Dženan</div>
<br>_____________________________________<br>
Powered by <a href="http://www.kitware.com" 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" 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.html" target="_blank">http://www.kitware.com/products/protraining.html</a><br>
<br>
Please keep messages on-topic and check the ITK FAQ at:<br>
<a href="http://www.itk.org/Wiki/ITK_FAQ" target="_blank">http://www.itk.org/Wiki/ITK_FAQ</a><br>
<br>
Follow this link to subscribe/unsubscribe:<br>
<a href="http://www.itk.org/mailman/listinfo/insight-users" target="_blank">http://www.itk.org/mailman/listinfo/insight-users</a><br>
<br></blockquote></div><br>