Skip to main content

Runs a convolution on an image with random kernels.

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.4.tar.gz (3.7 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.4-py3-none-any.whl (4.4 kB view details)

Uploaded Python 3

File details

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

File metadata

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

Hashes for rand_convolve-1.0.4.tar.gz
Algorithm Hash digest
SHA256 94dbf9456ad1c1986edef6933136123a4a57fc5b33a329e0b201d94f2f9e361e
MD5 94deb5204c550bcb4f8bd4ed13388aeb
BLAKE2b-256 f39f7f32f7658a6e333ee89f39fd771fa09a81980cb9235265211787acb4c06f

See more details on using hashes here.

File details

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

File metadata

  • Download URL: rand_convolve-1.0.4-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.4-py3-none-any.whl
Algorithm Hash digest
SHA256 ee46a5366465b266aa9f44dd9f329e8dd6099b52a54c48b50539e6b4b544fc29
MD5 c436ae13335c0a21c31c617fb4269ceb
BLAKE2b-256 f42e18914d55c085ce1e8e81ab0df8590da86d35a9be35110b71204b20124a98

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