Methods
checkElements(_dicomElements) → {string|undefined}
Check dicom elements. Throws an error if not suitable.
Parameters:
Name | Type | Description |
---|---|---|
_dicomElements | Object.<string, DataElement> | The DICOM tags. |
- Source
Returns:
A possible warning.
- Type:
- string |
undefined
create(dataElements, pixelBuffer) → {Image}
Get an Image object from the read DICOM file.
Parameters:
Name | Type | Description |
---|---|---|
dataElements | Object.<string, DataElement> | The DICOM tags. |
pixelBuffer | Uint8Array | | The pixel buffer. |
- Source
Returns:
A new Image.
- Type:
- Image
getWarning() → {string|undefined}
Get a warning string if elements are not as expected. Created by checkElements.
- Source
Returns:
The warning.
- Type:
- string |
undefined
toDicom(image, segments, sourceImage, extraTagsopt) → {Object.<string, DataElement>}
Convert a mask image into a DICOM segmentation object.
Parameters:
Name | Type | Attributes | Description |
---|---|---|---|
image | Image | The mask image. | |
segments | Array.<MaskSegment> | The mask segments. | |
sourceImage | Image | The source image. | |
extraTags | Object.<string, any> | <optional> | Optional list of extra tags. |
- Source
Returns:
A list of dicom elements.
- Type:
- Object.<string, DataElement>