]> Creatis software - clitk.git/commitdiff
Removed warnings
authorSimon Rit <simon.rit@creatis.insa-lyon.fr>
Sun, 4 Dec 2011 14:04:46 +0000 (15:04 +0100)
committerSimon Rit <simon.rit@creatis.insa-lyon.fr>
Sun, 4 Dec 2011 14:04:46 +0000 (15:04 +0100)
common/clitkDicomRTDoseIO.cxx
itk/clitkSegmentationUtils.txx
segmentation/clitkExtractLymphStation_Supports.txx
segmentation/clitkExtractMediastinumFilter.txx

index da66a01..960cb1d 100644 (file)
@@ -151,7 +151,7 @@ void clitk::DicomRTDoseIO::ReadImageInformation()
   while (1) {
     int len;
     gfov = (double*) realloc (gfov, (gfov_len + 1) * sizeof(double));
-    rc = sscanf (gfov_str, "%g%n", &gfov[gfov_len], &len);
+    rc = sscanf (gfov_str, "%lf%n", &gfov[gfov_len], &len);
     if (rc != 1) {
       break;
     }
index 76572b5..501c64f 100644 (file)
@@ -1373,6 +1373,7 @@ namespace clitk {
     iter2.GoToBegin();
     double dmin = 100000.0;
     typename ImageType::IndexType indexmin;
+    indexmin.Fill(0);
     while (!iter1.IsAtEnd()) {
       if (iter1.Get() != BG) {
         double d = iter2.Get();
index 430d6a9..a022392 100644 (file)
@@ -111,7 +111,7 @@ Support_SI_Limit(const std::string station_limit, const std::string station,
   m_Working_Support = m_ListOfSupports[station];
   
   // Get structure or structureZ
-  double z;
+  double z=0.;
   int found=0;
   std::string file;
 
index 27cb661..6757180 100644 (file)
@@ -263,6 +263,7 @@ GenerateOutputInformation() {
   MaskImagePointer bones_ant;
   MaskImagePointer bones_post;
   MaskImagePointType middle_AntPost_position;
+  middle_AntPost_position.Fill(NumericTraits<MaskImagePointType::ValueType>::Zero);
   if (GetUseBones()) { 
     this->StartNewStep("[Mediastinum] Ant/Post limits with bones");