Skip to main content

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


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)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

image2numpy-0.0.0-py3-none-any.whl (6.9 kB view details)

Uploaded Python 3

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

Hashes for image2numpy-0.0.0.tar.gz
Algorithm Hash digest
SHA256 063df431e5a6334415e3af2a7ccaefa9569176ed25ddbce62e1611b43de83dd6
MD5 94747c917060183f5aff110f4f72c45c
BLAKE2b-256 7b150bfabccee47e5ac13fa37d4e85c64b98760d9b0f522569d4041ab36d6356

See more details on using hashes here.

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

Hashes for image2numpy-0.0.0-py3-none-any.whl
Algorithm Hash digest
SHA256 24437ddde0fee4cc783fd0ee632ca6964578ded456c9e7c7ce1c9bcce34d0f7a
MD5 d4edf692b27ea07675c49cfbc2e598ad
BLAKE2b-256 8a7e986ec2551fa4bdb849b1bd02b8fe88c1e0854515e078625016f86c6d298c

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page