Skip to content

enrique-lozano/Image-filters

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

24 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Image-filters 🏙️🏙️

Script to apply some filters to BMP images. Written entirely in c ++.

Run it🚀

Just clone the project using git clone in the directory where you want to use the project. Once the project is cloned, the most important files you will have will be the "makefile" file and the code itself. In addition, certain sample images are also provided in an additional folder.

To run it you must have an input directory (the one we give as an example is valid) and an output directory (it can be the same as the input directory). Once this is cleared, simply type make in the terminal, in the root directory of the project. If there are no errors, continue entering the following command:

./img-par filter input_directory output_directory

If no errors appear, you should see the images from the input directory in the output directory, but with the specified filter applied.

Warning: This project is developed and thought to be compiled in a Linux environment. You must have the necessary environment to compile c++ files (using the g++ compiler). Other libraries may need installation, especially in case we want to work on windows

Posible filters📷

At the moment, only one of the following filters can be used:

  • Copy: The equivalent of not using any filter. The files will simply be copied from the input directory to the output directory. For example, when copying the following image of the tiger, we will obtain:

Tiger image

  • Gauss: In image processing, a Gaussian blur (also known as Gaussian smoothing) is the result of blurring an image by a Gaussian function. See wiki

Tiger image

  • Sobel: The Sobel operator, sometimes called the Sobel–Feldman operator or Sobel filter, is used in image processing and computer vision, particularly within edge detection algorithms where it creates an image emphasising edges. See wiki

Tiger image

To use one of these filters, just replace the word "filter" of the command from the previous section with the word of the corresponding filter.

Want to collaborate?🙋🏻

Feel free to try adding new filters, or improving and optimizing existing code. The sobel filter works a bit bad on certain edges of some images.

About

Script to apply some filters to BMP images.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published