Skip to content

CodeKnight314/FFT-Based-Image-Compression

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

12 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

FFT-Based Image Compression

This educational repository provides a Python implementation of image compression using the Fast Fourier Transform (FFT). The code utilizes the Discrete Fourier Transform (DFT) to transform image data into the frequency domain, where less significant frequencies can be discarded to achieve compression.

Results:

Your image alt text
PSNR: 129.52 with 12% storage reduction

Usage

Prerequisites

  • Python 3.6 or higher
  • NumPy
  • Pillow (PIL Fork)

Installation

  1. Clone the repository:

    git clone https://github.com/CodeKnight314/FFT-Based-Image-Compression.git
  2. Install the required packages:

    pip install -r FFT-Based-Image-Compression/requirement.txt

Running the Code

python main.py --img_dir <path_to_image_directory> --threshold <threshold_value> --output_path <output_directory>

About

Fast Fourier Transformation based image compression

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages