Skip to content

aibobrov/ConvolutionFilter

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Convolution Filter

In image processing, convolution matrix, or mask is a small matrix. It is used for blurring, sharpening, embossing, edge detection, and more.

Original image

original

Identity filter

Kernel:

0 0 0
0 1 0
0 0 0

identity

Edge detection filter

Kernel:

0 1 0
1 -4 1
0 1 0

edge-detection

Sharpen filter

Kernel:

0 0 0 0 0
0 0 5 0 0
0 -1 5 -1 0
0 0 1 0 0
0 0 0 0 0

sharpened

Box blur filter

Normalization rate = 16

Kernel:

1 2 1
2 4 2
1 2 1

box-blur

Gaussian blur filter

Normalization rate = 256

Kernel:

1 4 6 4 1
4 16 24 16 4
6 24 36 24 6
4 16 24 16 4
1 4 6 4 1

gaussian-blur

Motion blur filter

Normalization rate = 9

Kernel:

1 0 0 0 0 0 0 0 0
0 1 0 0 0 0 0 0 0
0 0 1 0 0 0 0 0 0
0 0 0 1 0 0 0 0 0
0 0 0 0 1 0 0 0 0
0 0 0 0 0 1 0 0 0
0 0 0 0 0 0 1 0 0
0 0 0 0 0 0 0 1 0
0 0 0 0 0 0 0 0 1

motion-blur

Emboss(Relief) filter

Kernel:

-2 -1 0
-1 1 1
0 1 2

embossed

For more information visit this

Releases

No releases published

Packages

No packages published

Languages