Skip to main content

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


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.2.tar.gz (3.8 kB view details)

Uploaded Source

Built Distribution

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

rand_convolve-1.0.2-py3-none-any.whl (4.4 kB view details)

Uploaded Python 3

File details

Details for the file rand_convolve-1.0.2.tar.gz.

File metadata

  • Download URL: rand_convolve-1.0.2.tar.gz
  • Upload date:
  • Size: 3.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.1 CPython/3.10.4

File hashes

Hashes for rand_convolve-1.0.2.tar.gz
Algorithm Hash digest
SHA256 daf978bc518471ebe13c7156accfefed6f1eb1ea3c98e4c7da1c48b57a61f86e
MD5 5261a0cc57717c3ffff54380c9549130
BLAKE2b-256 29cfb6f7a5608834a31aecf0fb45b6cce61d51c77121bf28e8da9bf1458affc1

See more details on using hashes here.

File details

Details for the file rand_convolve-1.0.2-py3-none-any.whl.

File metadata

  • Download URL: rand_convolve-1.0.2-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

Hashes for rand_convolve-1.0.2-py3-none-any.whl
Algorithm Hash digest
SHA256 1122394b1e2a0f947891c3d6c83076013163d020f879e51be4fa5802cc5619ab
MD5 7061c52961037fc563385df17d1c3f31
BLAKE2b-256 ecd9eef266c1d32c1beef7ed0f77b687391bc018c54d288d2c83edc2e3ab5c5e

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