Skip to main content

Runs a multi-random-kernel convolution on an image.

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


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.5.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.5-py3-none-any.whl (4.3 kB view details)

Uploaded Python 3

File details

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

File metadata

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

File hashes

Hashes for rand_convolve-1.0.5.tar.gz
Algorithm Hash digest
SHA256 c1aeabdce747000dd8cc8a07bc776e8cdddc6165e4855e5f8786b354d5f8c503
MD5 0056ef40b90eae17ccbb90ef1f454e49
BLAKE2b-256 6ae4a1bdd1dab29d3b14bfae972f1e8cac1f28c996e909df311a094de3f047f8

See more details on using hashes here.

File details

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

File metadata

  • Download URL: rand_convolve-1.0.5-py3-none-any.whl
  • Upload date:
  • Size: 4.3 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.10.4

File hashes

Hashes for rand_convolve-1.0.5-py3-none-any.whl
Algorithm Hash digest
SHA256 28abf68f109621bd35ecf481a3407af8912967ca10fb6310bfd47766b36aa0b0
MD5 ab9ad0528e3d533ee82ead225e90ff57
BLAKE2b-256 472e249c7999ab61e1eb1225a1193f8c94a7464cd521adee98f1c2a93ac31520

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