Skip to content

fairer2000/Image-Analysis

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

15 Commits
 
 
 
 
 
 

Repository files navigation

Image Analyzer

This project is an image analysis tool that allows the application and removal of image noise using image processing algorithms.

Previous requirements

Make sure you have installed

  • OpenCV
  • Numpy
  • Tkinter
  • PyQT5

To use the program, just execute the following command in cmd.

python .\app.py

Use of the program

When executing the previously shown command, the program menu should be displayed.

menu

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.

Program functions

Application of the kernel

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.

Select Kernel

For the following examples, a 5x5 kernel will be used.

Select image

For the example, we must first select an image. Click on the “Seleccionar imagen” button. A window for image selection will be displayed.

Image selection window

Select the image.

Select image

The selected image will be displayed in the menu.

Selected image in menu

Once the image is selected and the kernel is applied, you can proceed to apply the filters.

Maximum filter

Click on the “Filtro max” button to apply the statistical filter on the image.

Max filter applied

Minimum filter

Click on the “Filtro min” button to apply the statistical filter on the image.

Min filter applied

Midpoint filter

Click on the “Filtro punto medio” button to apply the statistical filter on the image.

Median filter

Alpha-Trimmed Mean Filter

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.

Select d

Now we can apply the filter by clicking on the "Filtro Medio de Corte Alfa" button.

Alpha-Trimmed Mean Filter

Uniform Noise

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.

Select Uniform Noise

With the variables declared, we apply the noise by clicking on the “Ruido uniforme” button.

Uniform Noise

Exponential Noise

To apply the Exponential Noise we must declare the variables a. The variable must be in a range from 0 to 255.

Select Exponential Noise

Now we can apply the noise by clicking on the “Ruido Exponencial” button.

Exponential Noise

Save image

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.

Save image

As we can see, the image is saved in the previously selected path.

Image Saved

License

This project is licensed under the MIT License. See the LICENSE file for more details.

About

Final project of the subject

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages