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/scaramallion/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
import pylibjpeg
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)
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 Distributions
No source distribution files available for this release.See tutorial on generating distribution archives.
Built Distributions
Close
Hashes for pylibjpeg_openjpeg-1.0.0-cp38-cp38-win_amd64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 12444e9389f2c7ae92a7691a7d9b70a5d672431a4b2afb36fac33c59655b77c1 |
|
MD5 | aafb7bc29afefdd2ff316654353e6db8 |
|
BLAKE2b-256 | 9f94ef6c4152415afa2b330ca34267661411c242b07b369096942c26f85a5145 |
Close
Hashes for pylibjpeg_openjpeg-1.0.0-cp38-cp38-win32.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 19671207714e63b3ac6e3caca21fba97d21d9ff605aaaaf40fe74fa29afcb711 |
|
MD5 | 4ec8e8687e09d571e2acd578b9e43d30 |
|
BLAKE2b-256 | e38928571b8195598f1a20e0bc859e235dc6a5d910b8cdace553170aa5ff95eb |
Close
Hashes for pylibjpeg_openjpeg-1.0.0-cp38-cp38-manylinux2010_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 524e0a9e553b47af1d2137217b35e9a5fad8e199106a0a528dbc3ac95d485cf8 |
|
MD5 | 49482d36fb581a1da5e696202891bd90 |
|
BLAKE2b-256 | 49e10f65336a4be9d635692c8e098754932a76302101921a51bc71aa1c04bbed |
Close
Hashes for pylibjpeg_openjpeg-1.0.0-cp38-cp38-manylinux2010_i686.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 93cffd63988ea1ba27c747cc72f6c2c7ad8cb97742b817999c719b0749c2a495 |
|
MD5 | 38e03cadcdd2f020f1c77400db1785d1 |
|
BLAKE2b-256 | 4692df3686016e02fa955a8cfa832909a8e6469c5889130f99daf9abc2461a07 |
Close
Hashes for pylibjpeg_openjpeg-1.0.0-cp38-cp38-manylinux1_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | e4094176f9a21ee23f7b0e3e243e5698d72edd6d33a2ee982b77de289108937c |
|
MD5 | 25e8d971b118edfcb5e6990493e7561f |
|
BLAKE2b-256 | 001b16538fe63be4f97792317f0896221900c668fc566f9439a6b63a113712fe |
Close
Hashes for pylibjpeg_openjpeg-1.0.0-cp38-cp38-manylinux1_i686.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 0edae13c83c6726497876a29e9fb75c029723d894444fb69fd577a9f991f015b |
|
MD5 | 1564073a10a6f8e4fba2812698558292 |
|
BLAKE2b-256 | 0dcab2b907d06393c223a69dd23cb79c9956a46c9be8055e5b609227b01828dd |
Close
Hashes for pylibjpeg_openjpeg-1.0.0-cp38-cp38-macosx_10_9_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 114412d6e57c2960cf88a5766151dd8c6f5e28aa3d8b97f4a19b9eab9887180c |
|
MD5 | 30c0e729a32b7b8ffbfe4807c0aafa17 |
|
BLAKE2b-256 | 0ce9f44ab9484369fd31aba9d47f3d39aa3209e79f4300bf17bb0620c76dc219 |
Close
Hashes for pylibjpeg_openjpeg-1.0.0-cp37-cp37m-win_amd64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 189a3061f6583b58a27a6352a8ff2639c3b58afcf1236cb2048a85443e7c5f31 |
|
MD5 | f193b52c972fc52be56913adb415c7fe |
|
BLAKE2b-256 | e7332282032d308752cb78dc7f32a0e21c6a7da25850022a9a0bed7245d87ec9 |
Close
Hashes for pylibjpeg_openjpeg-1.0.0-cp37-cp37m-win32.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 90aad1109ffcbcfcb872d01a592684af0dcf391a2e5ae9a2f9b057ee021e7458 |
|
MD5 | 3ad55898bea4763a693fc2a42ccb75e0 |
|
BLAKE2b-256 | 46240aa3c02c815e95db1945580fa813e0606ce7ed85aed92fa8d025a97b04b7 |
Close
Hashes for pylibjpeg_openjpeg-1.0.0-cp37-cp37m-manylinux2010_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | bfb2ab999177a56abfa10b9360df4fd6edf28243db203875a09a8e9a39f06b43 |
|
MD5 | 68a0e121cd2244d39438846048fd77ea |
|
BLAKE2b-256 | 5b9899cce340d4b49df2dc891bf54f972500632b166e74fd8f768134b3f3f754 |
Close
Hashes for pylibjpeg_openjpeg-1.0.0-cp37-cp37m-manylinux2010_i686.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | e495ae342d56f0d698238ec1e6fb0797baba272ac1fb1c77353b2360eb637d6b |
|
MD5 | f8078da11a98051ea097eca76db8a299 |
|
BLAKE2b-256 | 20ce9724d1167ceafa1d9a2892f6bd717226b0423e65f2c6755beaf09c1ece98 |
Close
Hashes for pylibjpeg_openjpeg-1.0.0-cp37-cp37m-manylinux1_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 95de36cc80e3c6453d62930ec191eda3bef2b4ca39671ff905aa814531329db4 |
|
MD5 | 832bdaa436833693ec8ca536b52df803 |
|
BLAKE2b-256 | 573c30e069da60ac5e633604eef269461125ac36847597aaf0e553b9be51a819 |
Close
Hashes for pylibjpeg_openjpeg-1.0.0-cp37-cp37m-manylinux1_i686.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | c300549a2cab356453a889194177cbb16ec3ae231a9005fb793c6f4993cbcd3c |
|
MD5 | 60116ad81be388b174a7ed90bfe07496 |
|
BLAKE2b-256 | 88cbfa71728601c7ec54857f49793c8ab67f3bd415db9bdcb0c62c18c234dd2b |
Close
Hashes for pylibjpeg_openjpeg-1.0.0-cp37-cp37m-macosx_10_9_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 9a8355b368862c2357b56268e063aeea91c2bff56cb4a0c0f946a0288e373bd9 |
|
MD5 | 7ea6572f43e2a0349ae037717c59a027 |
|
BLAKE2b-256 | d7904f103d644784b2cb59ff015fcc951b1e7a4b904698e14164bcd2c2f22fc8 |
Close
Hashes for pylibjpeg_openjpeg-1.0.0-cp36-cp36m-win_amd64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 580abd3add726e3dde53e7298085fb1819ca2ca50a1149ad35e33442cd16c04a |
|
MD5 | 0b75058796f4db675d61edd90dab6d68 |
|
BLAKE2b-256 | 6bb4f2f9408d17315f0273236e9563d551a90716fb5a649ac6d5af045ba94fdb |
Close
Hashes for pylibjpeg_openjpeg-1.0.0-cp36-cp36m-win32.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 912b7bab93d96a693a92f47f102f0a8ba907c6fa5d9a251d419eb3e1c450163b |
|
MD5 | 6d17e718a9194e87157d785c3fe88d86 |
|
BLAKE2b-256 | c444707e77818baac078a7dc807f7d8d1b8e724bc17c436b6ab6702331bd54dc |
Close
Hashes for pylibjpeg_openjpeg-1.0.0-cp36-cp36m-manylinux2010_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 70adbc8faa1ecd6c968200bf73ac4a0f331843bf162a3ea38cb7ce4e854eafb9 |
|
MD5 | 64b7b0c2aa94ba8c3290f9d04042fdbf |
|
BLAKE2b-256 | 1c19f0ee4733bc754da80006418b386ef4914a0f440d1a9084fb596a1723071f |
Close
Hashes for pylibjpeg_openjpeg-1.0.0-cp36-cp36m-manylinux2010_i686.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | cf94e9ad0e6401e4eb6b5ae324d15bd63ceca91828b4388024575431b8af8aab |
|
MD5 | 75bae51ae357976cd939425cca64a079 |
|
BLAKE2b-256 | ca126e159a291e4fb07b5d9361c7b2ae328f95f4093fc5fef32a195fbb237c33 |
Close
Hashes for pylibjpeg_openjpeg-1.0.0-cp36-cp36m-manylinux1_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 71720d90dbd2a74700665c2d0b2d8928c1bda4a0ee8a03c1491f9a82bfd53144 |
|
MD5 | 37a7de349c06e5d5ff85b512bda4d1c0 |
|
BLAKE2b-256 | baeafb84ac6b950e48b581b71957e6be6bfc94525e7f40690680938b4d07fab2 |
Close
Hashes for pylibjpeg_openjpeg-1.0.0-cp36-cp36m-manylinux1_i686.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 9bc84b881c2662268410ce627db4dc7c17a5c776536bf96a0d1f502933db422a |
|
MD5 | 5705234be73bcd1fafc0bdc74fca1e9d |
|
BLAKE2b-256 | 0be3d1ba3c256147406b194a4b673e23763b121de510f73e875b783019b6ede0 |
Close
Hashes for pylibjpeg_openjpeg-1.0.0-cp36-cp36m-macosx_10_9_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 336aa428610b4ca1f0c5ae6a1919c60c17e4d789c5d4b05aad699aaf141052d7 |
|
MD5 | 93de573c586010a095aa75b65431f96b |
|
BLAKE2b-256 | e59e4403010b9c6e3132a3080737dd18253f543c056507461ea3f13dcadf98c6 |