Runs a convolution on an image with random kernels.
Reason this release was yanked:
Error importing.
Project description
This package provides the ability to run a random convolution on a given image.
Main functions:
rand_convolve:-
Returns a randomly convoluted image given an image path as input.
-
Arguments:
- image: The image path for the convolution.
- ksize: The size of the 2 dimensional kernel. The shape of the kernel is: (size, size). (default: 3, must be an odd number.)
- knum: The number of random kernels to generate and use. (default: 20)
- int n>0: The number of kernels.
- -1: Use a new kernel for each pixel.
- ksign: The signs to be used for the kernels. (default: 0)
- 0: All kernel values are positive.
- 1: Kernel signs are randomly mixed between negative and positive.
- 2: All kernel values are negative.
-
Returns:
- A PIL.Image object of the convoluted image.
-
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
rand_convolve-1.0.3.tar.gz
(3.7 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 rand_convolve-1.0.3.tar.gz.
File metadata
- Download URL: rand_convolve-1.0.3.tar.gz
- Upload date:
- Size: 3.7 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.1 CPython/3.10.4
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
419e8a942589ee93fc266f408813c20bf9d5ae2851233b7bcf13d0b1134e46c8
|
|
| MD5 |
982cb9796f6588c9bd04691f37cc1108
|
|
| BLAKE2b-256 |
0e33ed5f571ba39061c5e4105d36c0297dcf50908fb8bc1c7948691363d42b70
|
File details
Details for the file rand_convolve-1.0.3-py3-none-any.whl.
File metadata
- Download URL: rand_convolve-1.0.3-py3-none-any.whl
- Upload date:
- Size: 4.4 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.1 CPython/3.10.4
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
0d9a07be14ae6011884ae0a63d9f09273f369dde75473a1d5f0ed4e916863e93
|
|
| MD5 |
24050280ae30ab13bdb431420ef42863
|
|
| BLAKE2b-256 |
3fa8121caa9357fe6751e697a49e3f106a4b3af2e3fdce30f5f5f8f106d03a3c
|