Skip to content

Ishaan2510/Gaussian_Filter

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Getting Started

  1. Clone the Repository
git clone https://github.com/yourusername/gaussian-blur.git
cd gaussian-blur
  1. Create a Virtual Environment
python -m venv venv
  1. Activate the Virtual Environment
  • Windows:
    venv\Scripts\activate
  • Mac/Linux:
    source venv/bin/activate
  1. Install Required Libraries
pip install numpy matplotlib opencv-python

Usage

  1. Generate a Noisy Image

Run the following script to create a synthetic noisy grayscale image:

python code/generate_noise.py

This will save a noisy image in the images/ folder.

  1. Apply Gaussian Blur

Run the Gaussian blur script to process the noisy image with different sigma values:

python code/gaussian_blur.py

This will generate blurred images (with various sigma values) in the images/ folder.

  1. Calculate PSNR

To quantitatively compare the blurred images with the original, run:

python code/psnr_calculation.py

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages