This project is an image analysis tool that allows the application and removal of image noise using image processing algorithms.
Make sure you have installed
- OpenCV
- Numpy
- Tkinter
- PyQT5
To use the program, just execute the following command in cmd.
python .\app.pyWhen executing the previously shown command, the program menu should be displayed.
Inside we will have the options to apply certain statistical filters and noises, the size of the kernel and the selection of the variables that are required in some filters and noises. It also allows the selection of the image to be modified, as well as the saving of the modified image.
To apply the kernel, the value must be written in the corresponding box. It should be clarified that the value to be assigned must be thought about, since the larger the kernel, the longer it will take to obtain a result in the application of the filters.
For the following examples, a 5x5 kernel will be used.
For the example, we must first select an image. Click on the “Seleccionar imagen” button. A window for image selection will be displayed.
Select the image.
The selected image will be displayed in the menu.
Once the image is selected and the kernel is applied, you can proceed to apply the filters.
Click on the “Filtro max” button to apply the statistical filter on the image.
Click on the “Filtro min” button to apply the statistical filter on the image.
Click on the “Filtro punto medio” button to apply the statistical filter on the image.
In this filter we must declare a value for d, as long as the value is not greater than the kernel dimension (mxn), we declare a value of 10.
Now we can apply the filter by clicking on the "Filtro Medio de Corte Alfa" button.
To apply the Uniform Noise we must declare the variables a and b. The variables must be in a range from 0 to 255, and b must be greater than the variable a.
With the variables declared, we apply the noise by clicking on the “Ruido uniforme” button.
To apply the Exponential Noise we must declare the variables a. The variable must be in a range from 0 to 255.
Now we can apply the noise by clicking on the “Ruido Exponencial” button.
If you want to save the result, click on the “Save image” button. A window for saving the image will be displayed, where you can change the image name and extension if necessary.
As we can see, the image is saved in the previously selected path.
This project is licensed under the MIT License. See the LICENSE file for more details.