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.
-
Import:
import rand-convolve
Example of usage:
import rand-convolve
rand-convolve.rand_convolve(IMG_PATH,ksize=5).save()
#saves the image as a file
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
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.1.tar.gz.
File metadata
- Download URL: rand_convolve-1.0.1.tar.gz
- Upload date:
- Size: 3.0 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.1 CPython/3.10.4
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
3533376b3b099085fc4263f801ba220872fc327e4ce29588630cb79287c0f6e3
|
|
| MD5 |
382e00c0267d0882e686631d3f30caf5
|
|
| BLAKE2b-256 |
0818224a2e804eea9a6fec3d2d7ead78b93d394e06a0867a7b2db21d78d32ce2
|
File details
Details for the file rand_convolve-1.0.1-py3-none-any.whl.
File metadata
- Download URL: rand_convolve-1.0.1-py3-none-any.whl
- Upload date:
- Size: 3.6 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 |
42c114f9e99ff2565a1d90c5f9e9dadba367e2addda2dab110e90386260fcdce
|
|
| MD5 |
d6958f112d5ef49a4dc5fdccebaf011a
|
|
| BLAKE2b-256 |
cbf7373279336703494f041cefb32f96cebba53451952acb10a1d51af856d63d
|