Skip to content

Utilizes DFT (Discrete Fourier Transformation) (in the form of FFT) to compress data from a RAW image file and store it as a file with frequencies. The program can restore the file to a JPG file.

Notifications You must be signed in to change notification settings

FPSUsername/4CB00

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

16 Commits
 
 
 
 
 
 
 
 

Repository files navigation

4CB00

Installing

  • Clone the repository.
  • Download and install 64-bit Python3. Python 3.7.9 is recommended. Make sure to check Install Python 3 to PATH
  • Install virtualenv. Run this on command prompt. Search cmd or powershell in the Windows start menu.
pip install virtualenv
  • Go to 4CB00 location
cd C:\path\to\4CB00
  • Create virtual environment
virtualenv venv
  • Activate virtualenv
# On Windows
venv\Scripts\activate
# On Linux and Mac
source venv/Scripts/activate
  • Install required packages
pip install -r requirements.txt

Usage

Make sure to activate the virtualenv (see Installing)
Run the following command to start the program (for Linux use python3)

python main.py

Read the commands printed in the command prompt/terminal

Output

The program can save the input image file in a form which consists of the rFFT2 values of each color and the full FFT image size. The rFFT2 data can be compressed and will be stored without zero padding.

Results

Tested with a RAW image provided from Signature Edits.

Results using skulls image (inst = m.n_photo.graphy.NEF):

Compression
(input value)
FFT file size
KB
JPG file size
KB
0 542.595 1.542
10 25.275 970
60 10.076 922

About

Utilizes DFT (Discrete Fourier Transformation) (in the form of FFT) to compress data from a RAW image file and store it as a file with frequencies. The program can restore the file to a JPG file.

Topics

Resources

Stars

Watchers

Forks

Languages