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.1.tar.gz
(362.5 kB
view hashes)
Built Distributions
Close
Hashes for pylibjpeg_openjpeg-1.3.1-cp310-cp310-win_amd64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 107763eb7e9bf1d2bbf93dc85c9eef6a2081b11481c70c8d85aa3980b6bdb0aa |
|
MD5 | 5f31e382466bea6d3cac7d4e5a5669a5 |
|
BLAKE2b-256 | 9777da3aa88a8c9cf9a0da65fdd09ffd2283cf1f351fa43ae5fa8f92251fced3 |
Close
Hashes for pylibjpeg_openjpeg-1.3.1-cp310-cp310-win32.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 0e6e934017b230cb3e73c817a67c6e552919c4205d5568bc8808fbd5675ceb31 |
|
MD5 | 15e5deba769e514a41c5c6880015960d |
|
BLAKE2b-256 | 020602bb00c86748c6cb592cd0d5f0137b95685f85d41e1f4f08490d9a96b917 |
Close
Hashes for pylibjpeg_openjpeg-1.3.1-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | f8fb38666bf25d5f1eee893dbf669d52689e906c74a714594a0a5ea4563ddab0 |
|
MD5 | 00d4c17d9be378946a5156bb2cac298f |
|
BLAKE2b-256 | e2499b639e73bef2d73cc500fae28176cbc0c1ebd94766e34c8330a663e2823d |
Close
Hashes for pylibjpeg_openjpeg-1.3.1-cp310-cp310-manylinux_2_17_aarch64.manylinux2014_aarch64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 572ddbc9c6f0edd35b5a936f8e0619bf5fd26095947dcbe25c9d9a76ffcd0bc2 |
|
MD5 | 11023d499f40560b30feceb2825de0ae |
|
BLAKE2b-256 | 552fdf8c030d72d6f000f3da3a50a1124415ee0820e6c15760d001a95ad432d5 |
Close
Hashes for pylibjpeg_openjpeg-1.3.1-cp310-cp310-macosx_11_0_arm64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 00983add6ef409b33edd07a83ebadaad90a50e8b67d4f175239e1211eef6a348 |
|
MD5 | fb5078af140fb9fcf5bfd5c046d39fb7 |
|
BLAKE2b-256 | 4691b75ff621de617d510384b2307798a756126f4dde7f47a84655e330080b10 |
Close
Hashes for pylibjpeg_openjpeg-1.3.1-cp310-cp310-macosx_10_9_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 9bfaf5c060885c9953116751d3aaf997789a8e6e70219590d611d0ee207fa44e |
|
MD5 | 6f97a74031782d1337fd7c50ca38c998 |
|
BLAKE2b-256 | 73366bc6fde877b2e0637cbd4ec0750ec72e27efea73b0fb0bd9aa4b303be52a |
Close
Hashes for pylibjpeg_openjpeg-1.3.1-cp39-cp39-win_amd64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | a08c4d00b212fa102a59868a426161c634acf60954c829ef21fd8c5968812ad7 |
|
MD5 | 22e6b9de2351938336d141818a020cb1 |
|
BLAKE2b-256 | edea61e441874d38c84f3a766335e5441c322234df54062a3341c4483f2a79f1 |
Close
Hashes for pylibjpeg_openjpeg-1.3.1-cp39-cp39-win32.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 732a36028e9e62e1652c957b467b778b6adc656e894bcfacb78892699af13e22 |
|
MD5 | 1d5f45c9bfa77a022f02b6df5becd34f |
|
BLAKE2b-256 | 9f604b7fc0052a84a4fe48104acbf524e26a5e45e06a9f2f9bffcba7f70791e1 |
Close
Hashes for pylibjpeg_openjpeg-1.3.1-cp39-cp39-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 77e9631149889b03d294f3fc55033cf89b1f7381840af89dc3b550a62e6b72ed |
|
MD5 | bf4cabb1bd97e37eba88aa14b9de1da2 |
|
BLAKE2b-256 | f4340347698f068120645dac4b5bda4782a697bdbf98d6a00c4ab1a21a768b35 |
Close
Hashes for pylibjpeg_openjpeg-1.3.1-cp39-cp39-manylinux_2_17_aarch64.manylinux2014_aarch64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 14ae24a55b41bc8fd19e01c905b316e9378693f6607842fb378f815a67908d49 |
|
MD5 | 4d1209cf78784a4471fca151126044d8 |
|
BLAKE2b-256 | 6e5006ed6a370ffe774787d8a9ef2c3b78f8905f378dbcaf9e4f69420c612a3b |
Close
Hashes for pylibjpeg_openjpeg-1.3.1-cp39-cp39-manylinux_2_5_x86_64.manylinux1_x86_64.manylinux_2_12_x86_64.manylinux2010_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | b58249f535e6ca17867960df61b7e316fa4915ca48886b315362a62206329e42 |
|
MD5 | 8458d399fc7ffafbf75f9a04025abb90 |
|
BLAKE2b-256 | a501ed4b54a3f4080e9b20cb139d77c80924d78314f566f1958d9568a3dfbc71 |
Close
Hashes for pylibjpeg_openjpeg-1.3.1-cp39-cp39-macosx_11_0_arm64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | a4f3a81437d1478e19273a6938047058ac9f14fcf89310193df3a590195d163b |
|
MD5 | 3cf78a9e35e9c5d0f5f44742345df7de |
|
BLAKE2b-256 | 125944e06a480953e27b15d37abe4455269c274a685bc25278b3878828061beb |
Close
Hashes for pylibjpeg_openjpeg-1.3.1-cp39-cp39-macosx_10_9_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | ce320e21dd038625ba8d4286a26200a949192f3e43c1321bac7ad483decdd0b5 |
|
MD5 | dadf23fc9f937fdcbd460194c2caf2a4 |
|
BLAKE2b-256 | c1d0dd870b7a8e7de8dd2adb7337123351aaa14ec6aa94686a6bb54bc9c2db60 |
Close
Hashes for pylibjpeg_openjpeg-1.3.1-cp38-cp38-win_amd64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | a2c061c38a88be97e5b8666d6a25470b8ae3e94ab05c57e5e372770190d2ca2e |
|
MD5 | 679d692794b6660c6a5754ae85f1cd71 |
|
BLAKE2b-256 | 2c1b20391dcd57a1689d58bee9422461c5be00ee426c5f783d8da4d044b00932 |
Close
Hashes for pylibjpeg_openjpeg-1.3.1-cp38-cp38-win32.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | c1fc5c8664d9a1e5859d463711571868e5fdf588f0234de92898b83d8ec40927 |
|
MD5 | ec3c5f500f40f0788cbdc890a665fe23 |
|
BLAKE2b-256 | 9ac0a816f5174f5af20b6c7c017cfb86c00ccf4bdf825bc2d09330ad8e39c180 |
Close
Hashes for pylibjpeg_openjpeg-1.3.1-cp38-cp38-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 2a95231444718c006966bd15f101e5c8ae2d6ca979085ad53aeb57a5b1ebc1f1 |
|
MD5 | 0ccfba9109c286c73b5565f410dbe8be |
|
BLAKE2b-256 | 7f4a85661520b74a88cb4d953c0163d306fa689f0ba4199ce5573c7993b25ce9 |
Close
Hashes for pylibjpeg_openjpeg-1.3.1-cp38-cp38-manylinux_2_17_aarch64.manylinux2014_aarch64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 6be478a896e41466093e145808b1bc21985d7faf74026f9f12f981726105672d |
|
MD5 | 78308f79e0cb54e64c52f2fe286a102a |
|
BLAKE2b-256 | 4173cb9899176c99d1a86ddd00a5835cd37dbde9c0b2fd1b9dcea95be81aa4a0 |
Close
Hashes for pylibjpeg_openjpeg-1.3.1-cp38-cp38-manylinux_2_5_x86_64.manylinux1_x86_64.manylinux_2_12_x86_64.manylinux2010_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | abef4e67d3f99fec7cfc985126b63c3f443a3ff9906f7b2480be806ac8ea36d7 |
|
MD5 | b8d5e38ded67717c101186ce99be2584 |
|
BLAKE2b-256 | 25366eb150ec302b8f093c8e36524b8623a4c89f50a386d079cb222c21140c8d |
Close
Hashes for pylibjpeg_openjpeg-1.3.1-cp38-cp38-macosx_11_0_arm64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 0f35e0c4ba30f1d7cad2f02f878b162fccda261017bd97f067f61ee2483045d0 |
|
MD5 | 929b5c77e25f6d06fd9f16634212367f |
|
BLAKE2b-256 | f7a726b74e6e88a41def86811d5bb002cd1f15b85dc3da97fa906fd455ab59e8 |
Close
Hashes for pylibjpeg_openjpeg-1.3.1-cp38-cp38-macosx_10_9_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | fd2d4f5dedc50e4962e34404b039875d16263cbc60927610d7b561058249d708 |
|
MD5 | 9d2035ff8cc7d381267e8e4ae43e54f8 |
|
BLAKE2b-256 | 53ca50c16f769045dd150290c3f8708cd781cdd1b032ea137fb3697e4f3783dd |
Close
Hashes for pylibjpeg_openjpeg-1.3.1-cp37-cp37m-win_amd64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 4430e47281c512af48e1cb810274354f066499df14291ec182695ddb0de05499 |
|
MD5 | d10e92ea90de189d2540243821946afc |
|
BLAKE2b-256 | a70f6b1dd901e02cb913c390707ab6f634c35e1193caf54169c1a2b3a926a395 |
Close
Hashes for pylibjpeg_openjpeg-1.3.1-cp37-cp37m-win32.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 00df3c79c26ae949a54acc7ff2edbd9f7d010eb13441e01b9d778a65b9714275 |
|
MD5 | eeccdbc728fcb8794ec07e0579591dcc |
|
BLAKE2b-256 | 5b7634433b580e746765045e8e0a8e8a53668c03119d672288e2fb2335cc5827 |
Close
Hashes for pylibjpeg_openjpeg-1.3.1-cp37-cp37m-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | acf9f2a27edc9493aa2aaad0b9c2be3f29b38666f21c603a3339a262362c520d |
|
MD5 | e6971d0f2ef2eef72c5f23cba7399e0f |
|
BLAKE2b-256 | 0d0fb2a8dcd3c61780d58e3f4aa1094fb65fddb81f32928af3c7479782a570cd |
Close
Hashes for pylibjpeg_openjpeg-1.3.1-cp37-cp37m-manylinux_2_17_aarch64.manylinux2014_aarch64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | fc61435013e37c3b1e2980723ea43f5b98918de6237c9e9c64deb374689082bc |
|
MD5 | a698a3798aa05c2de8e61a11ddc25fc3 |
|
BLAKE2b-256 | a2bae225df8f02d7a97bf493bcefb73d0d0ea2a7562288797536756c2bfec85e |
Close
Hashes for pylibjpeg_openjpeg-1.3.1-cp37-cp37m-manylinux_2_5_x86_64.manylinux1_x86_64.manylinux_2_12_x86_64.manylinux2010_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 013ab097d1edb0c9efdfe26c573bf70472a1339f0b36acb080108ab6bb73e6f7 |
|
MD5 | 4462410e6925e5fae9409053c34c050e |
|
BLAKE2b-256 | 6c0812ab51831de41bca2a4325321ce990251819d6a4e1fff583820924722003 |
Close
Hashes for pylibjpeg_openjpeg-1.3.1-cp37-cp37m-macosx_10_9_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 7732435e0f44279a380f0432719780c271cf0f0ccbce78a23dbfc643fee7a176 |
|
MD5 | 9384e3e82955e9d63c9053bd8214df59 |
|
BLAKE2b-256 | 03ac01bbd9876a1d5886fadec0a9fe8b6d7a3eaa3316dbcf28fe9ee9538b00c2 |