<html><head><meta http-equiv="Content-Type" content="text/html charset=us-ascii"></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;" class="">Hello,<div class=""><br class=""></div><div class="">Thank you for reporting this issue and providing a clear example and proposed solution.</div><div class=""><br class=""></div><div class="">In looking at the problematic function[1], I a quite surprised to see that the the signature of the method:</div><div class=""><div class="">   bool BSplineTransform::InsideValidRegion( ContinuousIndexType & index ) const</div></div><div class=""><br class=""></div><div class="">Specifically, the argument is not constant and it is being modified by this problematic case.</div><div class=""><br class=""></div><div class="">I am suspicion of the need for this if statement in the method. It appears there may be a deeper issue with how the b-spline is defined over the upper range of the last index. The transform should be valid from (minIdx-0.5, maxIdx+0.5). I am going to also note that this case is not in itkBSPlineDeformableTransform.</div><div class=""><br class=""></div><div class="">Brad</div><div class=""><br class=""></div><div class="">[1] <a href="https://github.com/InsightSoftwareConsortium/ITK/blob/master/Modules/Core/Transform/include/itkBSplineTransform.hxx#L465-L495" class="">https://github.com/InsightSoftwareConsortium/ITK/blob/master/Modules/Core/Transform/include/itkBSplineTransform.hxx#L465-L495</a></div><div class=""><br class=""></div><div class=""><br class=""></div><div class=""><br class=""><div><blockquote type="cite" class=""><div class="">On Apr 20, 2016, at 7:07 AM, Denis Shamonin <<a href="mailto:dshamoni@gmail.com" class="">dshamoni@gmail.com</a>> wrote:</div><br class="Apple-interchange-newline"><div class=""><meta http-equiv="Content-Type" content="text/html; charset=utf-8" class=""><div dir="ltr" class="">Dear Developers,<br class=""><br class="">We have found the rare but reproducible crash during the resampling in combination with BSplineTransform. Could you please review this issue on JIRA? More details here:<br class=""><a href="https://issues.itk.org/jira/browse/ITK-3425" class="">https://issues.itk.org/jira/browse/ITK-3425</a><br class=""><p class="">Thanks,</p><p class="">Denis P. Shamonin, MSc<br class="">
Division of Image Processing (LKEB)<br class="">
Department of Radiology<br class="">
Leiden University Medical Center</p>

          </div>
_______________________________________________<br class="">Powered by <a href="http://www.kitware.com" class="">www.kitware.com</a><br class=""><br class="">Visit other Kitware open-source projects at<br class=""><a href="http://www.kitware.com/opensource/opensource.html" class="">http://www.kitware.com/opensource/opensource.html</a><br class=""><br class="">Kitware offers ITK Training Courses, for more information visit:<br class="">http://kitware.com/products/protraining.php<br class=""><br class="">Please keep messages on-topic and check the ITK FAQ at:<br class="">http://www.itk.org/Wiki/ITK_FAQ<br class=""><br class="">Follow this link to subscribe/unsubscribe:<br class="">http://public.kitware.com/mailman/listinfo/insight-developers<br class=""></div></blockquote></div><br class=""></div></body></html>