ct_image_to_pic_list
convert a 3d CT/MRI image (numpy) into pillow image list.
Installation
pip install ct_image_to_pic_list
Usage
reading 3d CT image.
import numpy as np
from ct_image_to_pic_list import convert_ct_3darray_to_grey_image_list
# construct you 3d CT image (HU value)
arr3d = np.array([ ... ])
# get a list of PIL.Image.Image
img_list = convert_ct_3darray_to_grey_image_list(arr3d)
# save it if you want
for index, img in enumerate(img_list):
img.save(f"{index:05d}.png")
reading 3d MRI image.
import numpy as np
from ct_image_to_pic_list import convert_mri_3darray_to_grey_image_list
# construct you 3d MRI image (HU value)
arr3d = np.array([ ... ])
# get a list of PIL.Image.Image
img_list = convert_mri_3darray_to_grey_image_list(arr3d)
# save it if you want
for index, img in enumerate(img_list):
img.save(f"{index:05d}.png")
Metadata
Release files for ct_image_to_pic_list 0.0.5
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| ct_image_to_pic_list-0.0.5.tar.gz | 2.6 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| ct_image_to_pic_list-0.0.5-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 6.1 kB
Release files / ct_image_to_pic_list-0.0.5.tar.gz
| Download URL | ct_image_to_pic_list-0.0.5.tar.gz |
|---|---|
| Size | 2.6 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
b11f0969cec56237517a9c865e03441fb4a13f1a53b8f15f6893bae6295462e1
|
|
BLAKE2b-256 checksum How to use checksums |
28fac915509b3ec6a6a1e403fb749930fa2a2a5397fa285f4840c8b1974033e3
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
poetry/2.1.3 CPython/3.10.18 Linux/6.16.10-aosc-main
|
Release files / ct_image_to_pic_list-0.0.5-py3-none-any.whl
| Download URL | ct_image_to_pic_list-0.0.5-py3-none-any.whl |
|---|---|
| Size | 3.5 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
6f47ad7ecafc994b2a3ee2d07ec564398221f1a42e1e965e1a4622d73ab358aa
|
|
BLAKE2b-256 checksum How to use checksums |
d7dcb9feecd2062d03223fdb4010bb919657baf898d71b4c1e4a20aff3a623cf
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
poetry/2.1.3 CPython/3.10.18 Linux/6.16.10-aosc-main
|