Skip to main content

Apply image kernel(s) on a image

Project description

Pyimkernel

With this package, You can apply various image kernels such as Blur, Sobel, Scharr and so forth (The list of image kernels is mentioned below) on a gray scale or color image, and show images using the class ApplyKernels in this package to reach a wide range of effects and enhancements in digital images.

Installation

pip install pyimkernel

Usage

from pyimkernel import ApplyKernels
import mnist

# Load data
X_train, X_test, y_train, y_test = mnist.train_images(), mnist.test_images(), mnist.train_labels(), mnist.test_labels()

# Create an instance
imkernel = ApplyKernels(random_seed=0)

# Show image 9 
imkernel.imshow(X_train[19], cmap=plt.cm.gray)

# Apply blur kernel on a gray scale image 9
filtered_image = imkernel.apply_filter_on_gray_img(X_train[19], kernel_name='blur')

# Show the filtered image
imkernel.imshow(image=filtered_image, cmap=plt.cm.gray)

Output

Before Applying the blur kernel on a gray scale image 9





After Applying the blur kernel on a gray scale image 9



Image kernels

Image kernels are listed below:

  • blur
  • bottom sobel
  • emboss
  • identity
  • left sobel
  • outline
  • right sobel
  • sharpen
  • top sobel
  • horizontal edge
  • vertical edge
  • box blur
  • laplacian
  • prewitt horizontal edge
  • prewitt vertical edge
  • high-pass filter
  • unsharp masking
  • dilate
  • soften
  • scharr horizontal edge
  • scharr vertical edge

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

pyimkernel-0.3.0.tar.gz (5.7 kB view details)

Uploaded Source

Built Distribution

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

pyimkernel-0.3.0-py3-none-any.whl (6.0 kB view details)

Uploaded Python 3

File details

Details for the file pyimkernel-0.3.0.tar.gz.

File metadata

  • Download URL: pyimkernel-0.3.0.tar.gz
  • Upload date:
  • Size: 5.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.10.9

File hashes

Hashes for pyimkernel-0.3.0.tar.gz
Algorithm Hash digest
SHA256 deee80a4cc5643ce1cb054842d10c49cc969a81fa56766dfdca887f1840fe05e
MD5 58c313fe0005a258a55721a2e492d6b9
BLAKE2b-256 7cb4afff87f1a2988c4a3bd6afc600da93ade748880270a58ee446266959bc05

See more details on using hashes here.

File details

Details for the file pyimkernel-0.3.0-py3-none-any.whl.

File metadata

  • Download URL: pyimkernel-0.3.0-py3-none-any.whl
  • Upload date:
  • Size: 6.0 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.10.9

File hashes

Hashes for pyimkernel-0.3.0-py3-none-any.whl
Algorithm Hash digest
SHA256 121fbb560aed216823539a4a10cbae8261b64a56c21010ab53077f34b43677bb
MD5 c520de188f0106b95e30ebf3fb35e1e1
BLAKE2b-256 a3446f3532cf73fc4111e98248f4fd1c3c4180330c934a7d44a0988e57543ab6

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