new DicomElementsWrapper(dicomElements)
DicomElements wrapper.
Name | Type | Description |
---|---|---|
dicomElements | Array | The elements to wrap. |
Methods
dump() → {string}
Dump the DICOM tags to a string.
The dumped file.
- Type:
- string
dumpToObject() → {object}
Dump the DICOM tags to an object.
The DICOM tags as an object.
- Type:
- object
getDEFromKey(groupElementKey) → {object}
Get a DICOM Element value from a group/element key.
Name | Type | Description |
---|---|---|
groupElementKey | string | The key to retrieve. |
The DICOM element.
- Type:
- object
getElementAsObject(dicomElement) → {object}
Get a DICOM element as a simple object.
Name | Type | Description |
---|---|---|
dicomElement | object | The DICOM element. |
The element as a simple object.
- Type:
- object
getElementAsString(dicomElement, prefix) → {string}
Get a data element as a string.
Name | Type | Description |
---|---|---|
dicomElement | object | The DICOM element. |
prefix | string | A string to prepend this one. |
The element as a string.
- Type:
- string
getElementValueAsString(dicomElement, pretty) → {string}
Get a data element value as a string.
Name | Type | Description |
---|---|---|
dicomElement | object | The DICOM element. |
pretty | boolean | When set to true, returns a 'pretified' content. |
A string representation of the DICOM element.
- Type:
- string
getElementValueAsStringFromKey(groupElementKey) → {string}
Get a data element value as a string.
Name | Type | Description |
---|---|---|
groupElementKey | string | The key to retrieve. |
The element as a string.
- Type:
- string
getFromGroupElement(group, element) → {object}
Get a DICOM Element value from a group and an element.
Name | Type | Description |
---|---|---|
group | number | The group. |
element | number | The element. |
The DICOM element value.
- Type:
- object
getFromKey(groupElementKey, asArray) → {object}
Get a DICOM Element value from a group/element key.
Name | Type | Description |
---|---|---|
groupElementKey | string | The key to retrieve. |
asArray | boolean | Get the value as an Array. |
The DICOM element value.
- Type:
- object
getFromName(name) → {object}
Get a DICOM Element value from a tag name. Uses the DICOM dictionary.
Name | Type | Description |
---|---|---|
name | string | The tag name. |
The DICOM element value.
- Type:
- object
getImageSize() → {object}
Extract a size from dicom elements.
The size.
- Type:
- object
getPixelSpacing() → {object}
Get the pixel spacing from the different spacing tags.
The read spacing or the default [1,1].
- Type:
- object
getPixelUnit() → {string|null}
Get the pixel data unit.
The unit value if available.
- Type:
- string |
null
getTagName(tag) → {string}
Get a tag string name from the dictionary.
Name | Type | Description |
---|---|---|
tag | object | The DICOM tag object. |
The tag name.
- Type:
- string
getTime() → {number|undefined}
Get the time.
The time value if available.
- Type:
- number |
undefined