Methods
decode(buffer, bitsAllocated, isSigned, sliceSize, samplesPerPixel, planarConfiguration) → {Array}
Decode a RLE buffer. Ref: http://dicom.nema.org/dicom/2013/output/chtml/part05/sect_G.3.html.
Parameters:
Name | Type | Description |
---|---|---|
buffer | Array | The buffer to decode. |
bitsAllocated | number | The bits allocated per element in the buffer. |
isSigned | boolean | Is the data signed. |
sliceSize | number | The size of a slice (number of rows per number of columns). |
samplesPerPixel | number | The number of samples per pixel (3 for RGB). |
planarConfiguration | number | The planar configuration. |
- Source
Returns:
The decoded buffer as a typed array.
- Type:
- Array