pydicom.encaps.defragment_data

pydicom.encaps.defragment_data(data: bytes) bytes[source]

Read encapsulated data and return the fragments as one continuous bytes.

Parameters

data (bytes) – The encapsulated pixel data fragments.

Returns

All fragments concatenated together.

Return type

bytes