[Insight-developers] N4 Valgrind Errors
Luis Ibanez
luis.ibanez at kitware.com
Mon Dec 20 08:57:53 EST 2010
Hi Nick,
This patch below will take care of most of
Valgrind messages about uninitialized variables.
Luis
---------------------------------------------
@@ -177,6 +177,16 @@ BSplineControlPointImageFilter<InputImage,
TOutputImage>
::BSplineControlPointImageFilter()
{
this->m_SplineOrder.Fill( 3 );
+ this->m_DoMultilevel = false;
+ this->m_MaximumNumberOfLevels = 1;
+ this->m_Origin.Fill(0.0);
+ this->m_Spacing.Fill(1.0);
+ this->m_Size.Fill(0);
+ this->m_Direction.SetIdentity();
+
+ this->m_DataPoint = NumericTraits<
+ typename TControlPointLattice::PixelType >::Zero;
+
for( unsigned int i = 0; i < ImageDimension; i++ )
{
this->m_NumberOfControlPoints[i] = ( this->m_SplineOrder[i]+1 );
------------------------------------------------------
On Mon, Dec 20, 2010 at 7:57 AM, Nicholas Tustison <ntustison at gmail.com>wrote:
> No worries. I've been working on the KWStyle issues and will address the
> valgrind errors in a minute.
>
>
> On Dec 20, 2010, at 7:55 AM, Bill Lorensen wrote:
>
> > Nick,
> >
> > Lots of valgrind errors after N4 check ins. Looks like most are do to
> > initialized member data in the constructors.
> > http://www.cdash.org/CDash/viewDynamicAnalysis.php?buildid=805967
> >
> > Bill
>
> _______________________________________________
> Powered by www.kitware.com
>
> Visit other Kitware open-source projects at
> http://www.kitware.com/opensource/opensource.html
>
> Kitware offers ITK Training Courses, for more information visit:
> http://kitware.com/products/protraining.html
>
> Please keep messages on-topic and check the ITK FAQ at:
> http://www.itk.org/Wiki/ITK_FAQ
>
> Follow this link to subscribe/unsubscribe:
> http://www.itk.org/mailman/listinfo/insight-developers
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.itk.org/mailman/private/insight-developers/attachments/20101220/051baaa1/attachment.htm>
More information about the Insight-developers
mailing list