PixelMatrix Core
Lightweight pixel and matrix operations for image processing in Python.
Installation
pip install pixelmatrix-core
Features
- Load and manipulate images as NumPy matrices
- Common image transforms (rotate, flip, resize, crop)
- Image analysis (histogram, contrast, entropy)
- Cross-platform system utilities
Quick Start
from imageanalysis import ImageMatrix, rotate, histogram
# Load an image
img = ImageMatrix.from_file("photo.jpg")
# Apply transformations
rotated = rotate(img.data, 45)
# Analyze
hist = histogram(img.data)
print(f"Mean intensity: {img.mean()}")
API Reference
ImageMatrix
img = ImageMatrix.from_file("image.png")
img = ImageMatrix.from_array(numpy_array)
# Properties
img.shape # Image dimensions
img.channels # Number of color channels
# Methods
img.to_grayscale()
img.normalize()
img.save("output.png")
Transforms
from imageanalysis import rotate, flip_horizontal, flip_vertical, resize, crop
rotated = rotate(matrix, angle=90)
flipped_h = flip_horizontal(matrix)
flipped_v = flip_vertical(matrix)
resized = resize(matrix, width=800, height=600)
cropped = crop(matrix, x=10, y=10, width=100, height=100)
Analysis
from imageanalysis import histogram, mean_intensity, contrast, entropy
hist = histogram(matrix)
mean = mean_intensity(matrix)
cont = contrast(matrix)
ent = entropy(matrix)
License
MIT License
Metadata
Release files for pixelmatrix-core 0.1.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| pixelmatrix_core-0.1.0.tar.gz | 14.6 kB | Without provenance | Details for pixelmatrix_core-0.1.0.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| pixelmatrix_core-0.1.0-py3-none-any.whl | Python 3 | none | any | Details for pixelmatrix_core-0.1.0-py3-none-any.whl |
Total release size: 31.7 kB
Release files / pixelmatrix_core-0.1.0.tar.gz
| Download URL | pixelmatrix_core-0.1.0.tar.gz |
|---|---|
| Size | 14.6 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
c175a95f8b0a00b47c670acf0a5c6aa906477b5a6fb3457e9fe03d42176b0e32
|
|
BLAKE2b-256 checksum How to use checksums |
1474d79740d700fbbfc193cd9dc100433563fc5c3241d17d3b277d1f5cec097a
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.13.13
|
Release files / pixelmatrix_core-0.1.0-py3-none-any.whl
| Download URL | pixelmatrix_core-0.1.0-py3-none-any.whl |
|---|---|
| Size | 17.1 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
163f388ec95bf4f80fa5f5ca7be9f938b690eaf651e3d1a48eafe176d40b3eae
|
|
BLAKE2b-256 checksum How to use checksums |
2553e4978dbb7052ae821aaf89e879febeae1f455872084ef19fccea0668867d
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.13.13
|
Security for pixelmatrix-core 0.1.0
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.