]> Creatis software - creaRigidRegistration.git/commitdiff
Fix some warnings
authorjean-pierre roux <jean-pierre.roux@creatis.insa-lyon.fr>
Fri, 12 Feb 2010 12:26:28 +0000 (12:26 +0000)
committerjean-pierre roux <jean-pierre.roux@creatis.insa-lyon.fr>
Fri, 12 Feb 2010 12:26:28 +0000 (12:26 +0000)
PackRecalage/src/bbPackRecalageCalculateVectorBox.cxx
PackRecalage/src/bbPackRecalageTransform3D3PointsBox.cxx
lib/Substraction.cxx

index acc9925fde6a320b506d4798aa3278b55a7050eb..0891bde5ccecb0060e0d1f3fd231580c107ceda7 100644 (file)
@@ -13,7 +13,7 @@ void CalculateVectorBox::Process()
        if(!bbGetInputPointsX1().empty() && !bbGetInputPointsX2().empty())
        {
                //Checks that all the vector points are defined
-               if(bbGetInputPointsX1()[1] != NULL && bbGetInputPointsX2()[1] != NULL)
+               if(bbGetInputPointsX1()[1] != 0 && bbGetInputPointsX2()[1] != 0)
                {
                        //_vector->SetData(bbGetInputPointsX1(), bbGetInputPointsX2(), bbGetInputPointsY1(), bbGetInputPointsY2(), bbGetInputPointsZ1(), bbGetInputPointsZ2());
                        //_vector->Run();
index 9156f13a1642401f32d35501619da015c7a587ce..009c16a7814c668ecb3d4e7df7813a6fd5f3e1d1 100644 (file)
@@ -92,7 +92,7 @@ void Transform3D3PointsBox::Process()
                }
 
                //Create the new center point
-               double * centerPoint;
+               double centerPoint[3];
                centerPoint[0] = O2[0];
                centerPoint[1] = O2[1];
                centerPoint[2] = O2[2];
@@ -251,4 +251,4 @@ void Transform3D3PointsBox::bbUserFinalizeProcessing()
        delete planes;
 }
 }
-// EO namespace bbPackRecalage
\ No newline at end of file
+// EO namespace bbPackRecalage
index c0be6d87ba896e338b4b9df3c75828c111694dd9..853e5de3d98c610337725f09f6a0428108f5e4b3 100644 (file)
@@ -6,7 +6,7 @@ Substraction::Substraction(vtkImageData* imageData1,vtkImageData* imageData2, in
        sizeImage=0;
        uZeroLevel=uZLevel;
        lZeroLevel=lZLevel;
-       if(uColor.size() != NULL)
+       if(uColor.size() != 0)
        {
                upperColor[0] = uColor[0];
                upperColor[1] = uColor[1];
@@ -18,7 +18,7 @@ Substraction::Substraction(vtkImageData* imageData1,vtkImageData* imageData2, in
                upperColor[1] = 255;
                upperColor[2] = 255;
        }       
-       if(mColor.size() != NULL)
+       if(mColor.size() != 0)
        {
                mediumColor[0] = mColor[0];
                mediumColor[1] = mColor[1];
@@ -30,7 +30,7 @@ Substraction::Substraction(vtkImageData* imageData1,vtkImageData* imageData2, in
                mediumColor[1] = 125;
                mediumColor[2] = 125;
        }       
-       if(lColor.size() != NULL)
+       if(lColor.size() != 0)
        {
                lowerColor[0] = lColor[0];
                lowerColor[1] = lColor[1];
@@ -327,4 +327,4 @@ vtkImageData* Substraction::getSubstractedImage()
 int Substraction::getImageSize()
 { 
        return sizeImage;
-}
\ No newline at end of file
+}