Skip to content

AkiiSinghal/Image-Filters

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Image-Filters

It is a basic Image Processing project. Demonstrating the various filters like dull, sharpen, emboss, blur and rotate.

It Implements a simple Image Processing algorithm :

for each image row in input image:
      for each pixel in image row:

            set accumulator to zero

            for each kernel row in kernel:
                        for each element in kernel row:

                                    if element position corresponding* to pixel position then
                                                multiply element value corresponding* to pixel value
                                                add result to accumulator
                                    endif

            set output image pixel to accumulator

Implementation

  1. First the code has to be compiled using gcc or g++ compiler.
  2. Then run the code and write the image name to be filtered.
  3. Then it will creates the filtered image itself.

Addition Informations

  • The Repo provides you 2 images of lena :- colored and blank & white.
  • There are some sample outputs in Sample_Outputs folder.
  • There are also some additional bmp images for experiments in More_Images folder.
  • Note : These program only work for bmp formate images.(You can modify the code for more formate)