discrete_transforms

Crates.iodiscrete_transforms
lib.rsdiscrete_transforms
version0.1.3
sourcesrc
created_at2019-01-22 19:01:03.979089
updated_at2019-03-21 18:59:17.947889
descriptionLibrary for Discrete Transforms
homepagehttps://github.com/hgallagher1993/discrete_transforms
repositoryhttps://github.com/hgallagher1993/discrete_transforms
max_upload_size
id110062
size19,877
Hugh Gallagher (hgallagher1993)

documentation

README

All of this is wildly out of date, needs to be rewritten.

use discrete_transforms::*

1D DCT

let forward = dct_1d::forward(&Vec<f64>)
let inverse = dct_1d::inverse(&Vec<f64>)

1D Haar

let forward = haar_1d::forward(&Vec<f64>)
let inverse = haar_1d::inverse(&Vec<f64>)

2D Transforms, create a Transform object and add in the transform you want

let dct_forward = Transform::new(input, TransformType::DctForward).transform();
let dct_inverse = Transform::new(input, TransformType::DctInverse).transform();
let haar_forward = Transform::new(input, TransformType::HaarForward).transform();
let haar_inverse = Transform::new(input, TransformType::HaarInverse).transform();

Problems / Things that need fixing:

This is a learning project as much as anything so things will change a lot :-)

Commit count: 40

cargo fmt