<html><head></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; "><br><div><br><div>Begin forwarded message:</div><br class="Apple-interchange-newline"><blockquote type="cite"><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px;"><span style="font-family:'Helvetica'; font-size:medium; color:rgba(0, 0, 0, 1);"><b>From: </b></span><span style="font-family:'Helvetica'; font-size:medium;">Nicholas Tustison <<a href="mailto:ntustison@gmail.com">ntustison@gmail.com</a>><br></span></div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px;"><span style="font-family:'Helvetica'; font-size:medium; color:rgba(0, 0, 0, 1);"><b>Date: </b></span><span style="font-family:'Helvetica'; font-size:medium;">December 20, 2010 9:03:15 AM EST<br></span></div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px;"><span style="font-family:'Helvetica'; font-size:medium; color:rgba(0, 0, 0, 1);"><b>To: </b></span><span style="font-family:'Helvetica'; font-size:medium;">Luis Ibanez <<a href="mailto:luis.ibanez@kitware.com">luis.ibanez@kitware.com</a>><br></span></div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px;"><span style="font-family:'Helvetica'; font-size:medium; color:rgba(0, 0, 0, 1);"><b>Subject: </b></span><span style="font-family:'Helvetica'; font-size:medium;"><b>Re: [Insight-developers] N4 Valgrind Errors</b><br></span></div><br><div style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; ">Thanks Brad and Luis,<div><br></div><div>I've corrected most of the issues and will push a new branch to gerrit really soon.</div><div><br></div><div>Nick</div><div><br><div><div>On Dec 20, 2010, at 8:57 AM, Luis Ibanez wrote:</div><br class="Apple-interchange-newline"><blockquote type="cite">Hi Nick,<br><br>This patch below will take care of most of <br>Valgrind messages about uninitialized variables.<br><br><br> Luis<br><br>---------------------------------------------<br><br>@@ -177,6 +177,16 @@ BSplineControlPointImageFilter<InputImage, TOutputImage><br>
::BSplineControlPointImageFilter()<br> {<br> this->m_SplineOrder.Fill( 3 );<br>+ this->m_DoMultilevel = false;<br>+ this->m_MaximumNumberOfLevels = 1;<br>+ this->m_Origin.Fill(0.0);<br>+ this->m_Spacing.Fill(1.0);<br>
+ this->m_Size.Fill(0);<br>+ this->m_Direction.SetIdentity();<br>+<br>+ this->m_DataPoint = NumericTraits<<br>+ typename TControlPointLattice::PixelType >::Zero;<br>+<br> for( unsigned int i = 0; i < ImageDimension; i++ )<br>
{<br> this->m_NumberOfControlPoints[i] = ( this->m_SplineOrder[i]+1 );<br><br><br>------------------------------------------------------<br><div class="gmail_quote">On Mon, Dec 20, 2010 at 7:57 AM, Nicholas Tustison <span dir="ltr"><<a href="mailto:ntustison@gmail.com">ntustison@gmail.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;">No worries. I've been working on the KWStyle issues and will address the valgrind errors in a minute.<br>
<div><div></div><div class="h5"><br>
<br>
On Dec 20, 2010, at 7:55 AM, Bill Lorensen wrote:<br>
<br>
> Nick,<br>
><br>
> Lots of valgrind errors after N4 check ins. Looks like most are do to<br>
> initialized member data in the constructors.<br>
> <a href="http://www.cdash.org/CDash/viewDynamicAnalysis.php?buildid=805967" target="_blank">http://www.cdash.org/CDash/viewDynamicAnalysis.php?buildid=805967</a><br>
><br>
> Bill<br>
<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://kitware.com/products/protraining.html" target="_blank">http://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-developers" target="_blank">http://www.itk.org/mailman/listinfo/insight-developers</a><br>
</div></div></blockquote></div><br>
</blockquote></div><br></div></div></blockquote></div><br></body></html>