Skip to content

Simple 3x3 image kernel implemented in python using Numpy, opencv, and scikit image libraries.

License

Notifications You must be signed in to change notification settings

Adilius/image-kernel-python

Repository files navigation

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

About

Simple 3x3 image kernel implemented in python using Numpy, opencv, and scikit image libraries.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages