]> Creatis software - creaImageIO.git/commitdiff
typo
authorjean-pierre roux <jean-pierre.roux@creatis.insa-lyon.fr>
Mon, 12 Oct 2009 22:35:44 +0000 (22:35 +0000)
committerjean-pierre roux <jean-pierre.roux@creatis.insa-lyon.fr>
Mon, 12 Oct 2009 22:35:44 +0000 (22:35 +0000)
src2/creaImageIOUltrasonixImageReader.cpp

index 3d9093c932a9dc36223f2423f5268accda4f27e9..a8905ccb4f033afe05b4b1ee8f7bd836e11634b2 100644 (file)
@@ -172,7 +172,7 @@ namespace creaImageIO
 }
   //=====================================================================
   
+
   //=====================================================================
   void UltrasonixImageReader::PushBackExtensions(std::vector<std::string>& v)
   {
@@ -183,7 +183,7 @@ namespace creaImageIO
 
 
   //=====================================================================
- vold UltrasonixImageReader::ReadAttributes(const std::string& filename, 
+ void UltrasonixImageReader::ReadAttributes(const std::string& filename, 
                                      std::map<std::string,std::string>& attr)
  {
     GimmickMessage(2,"Reading attributes from '" << filename << std::endl);
@@ -194,7 +194,7 @@ namespace creaImageIO
        std::cout << "cannot open RF file [" << filename << "]" << std::endl;
        return;
     }
-       
+
     Ultrasonix_header h;
     if (!ReadHeader(Ultrasonix_file, h)) 
     {
@@ -202,7 +202,7 @@ namespace creaImageIO
         std::cout << "cannot read Ultrasonix Attributes for RF file [" << filename << "]" << std::endl;  
        return;
     }
-   
+
     fclose(Ultrasonix_file);  
   
     // Columns
@@ -225,33 +225,33 @@ namespace creaImageIO
     std::map<std::string,std::string>::iterator i;
     if ( (i = attr.find("FullFileName")) != attr.end())
     {
-       i->second = filename;
+          i->second = filename;
     }
     if ( (i = attr.find("D0004_1500")) != attr.end())
     {
-       boost::filesystem::path full_path(filename);
-       std::string f = full_path.leaf();
-       i->second = f;
+          boost::filesystem::path full_path(filename);
+          std::string f = full_path.leaf();
+          i->second = f;
     }
     if ( (i = attr.find("D0028_0010")) != attr.end())
     {
-       i->second = rows;
+          i->second = rows;
     }
     if ( (i = attr.find("D0028_0011")) != attr.end())
     {
-       i->second = cols;
+          i->second = cols;
     }
     if ( (i = attr.find("D0028_0012")) != attr.end())
     {
-       i->second = planes;
+          i->second = planes;
     }
     if ( (i = attr.find("D003a_001a")) != attr.end())
     {
-       i->second = samplingFrequency;
+       i->second = samplingFrequency;
     }
     if ( (i = attr.find("D0018_6030")) != attr.end())
     {
-       i->second = transducerFrequency;
+          i->second = transducerFrequency;
     }
     
     GimmickMessage(2,"Attributes map:"<<std::endl<<attr<<std::endl);