A Python wrapper for openjpeg, with a focus on use as a plugin for for pylibjpeg
Project description
pylibjpeg-openjpeg
A Python 3.7+ 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
pylibjpeg-openjpeg-1.3.2.tar.gz
(362.5 kB
view hashes)
Built Distributions
Close
Hashes for pylibjpeg_openjpeg-1.3.2-cp311-cp311-win_amd64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | b3d06608dd182e233052b24b6d98398034cf892b2b11b8576bb0e113939edaa0 |
|
MD5 | d1e48a7bb824c351007e0f924942817a |
|
BLAKE2b-256 | e23c97e16674851ec1dea7698a717bc9c366f76641e3424a1dee8ed92277065d |
Close
Hashes for pylibjpeg_openjpeg-1.3.2-cp311-cp311-win32.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 3437f34a931d9f5c7e1788ee6f121e46945d952827fa634a48671e1f550163d8 |
|
MD5 | 160688635fa02419a07824cb57e5c8b3 |
|
BLAKE2b-256 | f07c5aaaa7e322bb3e41614b4913fd6efc2a232adce5308be335deec0eddb5bf |
Close
Hashes for pylibjpeg_openjpeg-1.3.2-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 2899f25327425609e6badf291ff254a3397d4355d1b4d3bd32a27ca899269952 |
|
MD5 | bc35987a88a1561209dc9a25666261f5 |
|
BLAKE2b-256 | 5d59b95039f8c3b7cd3845a57d964c52b24f38c2157f097f804a64270bdfae06 |
Close
Hashes for pylibjpeg_openjpeg-1.3.2-cp311-cp311-manylinux_2_17_aarch64.manylinux2014_aarch64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 3fa838f8a8c32070b3ebb0486b4ed504fe581a69d35f57acea4d546c2a97c007 |
|
MD5 | 3338a80d3bc62ad63fcfbf793e95a473 |
|
BLAKE2b-256 | 508452ae0b9c0960451e5c11074b85ea89f54fbe43f7b2f819dc576460e3bb16 |
Close
Hashes for pylibjpeg_openjpeg-1.3.2-cp311-cp311-macosx_11_0_arm64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | bd677308827655e085c32d4fdf1d818984326656beffaa9168eaa7006e9780c9 |
|
MD5 | 1a453ae227d7c86e6292cad6d42c55c7 |
|
BLAKE2b-256 | 333047216025577ec2d522368acd220b9180fac85540390ea61d076fe1552727 |
Close
Hashes for pylibjpeg_openjpeg-1.3.2-cp311-cp311-macosx_10_9_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 377bbfba8b27d53fd46aa78027e420428f60dfb2ddeea05828640b0f007b4ba6 |
|
MD5 | ddd24492696c96737cb0046f2e4b1f35 |
|
BLAKE2b-256 | b810f6ab9d447d9c3d653661ce10ed46be91575c15921e5894624fbb8cab2c5f |
Close
Hashes for pylibjpeg_openjpeg-1.3.2-cp310-cp310-win_amd64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 8a21bb7f16a7bddae82f9a19e1a4d17096369ca5d12854c4be8b998e970de073 |
|
MD5 | 5249b7810f81c728bc77983bb50fa990 |
|
BLAKE2b-256 | f844666cf0d2bab229e0a4b4bc59c9ed35723cd23542d2156c785a0f518fb9b7 |
Close
Hashes for pylibjpeg_openjpeg-1.3.2-cp310-cp310-win32.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 3b89a70336015067fbe463852baa5ffc10e6b0afc1f9819bf07c2dfd6e8340a2 |
|
MD5 | 0d77425dbf2fd13ed02152233fffb77e |
|
BLAKE2b-256 | bc848eb53ea4a67531aeaa763a306689c44cdffddfaee4ac6d61d70fb304e7d9 |
Close
Hashes for pylibjpeg_openjpeg-1.3.2-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 8cfe0ca5766d04a4748c640bf416187a7b6815db44c3ad2548b0aae3dee36d1f |
|
MD5 | 093fe09410f6a7bf1023b9ebf3099545 |
|
BLAKE2b-256 | 08e37f65ceee76e227bd9e11d7eeb8867fb9750bdb4605f65dd6944657f38f96 |
Close
Hashes for pylibjpeg_openjpeg-1.3.2-cp310-cp310-manylinux_2_17_aarch64.manylinux2014_aarch64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 0eb7694ea2fc61e73fcae8720746afa7bddf0784d9d49d4aaf01df4684fc0059 |
|
MD5 | fddaa89d1c4a6c82abcd261aeac9aeef |
|
BLAKE2b-256 | 0585fa0c8a9338b55618a7f0627d04646ca4ed71f5ea181964ac7826f20f95b5 |
Close
Hashes for pylibjpeg_openjpeg-1.3.2-cp310-cp310-macosx_11_0_arm64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 92dac4beb4f4546431dc74a743e1086342a565ffdb58e7f8353ce5717a273144 |
|
MD5 | ad8df7d9a19fb33341d6c964dfb696e4 |
|
BLAKE2b-256 | 8654c54273f97706a6a453a7f02d10e4f77f795945bade0f62db0ee233f70caa |
Close
Hashes for pylibjpeg_openjpeg-1.3.2-cp310-cp310-macosx_10_9_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | af54848d53b460b1a5b8227d32b7024a2f83cbb4a3d7e12888f86ed9f3835565 |
|
MD5 | c855066bd8246982a162969f7b520d6e |
|
BLAKE2b-256 | 36b0bb1586d62d40c861cfa052a7a0d616895cb85bec6f821e4209baf3df72fe |
Close
Hashes for pylibjpeg_openjpeg-1.3.2-cp39-cp39-win_amd64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 61bc24695248a76222026dcfd7aa15527fae97aec43a38eb48a88f9afe612880 |
|
MD5 | daca3e8fccfe444f0d9e12f5c48025b2 |
|
BLAKE2b-256 | 87ba78aeb536f1e568cd91f988bf603ea7957066ef18f73eda53061601f9d3de |
Close
Hashes for pylibjpeg_openjpeg-1.3.2-cp39-cp39-win32.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 5d3714af3f413542732f630fbecc31647d573a8b87fb6d67f320e37b16aa48d9 |
|
MD5 | e2ed7e997a2b43840319c9e9950c1f77 |
|
BLAKE2b-256 | 50a654042cec693a5d125c2d17792e68070ea8bd09f74f2287700d4eb5e7b54d |
Close
Hashes for pylibjpeg_openjpeg-1.3.2-cp39-cp39-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | adce0fc4d77121bed6867e68ddb1d7e02dfd23e119d9906356862197a487d40a |
|
MD5 | c72a6ea252887e2b4cb4a73109209289 |
|
BLAKE2b-256 | abdc7aa4eb66e0f8aa89c77d65591eea82f8daa768e6bf5c94aa301079353397 |
Close
Hashes for pylibjpeg_openjpeg-1.3.2-cp39-cp39-manylinux_2_17_aarch64.manylinux2014_aarch64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 0b4418605f454af1cd1b1834f77d62e9ea31e848c65ffaefdf9fe9afb2b515c2 |
|
MD5 | c9a87d2f03a1a719ee002ade2b370dd1 |
|
BLAKE2b-256 | 944e3dd0a2de8f31174b8ff8528063aea0b596c92e6f6f2f03bf3c8b183a13ed |
Close
Hashes for pylibjpeg_openjpeg-1.3.2-cp39-cp39-manylinux_2_5_x86_64.manylinux1_x86_64.manylinux_2_12_x86_64.manylinux2010_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | d77575fa1139859f809de01dffb15bb16a3a5bec687d469c2c8aca80546b5de5 |
|
MD5 | 3d6b5d1baa72dea0bcf65556610c6048 |
|
BLAKE2b-256 | 00265ab927063f61ea7e3c00bc8075bb46eb7b48ff11de35d899f80bdd940e90 |
Close
Hashes for pylibjpeg_openjpeg-1.3.2-cp39-cp39-macosx_11_0_arm64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | ac29069ee233696e7c888f4325f06ec2f3917d37efbdddf2efbfa6823546e8cf |
|
MD5 | 1d36a65672ad426ae3f8b526ad2ef358 |
|
BLAKE2b-256 | e79ccfd5e53652e9d27e63e50c50534b31ccf921a84dd1f7997136bc3ba19522 |
Close
Hashes for pylibjpeg_openjpeg-1.3.2-cp39-cp39-macosx_10_9_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | b399beb40684c8271a0bb1923f3b4fc9b9b5d2600043f297ba2da30c71995c8e |
|
MD5 | 92320fa5a02efb230c850f803eef2253 |
|
BLAKE2b-256 | 49624330aa817b899507dd9d4e90a92149281d1259c5192647227a16f79aad03 |
Close
Hashes for pylibjpeg_openjpeg-1.3.2-cp38-cp38-win_amd64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 6ec13d6cb11028925d78aa4af3471209102c487a16f7267af49b0e006aa5d950 |
|
MD5 | 623ee9020482e13b4351070ce6d08a07 |
|
BLAKE2b-256 | 9593462e2076043367a85d9efd80ef0edf6af8a6e5c2aecf0f3e3d9914bda8d3 |
Close
Hashes for pylibjpeg_openjpeg-1.3.2-cp38-cp38-win32.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | e815e3f42b0154ef1d64e71f77141b35d5a8fd8313605bdf23060db822cccddf |
|
MD5 | 29f5f6a88857928a29c111c971957409 |
|
BLAKE2b-256 | 6996615b376a22e07cbd7723815bd66a3f3af485be1d22c776d6fb80ec2557a2 |
Close
Hashes for pylibjpeg_openjpeg-1.3.2-cp38-cp38-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 622a4178ed5272adaad9f64c66fe9a96a6f8fccb43130afb6bce9de5ac26afc3 |
|
MD5 | 372651ac01e2417ed9e1ee424cdbdf82 |
|
BLAKE2b-256 | 5cf791b1045107fd3c922c105cbb139ac551617e8814b90134362f470a34272c |
Close
Hashes for pylibjpeg_openjpeg-1.3.2-cp38-cp38-manylinux_2_17_aarch64.manylinux2014_aarch64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 7865f17c835ab36c17e9433b6ab6d083f1cb2764b6f0782f11d677411d5ce3e0 |
|
MD5 | 7489a7c5c8ca8db3b6963db83eb8843d |
|
BLAKE2b-256 | 2ff7cf0e4c732aa65a8f062b401798dbb2620c4e21d417ef2c0c7733d3ee69a4 |
Close
Hashes for pylibjpeg_openjpeg-1.3.2-cp38-cp38-manylinux_2_5_x86_64.manylinux1_x86_64.manylinux_2_12_x86_64.manylinux2010_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 68fceb275ca41465acdf2c99b486b323a7ffb607416fcd442a4a271001d9fc0a |
|
MD5 | bf6e75cb4f5a100719f552a182d19e53 |
|
BLAKE2b-256 | 343ace5854e7c4b2bed8772339e13b31b8c19f73a2fed4b023102841e78dce0d |
Close
Hashes for pylibjpeg_openjpeg-1.3.2-cp38-cp38-macosx_11_0_arm64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | c72613a723c49179a428e038c333f674a8c88ce2e128032ff29426f419d1ba8a |
|
MD5 | d3fb72fb3679258fc9187e95307a1662 |
|
BLAKE2b-256 | 09105a568b72baa514369fb91aefec95244587c62c94dee90f3b8e468323b1b3 |
Close
Hashes for pylibjpeg_openjpeg-1.3.2-cp38-cp38-macosx_10_9_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 9b570c704d0ba031de1b7dfde67c47ae583fdf2caf86353283e4863cb2b3b19f |
|
MD5 | 60821c7eb4f6ba9d85fee04273c9b40c |
|
BLAKE2b-256 | 7a9da2c6f74c3482f22c12c028d9a1365282a731c3cba9a791982c3d72c38da4 |
Close
Hashes for pylibjpeg_openjpeg-1.3.2-cp37-cp37m-win_amd64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | ae1aee0f9fb7f3e04b7654bf2b24ec12880394eabeabe8e38c9bd9e92fac9261 |
|
MD5 | 6840ee98c2b037d4caa90d8785d9731a |
|
BLAKE2b-256 | b3288804b49d2379320755c9a4d976c64b5b1c1206d3520ac9638cb634859e0d |
Close
Hashes for pylibjpeg_openjpeg-1.3.2-cp37-cp37m-win32.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 2d575133dd868809d65c83c38e6bdc31a10be337c6c2e13b98ec16dd18801f2a |
|
MD5 | 2537cedfbd5136104043f0bfb6d423f3 |
|
BLAKE2b-256 | 66c8061f953135c9beddb419bad68df526c80281991a0f98a3ce830b31ae116b |
Close
Hashes for pylibjpeg_openjpeg-1.3.2-cp37-cp37m-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 6a134b70ccaf68411a4dfd784b3fd29268a18850c2912c0d31d6fe3f5495b38d |
|
MD5 | a843fb1c7f99186fc7b130cb47ffd23d |
|
BLAKE2b-256 | 7fab283352dcc23ba54012ced7f5f4ae934e3d41700e8ce5cf90929a3dad931c |
Close
Hashes for pylibjpeg_openjpeg-1.3.2-cp37-cp37m-manylinux_2_17_aarch64.manylinux2014_aarch64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | a18d7c8603ec3c71efda1e5e3b8d6b070454107fb44b72252cebbbfa308f0a77 |
|
MD5 | 9adba64f010860c7bae859132038c767 |
|
BLAKE2b-256 | 9636dceea6d34ca2408b54840b9df28b455b24f5cd522b8f7f3defb77503125e |
Close
Hashes for pylibjpeg_openjpeg-1.3.2-cp37-cp37m-manylinux_2_5_x86_64.manylinux1_x86_64.manylinux_2_12_x86_64.manylinux2010_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 5d572015a15598e0263ee576d1c1d7f79ca18fbb5ab6fc667cb0e62359aa3827 |
|
MD5 | c9183dc961c47f3073d9bf7678a2bc84 |
|
BLAKE2b-256 | caadbe60dc0f15969fc4f137c16ffdef3390eea10f1a23b1ca495fb2b93d0145 |
Close
Hashes for pylibjpeg_openjpeg-1.3.2-cp37-cp37m-macosx_10_9_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | cf1bbd815b48cb1403bf97f522eea4a83f9a9335f06970e778e3e194ce33a2a6 |
|
MD5 | f93a420e828010d3a7ae2e92f5c9969f |
|
BLAKE2b-256 | 074bad5eebb1cce14310da83f01a3d3bb578fa4233a498fe7ded393a0a7ff56c |