A Python wrapper for openjpeg, with a focus on use as a plugin for for pylibjpeg
Project description
pylibjpeg-openjpeg
A Python 3.6+ wrapper for openjpeg, with a focus on use as a plugin for pylibjpeg.
Linux, OSX and Windows are all supported.
Installation
Dependencies
Installing the current release
python -m pip install -U pylibjpeg-openjpeg
Installing the development version
Make sure Python, Git and CMake are installed. For Windows, you also need to install Microsoft's C++ Build Tools.
git clone --recurse-submodules https://github.com/pydicom/pylibjpeg-openjpeg
python -m pip install pylibjpeg-openjpeg
Supported JPEG Formats
Decoding
ISO/IEC Standard | ITU Equivalent | JPEG Format |
---|---|---|
15444-1 | T.800 | JPEG 2000 |
Encoding
Encoding of JPEG 2000 images is not currently supported
Transfer Syntaxes
UID | Description |
---|---|
1.2.840.10008.1.2.4.90 | JPEG 2000 Image Compression (Lossless Only) |
1.2.840.10008.1.2.4.91 | JPEG 2000 Image Compression |
Usage
With pylibjpeg and pydicom
from pydicom import dcmread
from pydicom.data import get_testdata_file
ds = dcmread(get_testdata_file('JPEG2000.dcm'))
arr = ds.pixel_array
Standalone JPEG decoding
You can also decode JPEG 2000 images to a numpy ndarray:
from openjpeg import decode
with open('filename.j2k', 'rb') as f:
# Returns a numpy array
arr = decode(f)
# Or simply...
arr = decode('filename.j2k')
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distributions
Close
Hashes for pylibjpeg_openjpeg-1.1.1-cp39-cp39-win_amd64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | b86d518cf5f2d57b17934fca8b0e8ee0b2be7f6b997ee814c3593524c3db8a9a |
|
MD5 | 239099a3101c442e8234b3a4ccced118 |
|
BLAKE2b-256 | c672d585dc4cffb375175fd39fa46c5c2708d6af60e32407c76a5fdfb70dbbf8 |
Close
Hashes for pylibjpeg_openjpeg-1.1.1-cp39-cp39-win32.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | daf68f749b8ae9da991d35336aa9d38851268848a21cb9f002a533abd96ed472 |
|
MD5 | b768ed54b097ebf2e8b1e1be8ac59257 |
|
BLAKE2b-256 | b8cfaaa9293c76719065c122fe3486aa204cac93cfb244009788cd04aa246217 |
Close
Hashes for pylibjpeg_openjpeg-1.1.1-cp39-cp39-manylinux2010_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | ed263f119fae700c0e23e4818284637f47d7972212c1598deea631b58178fca2 |
|
MD5 | b1ff373e0bef404156cea2099eb31d74 |
|
BLAKE2b-256 | 73a74cce3b6be032a0d781c4d3887dc4cc2c2150618f2166789ff5e44d8b0d8c |
Close
Hashes for pylibjpeg_openjpeg-1.1.1-cp39-cp39-manylinux2010_i686.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 4e920b633a80a3f6d49062c8be7b60d11edd5fed4affbda12b60ffef4343610b |
|
MD5 | 3270e6e0dc5d2bf41c91c1e9385d8daa |
|
BLAKE2b-256 | 0627e4307754870ba6ac5fbc9dcce93a8cd0fc32f38d1a09374f62e4e01034c9 |
Close
Hashes for pylibjpeg_openjpeg-1.1.1-cp39-cp39-manylinux1_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | c6ebe556d8d5090005236fbcdd5bda89177e2c8af586f7d44c5283c20bf5e1f4 |
|
MD5 | 8bb873cb1a6e6e2d9531997824f3bd70 |
|
BLAKE2b-256 | ca83b3c819c83ae33a8e49794cff530c2196ee0fb6d322c4e620ebe6489eae50 |
Close
Hashes for pylibjpeg_openjpeg-1.1.1-cp39-cp39-manylinux1_i686.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | f52f791ae4f22689987c350249836d91411b9ccbed9b1dd659004dca891ebe0a |
|
MD5 | 64085af7115a42a15c1f370c065c8016 |
|
BLAKE2b-256 | 44bd9984af0d5c306cddbf61a2608c3252df03cc6c35c87c4a31f65da05e748b |
Close
Hashes for pylibjpeg_openjpeg-1.1.1-cp39-cp39-macosx_10_9_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 72622e1007a5a2acaf1ae383545e4e64b486e92a20d508e1e60f5603a4849ceb |
|
MD5 | ed9963903cd84aa2cf12c927397e5fb6 |
|
BLAKE2b-256 | f47a9cb247ef0f2a8f96b5b2a0d4fcd632a7467e3c1e010ea0afcd92c8e12f86 |
Close
Hashes for pylibjpeg_openjpeg-1.1.1-cp38-cp38-win_amd64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | d0358ea255f767d02671bc8e5a3b6d84719316d36ff634cdb92067d90b54c45e |
|
MD5 | 652932505102cf70b29cb937aa5c8652 |
|
BLAKE2b-256 | 9a296c018eec0395d02c341982ad572a78755974308a27e70cb8234231ec883a |
Close
Hashes for pylibjpeg_openjpeg-1.1.1-cp38-cp38-win32.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 4d4097aec59419dc7d2168ba5f52e81b61891b07ae4f078c941d5e0ac3997fea |
|
MD5 | f4839ff9c01c7808ebe7ac67048135a8 |
|
BLAKE2b-256 | ad5247d13c24b90559729db47f240b6985d0dfb5bc9662169d78f3c114a3780e |
Close
Hashes for pylibjpeg_openjpeg-1.1.1-cp38-cp38-manylinux2010_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 16ff4a24b91c7cf511fdc4355473c34bbdfdab835edf301b93c3b1581fdbe44b |
|
MD5 | 3ac400bca5c8c3dd91391e2b40a35254 |
|
BLAKE2b-256 | 1045d0a42eeb23c61c81afeb30b06fc4f3ab43ebae5a809dca66dc3d477f3d69 |
Close
Hashes for pylibjpeg_openjpeg-1.1.1-cp38-cp38-manylinux2010_i686.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 9d868aea9ab67a05c7588e30d5b2bac354444c89736e84bfa8ff7cddabaa3ecc |
|
MD5 | cbab9bfd60917cc10528c83068ed55c0 |
|
BLAKE2b-256 | 4d3ed10b98699c7df3dd310eaedc6068f93a2533bfd05365d0e6b087cea7e901 |
Close
Hashes for pylibjpeg_openjpeg-1.1.1-cp38-cp38-manylinux1_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | a0e892c36a0d43c5103b35f3d04e05118ace4922c5fcc6f52be279e1e563ba84 |
|
MD5 | 333b15ee48f3c188fae17bde2fb9f59f |
|
BLAKE2b-256 | 1779c04b6bb4032d3be9e16d699ff4e43d1bd1b3ee9a888cdd7b8e234d0d0b4a |
Close
Hashes for pylibjpeg_openjpeg-1.1.1-cp38-cp38-manylinux1_i686.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | ff7f4351c52b3460ce3486eaff8ebb82d49c26a8c7a6d26c39c6d39cdbba3aac |
|
MD5 | b75a865108d4c7247982d84acb97d562 |
|
BLAKE2b-256 | 00fa8815c1bf2662a8af4d4f098758627b0c4291e19e349f36d151d7be2ed90e |
Close
Hashes for pylibjpeg_openjpeg-1.1.1-cp38-cp38-macosx_10_9_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | fb829f0732c0ddd847e0519da64bead5fc5e8bb2cb833bec70c35bed486c0958 |
|
MD5 | e8ba65d79af3cb3b5be7a0eefffc7fae |
|
BLAKE2b-256 | b74a91ac604bb58b3daca19d2a94bbeaf73ddb6f5b2bc2e968d95b0b3fe72014 |
Close
Hashes for pylibjpeg_openjpeg-1.1.1-cp37-cp37m-win_amd64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | f2d73fc5d5a1f55625a1372fe38acf8691347d30cc68d0ed916c4af29cc6eda6 |
|
MD5 | fd50b37359853f794afae29bb21a2495 |
|
BLAKE2b-256 | 27d5b18fd544815ffa9ff71344ae7961f3c746e19eb56331b747ed892fa9e309 |
Close
Hashes for pylibjpeg_openjpeg-1.1.1-cp37-cp37m-win32.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 6265937a9d4a9062b2fd6e1555c76be323cc1ae24df0f0924e010620c09de675 |
|
MD5 | e73809194293cda032c5eac5f335aa29 |
|
BLAKE2b-256 | 8b46f37382fed534b2d3025539fb564d22efeece9b7437fb5607c9c02a13a258 |
Close
Hashes for pylibjpeg_openjpeg-1.1.1-cp37-cp37m-manylinux2010_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 1530b80880e87c8cdf03d17617b9afb432120d7bf79ac00463784d3bb629823b |
|
MD5 | 5c0f15e4175cb5357c1119fe685b78cf |
|
BLAKE2b-256 | 9d3dc38377257f8f00170f778a318576e3a5b38d4e43b56df5a70cf7570312b4 |
Close
Hashes for pylibjpeg_openjpeg-1.1.1-cp37-cp37m-manylinux2010_i686.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 7d459af9e9f8b54e661d99eccd02fa5ee5b2496031eaaba18b1e705fe7137ef7 |
|
MD5 | 53153bfe7637e65c2a521a17f6f0186f |
|
BLAKE2b-256 | 0c287a9da18c83c032665322bc55c0dbcce262362fe1e57a64eb77b9a550497d |
Close
Hashes for pylibjpeg_openjpeg-1.1.1-cp37-cp37m-manylinux1_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 39bdc743446a6ff97c188d66c1a747872e83d4eeb797b486f21037c5a361b40e |
|
MD5 | e4bea8d04317edd0762178a8eea40ffd |
|
BLAKE2b-256 | 0354b3c3328792ac3f1a5770be4705c448643cbc638282464d6e364f79046f70 |
Close
Hashes for pylibjpeg_openjpeg-1.1.1-cp37-cp37m-manylinux1_i686.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 4e63734beda93662315b9ff20623431c13954937d7608d0c30b512ae29ad34ec |
|
MD5 | 914a0ffad5e0785f3eaf64b824a8ace8 |
|
BLAKE2b-256 | fe8c6fbe5229f3a4c8ce67e1c52de7d434352790ec8394f20ffb95c1c0eadba5 |
Close
Hashes for pylibjpeg_openjpeg-1.1.1-cp37-cp37m-macosx_10_9_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 5589f4a693ab36597e2391c0bb6287caed2bda7c86783b76b5de2f5bb8f2a4fb |
|
MD5 | 9a0fbcee7822d78fe6b50d74d8d4dd9b |
|
BLAKE2b-256 | 6b0917c2940335e643a4ad70c8131e7a0d2078dc6a0b4112232a4c277669ea46 |
Close
Hashes for pylibjpeg_openjpeg-1.1.1-cp36-cp36m-win_amd64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 84fd3744a7377cb66ab668314e6cd418862d9b56200d17cca2b5bba196b1cdca |
|
MD5 | 3ad7a9fa58efbb7b151d2c49c3340fcf |
|
BLAKE2b-256 | fec5b89b6ce3e05bba18636827c9d860c388aea95a005ee408b102f2d79f1012 |
Close
Hashes for pylibjpeg_openjpeg-1.1.1-cp36-cp36m-win32.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 5de056312d312f97e07923b37ed4f898c2a88188f2f0b42264d755b288ad20ce |
|
MD5 | 750fca4dd59c10b188c86e951a4451ad |
|
BLAKE2b-256 | 02422a92a43730555b057f40c586f8d5cb24a7a0cce3353a49352e4634685030 |
Close
Hashes for pylibjpeg_openjpeg-1.1.1-cp36-cp36m-manylinux2010_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 967393980e9e98afaa48285611059ae9087144b10e8bd901ee0950838cc04c8b |
|
MD5 | c1e621e8ac8bc57d34e0e00835dc3412 |
|
BLAKE2b-256 | c620a8aa0f11dc50487c16615300549d99ab05c0b1e46f50b85e264329e0c96b |
Close
Hashes for pylibjpeg_openjpeg-1.1.1-cp36-cp36m-manylinux2010_i686.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 3b3183c1693e4e4fe5ef4a4655422cc0f5dba73579d0c082da6656a2e0108c4f |
|
MD5 | f13a53fc234b24286f2ec42a0c21cb3c |
|
BLAKE2b-256 | bc8a03bfc03f371b1cc86cc37d54307514ec819ad5698ce4fe34d950924ba495 |
Close
Hashes for pylibjpeg_openjpeg-1.1.1-cp36-cp36m-manylinux1_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 3fa56d78a47bf671a6289aa60999820c9ae0784eb02bd167cfb19f2f0202faea |
|
MD5 | d1e17d2ce204cd8c792222f15261f33f |
|
BLAKE2b-256 | c26312470911354bcf48cc378e31b99732d2dcbd9c01f2b159a500b53eb05b33 |
Close
Hashes for pylibjpeg_openjpeg-1.1.1-cp36-cp36m-manylinux1_i686.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 6294be5d5e843f7fdde0093395cb0a84e168671ea75264292358f371a56d2af4 |
|
MD5 | 69fcd70ed35d9972e3ff51dc0389357d |
|
BLAKE2b-256 | d0d2043b4819aa5da080fdc730665c09fa7b007eb799b3b2b1b89b8c90c99c69 |
Close
Hashes for pylibjpeg_openjpeg-1.1.1-cp36-cp36m-macosx_10_9_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | a56cecea6a2b369c710d7c94e3e1bc04cb22cd47a2b73ae4e3e4e6f2e54a90c0 |
|
MD5 | 2b04e27355aa0fad9e4e684ffcef1244 |
|
BLAKE2b-256 | 134603aa543fccf7b0c51db40949422174fba07c217ceed4f767b18ab8705d7a |