ImageFactory

Image factory.

Constructor

new ImageFactory()

Methods

checkElements(dataElements) → {string|undefined}

Check dicom elements. Throws an error if not suitable.

Parameters:
NameTypeDescription
dataElementsDataElements

The DICOM data elements.

Returns:

A possible warning.

Type: 
string | undefined

create(dataElements, pixelBuffer, numberOfFiles) → {Image}

Get an Image object from the read DICOM file.

Parameters:
NameTypeDescription
dataElementsDataElements

The DICOM tags.

pixelBufferUint8Array | Int8Array | Uint16Array | Int16Array | Uint32Array | Int32Array

The pixel buffer.

numberOfFilesnumber

The input number of files.

Returns:

A new Image.

Type: 
Image

getWarning() → {string|undefined}

Get a warning string if elements are not as expected. Created by checkElements.

Returns:

The warning.

Type: 
string | undefined