fw4spl
|
This class contains helpers to handle GDCM data reading. More...
#include <DicomDataReader.hxx>
Static Public Member Functions | |
template<std::uint16_t GROUP, std::uint16_t ELEMENT> | |
static std::string | getTagValue (const ::gdcm::DataSet &dataset, const std::string &charset="", const ::fwLog::Logger::sptr &logger=nullptr) |
Return a string from a tag found in dataset . An empty string returned means the tag is not found or empty. The value is returned without binary space padding. More... | |
template<std::uint16_t GROUP, std::uint16_t ELEMENT> | |
static std::string | getTagValue (const std::string &buffer, const std::string &charset="", const ::fwLog::Logger::sptr &logger=0) |
Return an utf-8 tag value from the tag value's buffer. More... | |
template<std::uint16_t GROUP, std::uint16_t ELEMENT, typename T > | |
static const T | getTagValue (const ::gdcm::DataSet &dataset) |
Return a value from a tag found in dataset. More... | |
This class contains helpers to handle GDCM data reading.
Definition at line 27 of file DicomDataReader.hxx.
|
inlinestatic |
Return a string from a tag found in dataset
. An empty string returned means the tag is not found or empty. The value is returned without binary space padding.
GROUP | Group of the tag |
ELEMENT | Element of the tag |
[in] | dataset | Data set containing the tag |
[in] | charset | Specific Character Set (if empty assuming ASCII). |
[in] | logger | Logger used for encoding issue |
Definition at line 45 of file DicomDataReader.hxx.
References fwGdcmIO::helper::Encoding::convertString().
Referenced by fwGdcmIO::helper::DicomDir::findDicomDir().
|
inlinestatic |
Return an utf-8 tag value from the tag value's buffer.
GROUP | Group of the tag |
ELEMENT | Element of the tag |
[in] | buffer | Tag value's buffer |
[in] | charset | Specific Character Set (if empty assuming ASCII). |
[in] | logger | Logger used for encoding issue |
Definition at line 102 of file DicomDataReader.hxx.
References fwGdcmIO::helper::Encoding::convertString().
|
inlinestatic |
Return a value from a tag found in dataset.
GROUP | Group of the tag. |
ELEMENT | Element of the tag. |
T | Type of value. |
[in] | dataset | Data set of tags. |
Definition at line 140 of file DicomDataReader.hxx.