Skip to content

Latest commit

 

History

History
44 lines (29 loc) · 944 Bytes

README.md

File metadata and controls

44 lines (29 loc) · 944 Bytes

Python version

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:

Lenna

Scaled image and removed color channels:

Lenna scaled

Applying sharpen kernel:

kernel_sharpen = [
    [0, -1, 0],
    [-1, 5, -1],
    [0, -1, 0]
]

Lenna sharp

Applying blur kernel:

kernel_blur = [
    [0.05, 0.1, 0.05],
    [0.1, 0.4, 0.1],
    [0.05, 0.1, 0.05]
]

Lenna blur