File_DICOM::getValue() -- Gets the value for a DICOM element.
Описание
Gets the value for a DICOM element of a given group from the parsed DICOM file
Параметр
- mixed
$group_or_name
The group the DICOM element belongs to (integer), or its name (string)
- integer
$element
The identifier for the DICOM element (unique inside a group). Optional
Возвращаемое значение
returns The value for the DICOM element on success, PEAR_Error on failure
Заметка
Эта функция не должна вызываться статически.
Пример
Пример 38-1. Using getValue() require_once('File/DICOM.php');
$dicom_file = new File_DICOM();
$res = $dicom_file->parse('test.dcm');
// check for errors
if (PEAR::isError($res)) {
die($res->getMessage());
}
echo 'this value: '.$dicom_file->getValue('PatientName')."\n";
echo 'Should be the same as this value: '.$dicom_file->getValue(0x0010, 0x0010)."\n"; |
|
HIVE: All information for read only. Please respect copyright! |
|