From: maltaverne Date: Thu, 2 Apr 2009 15:03:47 +0000 (+0000) Subject: *** empty log message *** X-Git-Tag: EED.02Oct2009~121 X-Git-Url: https://git.creatis.insa-lyon.fr/pubgit/?a=commitdiff_plain;h=f5b34bdab9bf9fb39cbdf650949dac307e470606;p=creaImageIO.git *** empty log message *** --- diff --git a/src2/creaImageIOUltrasonixImageReader.cpp b/src2/creaImageIOUltrasonixImageReader.cpp index 41e76f3..8b07ad1 100644 --- a/src2/creaImageIOUltrasonixImageReader.cpp +++ b/src2/creaImageIOUltrasonixImageReader.cpp @@ -195,35 +195,49 @@ namespace creaImageIO // Planes char planes[128]; sprintf(planes,"%i",h.frame); + // Sampling frequency + char samplingFrequency[128]; + sprintf(samplingFrequency,"%i",h.samplingRate); + // Transducer frequency + char transducerFrequency[128]; + sprintf(transducerFrequency,"%i",h.frequency); // std::map::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:"<