fixes experiment binary

This commit is contained in:
2024-05-08 12:01:33 +02:00
parent 1aa32a3788
commit 499f7f7bfd
2 changed files with 3 additions and 4 deletions
+2 -3
View File
@@ -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();
+1 -1
View File
@@ -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,