OptiKlear
OptiKlear is a Python library for mathematical operations and digital image processing.
It provides reusable functions for vector operations, matrix-vector transformations, image transformations, noise generation and spatial filtering.
Features
Current functionality includes:
- Convolution: Spatial convolution for image filtering.
- Nonlinear filtering: Median filtering.
- Noise generation: Uniform, Gaussian and salt-and-pepper noise.
- Geometric transformations: Scaling, rotation, shearing, flipping and translation.
- Matrix-vector operations: Matrix multiplication and 2D vector transformations.
- Vector operations: Vector addition, subtraction, magnitude, distance, dot product, cross product and rotation.
Installation
Install OptiKlear using pip:
pip install optiklear
Note: OptiKlear is currently under development. The package will be available on PyPI following its initial release.
Requirements
- Python 3.10 or later
- NumPy
Package Structure
| Module | Description |
|---|---|
conv |
Convolution operations |
non_linear |
Nonlinear image filtering |
noise_gen |
Image noise generation |
mat_trans |
2D image transformations |
mat_vec |
Matrix-vector operations and transformations |
vec_operations |
Mathematical vector operations |
Usage
Import individual functions from their respective modules.
For example, to use vector operations:
from optiklear.vec_operations import vec_add2D, mag_v2D
u = [3, 4]
v = [2, 5]
result = vec_add2D(u, v)
magnitude = mag_v2D(u)
print(result)
print(magnitude)
To use image noise generation:
from optiklear.noise_gen import gauss_noise
noisy_image = gauss_noise(image, 9)
The image-processing functions currently use NumPy arrays and/or Python lists according to their individual implementations. Check each function's input requirements before use.
Development Roadmap
Planned additions for future versions include:
- Point operations
- Edge detection
Metadata
Release files for optiklear 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 |
|---|---|---|---|---|
| optiklear-0.1.0.tar.gz | 5.1 kB | Without provenance | Details for optiklear-0.1.0.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| optiklear-0.1.0-py3-none-any.whl | Python 3 | none | any | Details for optiklear-0.1.0-py3-none-any.whl |
Total release size: 12.0 kB
Release files / optiklear-0.1.0.tar.gz
| Download URL | optiklear-0.1.0.tar.gz |
|---|---|
| Size | 5.1 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
ba161c72aabd8ffd26384f5b9dcfcb192628fe07bccc0ae668b10013fce884d8
|
|
BLAKE2b-256 checksum How to use checksums |
731ca3c33e341d4f8c4940a23a26699989c5833562d275202c1ed7558aed2212
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/7.0.0 CPython/3.10.16
|
Release files / optiklear-0.1.0-py3-none-any.whl
| Download URL | optiklear-0.1.0-py3-none-any.whl |
|---|---|
| Size | 6.9 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
d7dd944078caec9655512ed5570bd6099d8e5203d3f39839d6da55c313d3482a
|
|
BLAKE2b-256 checksum How to use checksums |
6cdf45dbd75e99a93925e2b39bf30fef01104986fb5bf9303d6f6c15767bbad0
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/7.0.0 CPython/3.10.16
|
Security for optiklear 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.