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
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file pylibjpeg-openjpeg-1.1.0.tar.gz.
File metadata
- Download URL: pylibjpeg-openjpeg-1.1.0.tar.gz
- Upload date:
- Size: 2.3 MB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.4.1 importlib_metadata/3.10.0 pkginfo/1.7.0 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.60.0 CPython/3.9.4
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
66514f5d5df6fdfc704296a8420e4b1feb335fad4e6901435e00c37f353fb44e
|
|
| MD5 |
401e09aeee5a16af3817b70ce46e0178
|
|
| BLAKE2b-256 |
491c43de9deec30e2a641a3a2f11efa6c13185fa2c77a962676e370a282a3814
|
File details
Details for the file pylibjpeg_openjpeg-1.1.0-cp39-cp39-win_amd64.whl.
File metadata
- Download URL: pylibjpeg_openjpeg-1.1.0-cp39-cp39-win_amd64.whl
- Upload date:
- Size: 3.0 MB
- Tags: CPython 3.9, Windows x86-64
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.4.1 importlib_metadata/3.10.0 pkginfo/1.7.0 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.60.0 CPython/3.9.4
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
e8a0a8f41c09b41bc1924cbf1ac7f796b8f2962152f5ccec02ce7a13b40f4db9
|
|
| MD5 |
7a9d9489b9787f0cb302c0377a15c942
|
|
| BLAKE2b-256 |
f9b75f4b88098b58831064455e71efd378bde4548106c017fd19ff9b6355f9f4
|
File details
Details for the file pylibjpeg_openjpeg-1.1.0-cp39-cp39-win32.whl.
File metadata
- Download URL: pylibjpeg_openjpeg-1.1.0-cp39-cp39-win32.whl
- Upload date:
- Size: 3.0 MB
- Tags: CPython 3.9, Windows x86
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.4.1 importlib_metadata/3.10.0 pkginfo/1.7.0 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.60.0 CPython/3.9.4
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
d9b3872d4669e8bdf24072f22f64f6e018f758cfc8896ab523324dd095713321
|
|
| MD5 |
2e8337c8d741690e28b8239bba8bd447
|
|
| BLAKE2b-256 |
04a54a2af618b8149ad451b7bd32c66e3fc0965634572b03b4dc776fa35d2381
|
File details
Details for the file pylibjpeg_openjpeg-1.1.0-cp39-cp39-manylinux2010_x86_64.whl.
File metadata
- Download URL: pylibjpeg_openjpeg-1.1.0-cp39-cp39-manylinux2010_x86_64.whl
- Upload date:
- Size: 3.6 MB
- Tags: CPython 3.9, manylinux: glibc 2.12+ x86-64
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.4.1 importlib_metadata/3.10.0 pkginfo/1.7.0 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.60.0 CPython/3.9.4
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
548aaaafec59eacd8870889c0f73ee5b6d30903eea1d9a12dbb6747920d4d971
|
|
| MD5 |
195bc974dbb3361015e600b9e098fe36
|
|
| BLAKE2b-256 |
c7fcd7b588803cfaba389c1d98f3aac193a758865a618cd39aaf8d3ec3a318c0
|
File details
Details for the file pylibjpeg_openjpeg-1.1.0-cp39-cp39-manylinux2010_i686.whl.
File metadata
- Download URL: pylibjpeg_openjpeg-1.1.0-cp39-cp39-manylinux2010_i686.whl
- Upload date:
- Size: 3.5 MB
- Tags: CPython 3.9, manylinux: glibc 2.12+ i686
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.4.1 importlib_metadata/3.10.0 pkginfo/1.7.0 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.60.0 CPython/3.9.4
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
4c369d991e5cf645002b22b295daf35216d2489db1877350eebfb6faac890c46
|
|
| MD5 |
1d34437364c18f6d97c1ab40e95cdd75
|
|
| BLAKE2b-256 |
770701afd2b75ccb19299eb4bf9d0b044f34f0b09ba2c30b7e25165a2562f432
|
File details
Details for the file pylibjpeg_openjpeg-1.1.0-cp39-cp39-manylinux1_x86_64.whl.
File metadata
- Download URL: pylibjpeg_openjpeg-1.1.0-cp39-cp39-manylinux1_x86_64.whl
- Upload date:
- Size: 3.6 MB
- Tags: CPython 3.9
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.4.1 importlib_metadata/3.10.0 pkginfo/1.7.0 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.60.0 CPython/3.9.4
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
49f307f5da0d4f4e330c4570e289f344990ebfd1b79b352fe25dbf26400fc4d1
|
|
| MD5 |
8dd20d1946d830c84425abc70c45b2d8
|
|
| BLAKE2b-256 |
69267401c5e815c139c4b12db0e74e22ef4a71eadf02814ae09c55df8548c0a7
|
File details
Details for the file pylibjpeg_openjpeg-1.1.0-cp39-cp39-manylinux1_i686.whl.
File metadata
- Download URL: pylibjpeg_openjpeg-1.1.0-cp39-cp39-manylinux1_i686.whl
- Upload date:
- Size: 3.5 MB
- Tags: CPython 3.9
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.4.1 importlib_metadata/3.10.0 pkginfo/1.7.0 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.60.0 CPython/3.9.4
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
4c67263183758b8e6f4753f3b8a68ce59b933f9daf20f41415d4d950a3f92ccd
|
|
| MD5 |
879811b0004896214fe1a4ad964a2fea
|
|
| BLAKE2b-256 |
35d49cfe45f7f83c243726bfa6cfd24ad25b1e65d149bfc067f0b19bef2805a6
|
File details
Details for the file pylibjpeg_openjpeg-1.1.0-cp39-cp39-macosx_10_9_x86_64.whl.
File metadata
- Download URL: pylibjpeg_openjpeg-1.1.0-cp39-cp39-macosx_10_9_x86_64.whl
- Upload date:
- Size: 3.0 MB
- Tags: CPython 3.9, macOS 10.9+ x86-64
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.4.1 importlib_metadata/3.10.0 pkginfo/1.7.0 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.60.0 CPython/3.9.4
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
d3c5edceb962e935360172c3546b3924aac2641fc2cb314140cb018b5912344a
|
|
| MD5 |
aa27ad4cece493abcc76030243f7c712
|
|
| BLAKE2b-256 |
33e0438ef49916bb3ac9ae8ed3d78fbbe226fcc13eaacb0a0c27bb634e06b2fd
|
File details
Details for the file pylibjpeg_openjpeg-1.1.0-cp38-cp38-win_amd64.whl.
File metadata
- Download URL: pylibjpeg_openjpeg-1.1.0-cp38-cp38-win_amd64.whl
- Upload date:
- Size: 3.0 MB
- Tags: CPython 3.8, Windows x86-64
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.4.1 importlib_metadata/3.10.0 pkginfo/1.7.0 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.60.0 CPython/3.9.4
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
1080a63efb503b9d29b924addfb01a50510431b6cf37a5d8d4f9d2fcab64433e
|
|
| MD5 |
8dd36296fccc797aab279385873bcc0e
|
|
| BLAKE2b-256 |
c8343f39824aab8137e5871edb7ae35e45b666cdae84b3ae50afc64cf5b0bdd9
|
File details
Details for the file pylibjpeg_openjpeg-1.1.0-cp38-cp38-win32.whl.
File metadata
- Download URL: pylibjpeg_openjpeg-1.1.0-cp38-cp38-win32.whl
- Upload date:
- Size: 3.0 MB
- Tags: CPython 3.8, Windows x86
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.4.1 importlib_metadata/3.10.0 pkginfo/1.7.0 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.60.0 CPython/3.9.4
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
b405d211dc64442a600d25b1b2ce2f7038e3e1582247c92c0b6c97b73a0f9d0c
|
|
| MD5 |
ea7ffdb5503557a6ca2cc9032649b44a
|
|
| BLAKE2b-256 |
b56ae9ee9bd2b753af35ec5ca2c98f9fa5c3b0933f482aa00d097bb2d84badf8
|
File details
Details for the file pylibjpeg_openjpeg-1.1.0-cp38-cp38-manylinux2010_x86_64.whl.
File metadata
- Download URL: pylibjpeg_openjpeg-1.1.0-cp38-cp38-manylinux2010_x86_64.whl
- Upload date:
- Size: 3.6 MB
- Tags: CPython 3.8, manylinux: glibc 2.12+ x86-64
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.4.1 importlib_metadata/3.10.0 pkginfo/1.7.0 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.60.0 CPython/3.9.4
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
93e29e3138636dc354fb61e2b206cfb3e58771ac16206bb7d2016f47b48fc2c8
|
|
| MD5 |
8fa691fe0b62f0ef9848bf431aa6d7bd
|
|
| BLAKE2b-256 |
5b3b0363844f438d5d637525ec99122c8475c86d823e225527659d3a27aea5a0
|
File details
Details for the file pylibjpeg_openjpeg-1.1.0-cp38-cp38-manylinux2010_i686.whl.
File metadata
- Download URL: pylibjpeg_openjpeg-1.1.0-cp38-cp38-manylinux2010_i686.whl
- Upload date:
- Size: 3.5 MB
- Tags: CPython 3.8, manylinux: glibc 2.12+ i686
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.4.1 importlib_metadata/3.10.0 pkginfo/1.7.0 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.60.0 CPython/3.9.4
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
b81c68172025ed9ed5b83f64dda4419d7e26373161da2b323d0c703d6dea092e
|
|
| MD5 |
2fc21f793a35e934db326d961ea9405b
|
|
| BLAKE2b-256 |
c15ab9ff0f9c6d0b6cfac7f14a3adc69364762a3e1c94b98ce9ca5d2cd2184aa
|
File details
Details for the file pylibjpeg_openjpeg-1.1.0-cp38-cp38-manylinux1_x86_64.whl.
File metadata
- Download URL: pylibjpeg_openjpeg-1.1.0-cp38-cp38-manylinux1_x86_64.whl
- Upload date:
- Size: 3.6 MB
- Tags: CPython 3.8
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.4.1 importlib_metadata/3.10.0 pkginfo/1.7.0 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.60.0 CPython/3.9.4
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
e8a7886b31d969f96a7a46aed562b75a0b3d0cb4d2fc5db0477719297edc7cae
|
|
| MD5 |
1563d87c9ae718985561ffd3790ee018
|
|
| BLAKE2b-256 |
52c34a738392adcb57a98ce611ceb0d4eb48e89dd03c1d056916564ad29e4466
|
File details
Details for the file pylibjpeg_openjpeg-1.1.0-cp38-cp38-manylinux1_i686.whl.
File metadata
- Download URL: pylibjpeg_openjpeg-1.1.0-cp38-cp38-manylinux1_i686.whl
- Upload date:
- Size: 3.5 MB
- Tags: CPython 3.8
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.4.1 importlib_metadata/3.10.0 pkginfo/1.7.0 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.60.0 CPython/3.9.4
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
b04eef715d27ab7a538f38912e8e8135168c0ecbe494a69c301fc6c7a1d567ab
|
|
| MD5 |
19f22992e7be4d04f3dde8e20a4316c8
|
|
| BLAKE2b-256 |
4ba26fd724cf80ef9c37a3fcb2f7b8572ac24e51c30b583f196a19338e509d2f
|
File details
Details for the file pylibjpeg_openjpeg-1.1.0-cp38-cp38-macosx_10_9_x86_64.whl.
File metadata
- Download URL: pylibjpeg_openjpeg-1.1.0-cp38-cp38-macosx_10_9_x86_64.whl
- Upload date:
- Size: 3.0 MB
- Tags: CPython 3.8, macOS 10.9+ x86-64
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.4.1 importlib_metadata/3.10.0 pkginfo/1.7.0 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.60.0 CPython/3.9.4
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
9679291e3e80114b32e4bc398601cb50aac38455fe03f0c44e0fd0ceb4428544
|
|
| MD5 |
d49070680f57097a8910982695a29178
|
|
| BLAKE2b-256 |
03c9b6d7d25074cb2a957b187c719e7764a814b5b1623f1d2349e713a7118c8f
|
File details
Details for the file pylibjpeg_openjpeg-1.1.0-cp37-cp37m-win_amd64.whl.
File metadata
- Download URL: pylibjpeg_openjpeg-1.1.0-cp37-cp37m-win_amd64.whl
- Upload date:
- Size: 3.0 MB
- Tags: CPython 3.7m, Windows x86-64
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.4.1 importlib_metadata/3.10.0 pkginfo/1.7.0 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.60.0 CPython/3.9.4
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
910f0d437c6b7e35adf171df725184a11c92d3798a5464484fc71af12eca2d23
|
|
| MD5 |
172f4a43c61ad70ae70ec373f2790e23
|
|
| BLAKE2b-256 |
c87589f536076cee0e9ef0a22e0b5d3242830c5e1fbc59a9c39519f594fb85d3
|
File details
Details for the file pylibjpeg_openjpeg-1.1.0-cp37-cp37m-win32.whl.
File metadata
- Download URL: pylibjpeg_openjpeg-1.1.0-cp37-cp37m-win32.whl
- Upload date:
- Size: 3.0 MB
- Tags: CPython 3.7m, Windows x86
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.4.1 importlib_metadata/3.10.0 pkginfo/1.7.0 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.60.0 CPython/3.9.4
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
b94bd2eea63f4077d67e6baa596348794c085e931fc4bb89d36f2a26ffecd8f3
|
|
| MD5 |
cba4d737fba3dc67bdb2d52aa7b8cea6
|
|
| BLAKE2b-256 |
6160e64f014f23ce7ddb3664e38f3c47e109b57e5e90a07de0422fce700779bc
|
File details
Details for the file pylibjpeg_openjpeg-1.1.0-cp37-cp37m-manylinux2010_x86_64.whl.
File metadata
- Download URL: pylibjpeg_openjpeg-1.1.0-cp37-cp37m-manylinux2010_x86_64.whl
- Upload date:
- Size: 3.6 MB
- Tags: CPython 3.7m, manylinux: glibc 2.12+ x86-64
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.4.1 importlib_metadata/3.10.0 pkginfo/1.7.0 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.60.0 CPython/3.9.4
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
08fd2c7eb49aaca4fd4f72092643ab2e26271da77265e8b679152bcc14332f8d
|
|
| MD5 |
3848614655105022776326e4d7200e53
|
|
| BLAKE2b-256 |
c0e3560ac772c599ce8326535257b0722b6a5bfbad23efa5fedf7bb0286422a5
|
File details
Details for the file pylibjpeg_openjpeg-1.1.0-cp37-cp37m-manylinux2010_i686.whl.
File metadata
- Download URL: pylibjpeg_openjpeg-1.1.0-cp37-cp37m-manylinux2010_i686.whl
- Upload date:
- Size: 3.5 MB
- Tags: CPython 3.7m, manylinux: glibc 2.12+ i686
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.4.1 importlib_metadata/3.10.0 pkginfo/1.7.0 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.60.0 CPython/3.9.4
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
0462d7fa8d3ff424207f972586566bc50591680c34fd0a8be40bb126ff878e29
|
|
| MD5 |
2cd22695f044c8cb8d0de5a3908e1000
|
|
| BLAKE2b-256 |
de807d8b006f7a2a523f8e41f159127b60b6befd92a031690a54577f695f713b
|
File details
Details for the file pylibjpeg_openjpeg-1.1.0-cp37-cp37m-manylinux1_x86_64.whl.
File metadata
- Download URL: pylibjpeg_openjpeg-1.1.0-cp37-cp37m-manylinux1_x86_64.whl
- Upload date:
- Size: 3.6 MB
- Tags: CPython 3.7m
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.4.1 importlib_metadata/3.10.0 pkginfo/1.7.0 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.60.0 CPython/3.9.4
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
7c4b23698ce579eca63452ca3ef9c165d606d9843c38d5eefc40ba845223abaa
|
|
| MD5 |
266705efbaf7fdd9957608cfb7b8a4fa
|
|
| BLAKE2b-256 |
fb6c0a12441fc0f87e26da3b504b9a5e6099ce1ae5a22d467a9f7f5271e3f9d1
|
File details
Details for the file pylibjpeg_openjpeg-1.1.0-cp37-cp37m-manylinux1_i686.whl.
File metadata
- Download URL: pylibjpeg_openjpeg-1.1.0-cp37-cp37m-manylinux1_i686.whl
- Upload date:
- Size: 3.5 MB
- Tags: CPython 3.7m
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.4.1 importlib_metadata/3.10.0 pkginfo/1.7.0 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.60.0 CPython/3.9.4
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
c8443cd6916ad39fd0efa3cb5a5527c5c41d1f19ae5dca58f7517bc11a3fe8e8
|
|
| MD5 |
4d3d819510eecbb137d5eb8cb95fffef
|
|
| BLAKE2b-256 |
2f522fdaa9625b898598584ff91320bcb13c60f43868944bd0223e3220234c43
|
File details
Details for the file pylibjpeg_openjpeg-1.1.0-cp37-cp37m-macosx_10_9_x86_64.whl.
File metadata
- Download URL: pylibjpeg_openjpeg-1.1.0-cp37-cp37m-macosx_10_9_x86_64.whl
- Upload date:
- Size: 3.0 MB
- Tags: CPython 3.7m, macOS 10.9+ x86-64
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.4.1 importlib_metadata/3.10.0 pkginfo/1.7.0 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.60.0 CPython/3.9.4
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
934159f9e101fbe817c363cd585c8c820d780acdf507a537565e76a4e3938019
|
|
| MD5 |
f8816f64eadfa305dcf3414800173083
|
|
| BLAKE2b-256 |
54e9e08952e8c572156e0be10f0ee40840b420232d5f67d741917f7788852665
|