How novato-intlgnt/imagesteganography works
Project Type and Purpose
• This is a standalone desktop application with a GUI front-end (Qt), built in C++ using an MVC pattern.
• Purpose: Securely embed (and extract) image data into audio files by combining Cellular Automata encryption, Discrete Wavelet Transform (DWT), and Least Significant Bit (LSB) embedding.
File Structure
• Top-level:
• CMakeLists.txt – build configuration
• README.md – documentation
• src/ – all source code
• src/ hierarchy:
• view/ – Qt GUI (mainwindow.ui, mainwindow.{cpp,h})
• controller/ – stegoController.{cpp,h} (orchestrates user actions)
• model/ – core algorithms:
– audioProcessor.*
– waveletTransform.*
– cellularAutomaton.*
– LSBHandler.*
– permutationGenerator.*, dataProcessor.* (auxiliary)
• utils/ – fileHandler.* (disk I/O, format handling)
• assets/ – .qrc resource file, images
Extract Insights from the README
• Architecture: MVC
• Core Modules:
• Wavelet Transform Module (Wavelib)
• Cellular Automaton Module
• LSB Handler Module
• External Dependencies: Qt, FFmpeg, OpenCV, Eigen, Wavelib
a. Main Components
• View (Qt GUI)
• Controller (StegoController)
• Model Modules:
• Wavelet Transform
• Cellular Automaton
• LSB Handler
• Audio Processor
• Data/Permutation Generators
• Utility Layer (FileHandler, FFmpeg wrapper)
• External Services/Libraries (Qt, FFmpeg, OpenCV, Wavelib)
b. Relationships & Data Flow
• User interacts with View → events sent to Controller
• Controller invokes Model modules in sequence:
1. FileHandler loads audio/image
2. Cellular Automaton encrypts image data
3. Wavelet Transform decomposes audio
4. LSB Handler embeds encrypted bits into wavelet coefficients
5. AudioProcessor reconstructs audio signal
6. FileHandler writes output file
• Reverse flow for extraction: Controller → Model (LSB → CA decrypt)
c. Architectural Patterns & Principles
• MVC separation: clean boundaries between UI, orchestration, and core logic
• Modular design: each algorithm in its own module for testability and reuse
• Layered architecture: Presentation → Application → Domain → Infrastructure
d. Key Technologies/Frameworks
• Qt (View)
• C++20 / STL / Multithreading (Model performance)
• Wavelib (Wavelet operations)
• FFmpeg (audio extraction/injection)
• OpenCV (image handling)
• Eigen (linear algebra, if used)