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.4.0.tar.gz (1.1 MB view details)

Uploaded Source

Built Distribution

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

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

Uploaded Python 3

File details

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

File metadata

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

File hashes

Hashes for pyimkernel-0.4.0.tar.gz
Algorithm Hash digest
SHA256 1cfb7b40441393f57c79eed1069e6915d58ca56e3cd1372fb4adb0ca067423ab
MD5 f15ac402f54fdbba3a92ae1eccde9b7c
BLAKE2b-256 bc98fed452e5aeecd691d8086f2d6b97d2691d3602abd8db56de36f6726a9c09

See more details on using hashes here.

File details

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

File metadata

  • Download URL: pyimkernel-0.4.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.4.0-py3-none-any.whl
Algorithm Hash digest
SHA256 464aa87d9a9c9111ba833a22481f5c3dbbec07e2945e1dc02b15b90d06285ec5
MD5 ee9fa818dfca538a44be346d586d2444
BLAKE2b-256 978e69942a4d71bd8c1855074baee9e100a548dc74353cb95beaf700a19ccc32

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