diff --git a/README.md b/README.md index 0f64aba..bfcb8e1 100644 --- a/README.md +++ b/README.md @@ -1,2 +1,17 @@ -# fractal-wavelet-compression -Image compression with fractal wavelet transform +# `frave` +![fractals](img/fractals.gif) + +`frave` is an image compression algorithm based on complex-base system fractals. + +## Decomposition of an image +Unlike other compression algorithms `frave` works on tame-twindragon fractals rather than on blocks. + +## Compression pipeline +- Decomposing image to fractals using complex-base numeral systems +- Saving the residues of each block +- Quantization based on dividing the smallest layer of fractals +- Entropy coding with ANS + +## Compression rates +> TBD! + diff --git a/img/decomposition.gif b/img/decomposition.gif deleted file mode 100644 index a52b4ac..0000000 Binary files a/img/decomposition.gif and /dev/null differ diff --git a/img/fractals.gif b/img/fractals.gif new file mode 100644 index 0000000..8d68d2e Binary files /dev/null and b/img/fractals.gif differ diff --git a/utils.rs b/utils.rs deleted file mode 100644 index 726e63d..0000000 --- a/utils.rs +++ /dev/null @@ -1,17 +0,0 @@ -use std::ops; - -#[derive(Clone, Copy, Debug)] -pub struct Coord { - pub x: i32, - pub y: i32, -} - -impl ops::Add for Coord { - type Output = Self; - fn add(self, rhs: Self) -> Self::Output { - Self { - x: self.x + rhs.x, - y: self.y + rhs.y, - } - } -}