1.2.0#
Changes#
PIL removed as a fallback if Pillow is not available in the pillow pixel data handler (#722)
uid.JPEGBaseLineLossy8bitdeprecated and will be removed in v1.3. Useuid.JPEGBaselineinstead. (#726)uid.JPEGBaseLineLossy12bitdeprecated and will be removed in v1.3. Useuid.JPEGExtendedinstead. (#726)uid.JPEG2000Lossydeprecated and will be removed in v1.3. Useuid.JPEG2000instead. (#726)Equality and inequality operator overrides removed from
UID.config.image_handlersdeprecated and will be removed in v1.3. - useconfig.pixel_data_handlersinstead. There is also a change in behavior in thatimage_handlerspreviously used to only contain the pixel data handlers that had their dependencies met. Nowpixel_data_handlerscontains all handlers no matter whether or not their dependencies are met. To check if a handler is available for use (it has its dependency met) use the handler’sis_availablemethod.DeferredDataElementclass deprecated and will be removed in v1.3 (#291)The use of NumPyPy with PyPy is no longer supported, use NumPy instead.
Enhancements#
Updated DICOM dictionary for 2018c edition (#677)
Added possibility to set byte strings as value for VRs that use only the default character set (#624)
Functions for encapsulating frames added to
encapsmodule (#696)Added
Dataset.fix_meta_info()(#584)Added new function for bit packing
pack_bitsfor use with BitsAllocated = 1 (#715)Added/corrected encoding and decoding of text and person name VRs using character sets with code extensions, added handling of encoding/decoding errors (#716)
Handle common spelling errors in Specific Character Set values (#695,737)
Added
uid.JPEGLosslessP14for UID 1.2.840.10008.1.2.4.57Added
uid.JPEG2000MultiComponentLosslessfor UID 1.2.840.10008.1.2.4.92Added
uid.JPEG2000MultiComponentfor UID 1.2.840.10008.1.2.4.93Added full support for Planar Configuration (#713)
Added support for single frame pixel data where BitsAllocated > 8 and SamplesPerPixel > 1 (#713)
Small improvement in RLE decoding speed (~10%)
Added support for non-conformant RLE segment ordering (#729)
Fixes#
Removed unused
original_stringattribute from theDataElementclass (#660)Improve performance for Python 3 when dealing with compressed multi-frame Pixel Data with pillow and jpeg-ls (#682)
Fixed handling of private tags in repeater range (#689)
Fixed Pillow pixel data handler for non-JPEG2k transfer syntax (#663)
Fixed handling of elements with ambiguous VR (#700, 728)
Adapted pixel handlers where endianness is explicitly adapted (#704)
Improve performance of bit unpacking (#715)
First character set no longer removed (#707)
Fixed RLE decoded data having the wrong byte order (#729)
Fixed RLE decoded data having the wrong planar configuration (#729)
Fixed numpy arrays returned by the pixel data handlers sometimes being read-only. Read-only arrays are still available for uncompressed transfer syntaxes via a keyword argument for the numpy pixel data handler and should help reduce memory consumption if required. (#717)
Fixed deprecation warning in Python 3.7 (#740)