Skip to content

pedroandreou/ImageCompDecomp

Repository files navigation

🖼️ Image Compression & Decompression

Image Compression GUI

📰 Description

A MATLAB-based image compression and decompression tool implementing two powerful algorithms:

  • DCT (Discrete Cosine Transform): Fourier-Transform based algorithm for lossy compression
  • Huffman Encoding: Provides lossless data compression with adaptable input format support

The GUI allows an image to be loaded, displayed, compressed, decompressed, and saved according to user interaction.

🏗️ Implementation Details

File Structure

  • Dashboard.m: Main script containing GUI code
  • Dashboard.fig: GUI display file
  • comp.m: Compression implementation
  • decomp.m: Decompression implementation

Error Handling

The application includes comprehensive error handling:

  • Enforced operation sequence (Load → Compress/Decompress → Save)
  • Warning messages for incorrect operation order
  • Graceful handling of cancelled operations
  • User-friendly error messages
Error Handling Example

🛠 Initialization & Setup

# Clone the repository
git clone https://github.com/pedroandreou/ImageCompDecomp.git

🚀 Building and Running

Two options to run the application:

  1. Run Dashboard.m file in MATLAB IDE
  2. Double-click Dashboard.fig to display the GUI directly

👤 Author

LinkedIn

Releases

No releases published

Packages

No packages published

Languages