X-Git-Url: https://git.creatis.insa-lyon.fr/pubgit/?a=blobdiff_plain;f=src2%2FcreaImageIOUltrasonixImageReader.cpp;h=014e0953c7a6be97215f1ff10844922d61fd61d4;hb=33867ec27dd1743cd11b50939fdbb0f9ebd549f2;hp=41e76f375254a98251d2fd873cdfe58552c0e454;hpb=c8ff6165bb552b048528c4ac94844642ff8b198d;p=creaImageIO.git diff --git a/src2/creaImageIOUltrasonixImageReader.cpp b/src2/creaImageIOUltrasonixImageReader.cpp index 41e76f3..014e095 100644 --- a/src2/creaImageIOUltrasonixImageReader.cpp +++ b/src2/creaImageIOUltrasonixImageReader.cpp @@ -172,9 +172,7 @@ namespace creaImageIO void UltrasonixImageReader::ReadAttributes(const std::string& filename, std::map& attr) { - // std::cout << "UltrasonixImageReader::ReadDicomInfo '"<::iterator i; if ( (i = attr.find("FullFileName")) != attr.end()) - { - // 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:"<