diff --git a/class_dicom.php b/class_dicom.php index 5982b38..e3efe09 100644 --- a/class_dicom.php +++ b/class_dicom.php @@ -57,6 +57,8 @@ class dicom_tag { var $tags = array(); + var $labels = array(); + var $labeled = array(); var $file = -1; function __construct($file = '') { @@ -146,6 +148,14 @@ function load_tags() { $this->tags["$ge"] = rtrim($val); } } + + + //labels + $t = preg_match_all("/, [0-9] (.*)/", $line, $matches); + if(isset($matches[1][0])) { + $this->labels[$ge] = $matches[1][0]; + $this->labeled[$matches[1][0]] = $this->tags[$ge]; + } } }