diff --git a/src/bin/experiment.rs b/src/bin/experiment.rs index a17d45e..e51f0e5 100644 --- a/src/bin/experiment.rs +++ b/src/bin/experiment.rs @@ -1,11 +1,10 @@ -use image_similarity::descriptors; -use image_similarity::descriptors::Descriptor; +use image_similarity::descriptors::{Descriptor, DCT}; use std::collections::HashMap; use std::fs; fn main() { //Init all descriptors: - let desc = descriptors::dct::DCT::new(); + let desc = DCT::new(); //Initialize hashmap, empty or from cached file: let count = fs::read_dir("img").unwrap().count(); diff --git a/src/descriptors/dct.rs b/src/descriptors/dct.rs index a285a78..597d003 100644 --- a/src/descriptors/dct.rs +++ b/src/descriptors/dct.rs @@ -4,7 +4,7 @@ use crate::descriptors::{Descriptor, print_matrix, DCT}; impl DCT { - /// Returns a new DCT instance with a calculated DCT matrix. + /// Returns a new DCT instance with a base quality DCT matrix. pub fn new() -> DCT { let base_quantization_matrix: [u8; 64] = [ 16, 11, 10, 16, 24, 40, 51, 61,