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.
Dashboard.m
: Main script containing GUI codeDashboard.fig
: GUI display filecomp.m
: Compression implementationdecomp.m
: Decompression implementation
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
# Clone the repository
git clone https://github.com/pedroandreou/ImageCompDecomp.git
Two options to run the application:
- Run
Dashboard.m
file in MATLAB IDE - Double-click
Dashboard.fig
to display the GUI directly