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