<div dir="ltr"><div style="font-size:12.8px">Dear All,</div><div style="font-size:12.8px"><br></div><div style="font-size:12.8px">I am trying to fix the timeout error of itkTimeVaryingBSplineVelocityFieldPointSetRegistrationTest.</div><div style="font-size:12.8px">(<a href="https://open.cdash.org/testSummary.php?project=2&name=itkTimeVaryingBSplineVelocityFieldPointSetRegistrationTest&date=2015-12-17" target="_blank">https://open.cdash.org/testSummary.php?project=2&name=itkTimeVaryingBSplineVelocityFieldPointSetRegistrationTest&date=2015-12-17</a>)</div><div style="font-size:12.8px"><br></div><div style="font-size:12.8px">From my observation, the following function is a bottleneck of the whole pipeline: </div><div style="font-size:12.8px"><br></div><div style="font-size:12.8px">"template<typename TFixedImage, typename TMovingImage, typename TTransform, typename TVirtualImage, typename TPointSet></div><div style="font-size:12.8px">void</div><div style="font-size:12.8px"><font color="#ff0000">TimeVaryingBSplineVelocityFieldImageRegistrationMethod</font><TFixedImage, TMovingImage, TTransform, TVirtualImage, TPointSet></div><div style="font-size:12.8px">::<font color="#ff0000">GetMetricDerivativePointSetForAllTimePoints</font>( VelocityFieldPointSetType *velocityFieldPointSet, WeightsContainerType *velocityFieldWeights )" </div><div style="font-size:12.8px">( <a href="https://github.com/InsightSoftwareConsortium/ITK/blob/master/Modules/Registration/RegistrationMethodsv4/include/itkTimeVaryingBSplineVelocityFieldImageRegistrationMethod.hxx" target="_blank">https://github.com/InsightSoftwareConsortium/ITK/blob/master/Modules/Registration/RegistrationMethodsv4/include/itkTimeVaryingBSplineVelocityFieldImageRegistrationMethod.hxx</a> )</div><div style="font-size:12.8px"><br></div><div style="font-size:12.8px"><br></div><div style="font-size:12.8px"><br></div><div style="font-size:12.8px">More specifically, the function call of "<font color="#ff0000">this->m_OutputTransform->IntegrateVelocityField();</font>" from the following lines are slow.</div><div style="font-size:12.8px"><br></div><span style="font-size:12.8px">// Get the fixed transform.  We need to duplicate the resulting</span><br style="font-size:12.8px"><span style="font-size:12.8px">// displacement field since it will be overwritten when we integrate</span><br style="font-size:12.8px"><span style="font-size:12.8px">// the velocity field to get the moving image transform.</span><br style="font-size:12.8px"><br style="font-size:12.8px"><span style="font-size:12.8px">    if( timePoint == 0 )</span><br style="font-size:12.8px"><span style="font-size:12.8px">      {</span><br style="font-size:12.8px"><span style="font-size:12.8px">      this->m_OutputTransform-></span><span style="font-size:12.8px">GetModifiableDisplacementField</span><span style="font-size:12.8px">()->FillBuffer( zeroVector );</span><br style="font-size:12.8px"><span style="font-size:12.8px">      }</span><br style="font-size:12.8px"><span style="font-size:12.8px">    else</span><br style="font-size:12.8px"><span style="font-size:12.8px">      {</span><br style="font-size:12.8px"><span style="font-size:12.8px">      this->m_OutputTransform-></span><span style="font-size:12.8px">SetLowerTimeBound( t );</span><br style="font-size:12.8px"><span style="font-size:12.8px">      this->m_OutputTransform-></span><span style="font-size:12.8px">SetUpperTimeBound( 0.0 ); </span><br style="font-size:12.8px"><span style="font-size:12.8px">      this->m_OutputTransform-></span><span style="font-size:12.8px">SetNumberOfIntegrationSteps( numberOfIntegrationSteps );</span><br style="font-size:12.8px"><span style="font-size:12.8px">      </span><font color="#ff0000" style="font-size:12.8px">this->m_OutputTransform->IntegrateVelocityField();</font><br style="font-size:12.8px"><span style="font-size:12.8px">      }</span><div style="font-size:12.8px"><br></div><div style="font-size:12.8px">If you have any suggestion to solve the timeout error, please let me know.</div><div style="font-size:12.8px"><br></div><div style="font-size:12.8px">Thanks,</div><div style="font-size:12.8px"><br></div><div style="font-size:12.8px">Hyun Jae</div></div>