A program for bidirectional conversion between grayscale image sequences and numpy ndarrays.
Project description
image2numpy
A program for bidirectional conversion between grayscale image sequences and numpy ndarrays.
Installation
pip install image2numpy
Usage
import image2numpy
np_arr = image2numpy.load_png_to_3d_array("<folder_path>") # Load all images in the folder into a 3D numpy array in lexicographical order
sub_arr = image2numpy.extract_valid_cube(np_arr) # Randomly extract a valid cubic subarray
image2numpy.save_3d_array_as_gray_images(sub_arr, "<target_folder>") # Save the 3D numpy array back to a sequence of grayscale images
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
image2numpy-0.0.0.tar.gz
(5.2 kB
view details)
Built Distribution
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 image2numpy-0.0.0.tar.gz.
File metadata
- Download URL: image2numpy-0.0.0.tar.gz
- Upload date:
- Size: 5.2 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.0.1 CPython/3.12.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
063df431e5a6334415e3af2a7ccaefa9569176ed25ddbce62e1611b43de83dd6
|
|
| MD5 |
94747c917060183f5aff110f4f72c45c
|
|
| BLAKE2b-256 |
7b150bfabccee47e5ac13fa37d4e85c64b98760d9b0f522569d4041ab36d6356
|
File details
Details for the file image2numpy-0.0.0-py3-none-any.whl.
File metadata
- Download URL: image2numpy-0.0.0-py3-none-any.whl
- Upload date:
- Size: 6.9 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.0.1 CPython/3.12.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
24437ddde0fee4cc783fd0ee632ca6964578ded456c9e7c7ce1c9bcce34d0f7a
|
|
| MD5 |
d4edf692b27ea07675c49cfbc2e598ad
|
|
| BLAKE2b-256 |
8a7e986ec2551fa4bdb849b1bd02b8fe88c1e0854515e078625016f86c6d298c
|