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
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file pyimkernel-0.2.0.tar.gz.
File metadata
- Download URL: pyimkernel-0.2.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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
7df37e6afd1900c86938c9aef0ea1aa902d3f38b170333c0ff48f7e0618c8a95
|
|
| MD5 |
575c57afeb65648226e254ca8c30a04a
|
|
| BLAKE2b-256 |
b952004ff64ff2348b8a6c53843df2a1b9be26074a5a78e0716dbfc89557d91c
|
File details
Details for the file pyimkernel-0.2.0-py3-none-any.whl.
File metadata
- Download URL: pyimkernel-0.2.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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
35a071cf9d3cec6e7a62b79955411880e16c5179a847838d64e2d019eae273bd
|
|
| MD5 |
8aac1a1ca024721420bb03c233e4cea1
|
|
| BLAKE2b-256 |
a1edaf612fa46b61af7b9bf0a8e9249ac4a9a36a9dbf8f10a888d6bef5e84320
|