https://github.com/adilius/image-kernel-python
Simple 3x3 image kernel implemented in python using Numpy, opencv, and scikit image libraries.
https://github.com/adilius/image-kernel-python
image-kernels python
Last synced: 3 months ago
JSON representation
Simple 3x3 image kernel implemented in python using Numpy, opencv, and scikit image libraries.
- Host: GitHub
- URL: https://github.com/adilius/image-kernel-python
- Owner: Adilius
- License: mit
- Created: 2021-11-23T18:41:58.000Z (over 3 years ago)
- Default Branch: main
- Last Pushed: 2021-11-23T18:50:21.000Z (over 3 years ago)
- Last Synced: 2025-01-11T06:45:23.190Z (4 months ago)
- Topics: image-kernels, python
- Language: Python
- Homepage:
- Size: 971 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README

# Image Kernel in Python
Simple 3x3 image kernel implemented in python using Numpy, opencv, and scikit image libraries.# Setup & run
`pip install -r requirements.txt``python image_kernels.py`
# Images
Original image:

Scaled image and removed color channels:

Applying sharpen kernel:
```
kernel_sharpen = [
[0, -1, 0],
[-1, 5, -1],
[0, -1, 0]
]
```
Applying blur kernel:
```
kernel_blur = [
[0.05, 0.1, 0.05],
[0.1, 0.4, 0.1],
[0.05, 0.1, 0.05]
]
```