X-Git-Url: https://git.creatis.insa-lyon.fr/pubgit/?a=blobdiff_plain;f=src2%2FcreaImageIOUltrasonixImageReader.cpp;h=8b07ad1319a1cad85e895880014016c57d036f9a;hb=b029354f54449e058d14c671e7155e65b4086de6;hp=12c74402de2266a2019fa944abb451d6e4051aa3;hpb=44cd2da41a93b82eb18f6e22c1d8b58d44b64539;p=creaImageIO.git diff --git a/src2/creaImageIOUltrasonixImageReader.cpp b/src2/creaImageIOUltrasonixImageReader.cpp index 12c7440..8b07ad1 100644 --- a/src2/creaImageIOUltrasonixImageReader.cpp +++ b/src2/creaImageIOUltrasonixImageReader.cpp @@ -1,7 +1,7 @@ +#include #include #include -#include #include "boost/filesystem/path.hpp" namespace creaImageIO @@ -82,9 +82,6 @@ namespace creaImageIO //===================================================================== vtkImageData* UltrasonixImageReader::ReadImage(const std::string& filename) { - - std::cout<<"UltrasonixImageReader reading "<::iterator i; if ( (i = attr.find("FullFileName")) != attr.end()) - { - // boost::filesystem::path full_path(filename); + { + // boost::filesystem::path full_path(filename); // std::string f = full_path.leaf(); - 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; + } + if ( (i = attr.find("D0018_6030")) != attr.end()) + { + i->second = transducerFrequency; + } + GimmickMessage(2,"Attributes map:"<