pydicom.pixel_data_handlers.jpeg_ls_handler¶
Use the jpeg_ls (CharPyLS) Python package to decode Pixel Data.
Functions
|
Return the Pixel Data as a |
Return |
|
|
Return |
Return |
|
|
Return |
-
pydicom.pixel_data_handlers.jpeg_ls_handler.
get_pixeldata
(dicom_dataset)[source]¶ Return the Pixel Data as a
numpy.ndarray
.- Returns
A correctly sized (but not shaped) numpy array of the Pixel Data.
- Return type
- Raises
ImportError – If the required packages are not available.
NotImplementedError – If the transfer syntax is not supported.
TypeError – If the pixel data type is unsupported.
-
pydicom.pixel_data_handlers.jpeg_ls_handler.
is_available
()[source]¶ Return
True
if the handler has its dependencies met.
-
pydicom.pixel_data_handlers.jpeg_ls_handler.
needs_to_convert_to_RGB
(dicom_dataset)[source]¶ Return
True
if the Pixel Data should to be converted from YCbCr to RGB.This affects JPEG transfer syntaxes.