Image DCT
Simple Rust implementation for getting DCT coefficients of an image and reconstructing it.
Dependent on image, rustdct crates.
Repository: Ty1an/image_dct
Install
Usage
use ImageDct;
Useful APIs
dct_coefficients() -> &[f32]: inspect frequency-domain datazero_coefficients_below(threshold): prune small coefficientsretain_strongest_coefficients(keep): keep top-K coefficients (simple compression)mse_luma(): luma reconstruction error after inverse transform