fixes experiment binary
This commit is contained in:
@@ -1,11 +1,10 @@
|
|||||||
use image_similarity::descriptors;
|
use image_similarity::descriptors::{Descriptor, DCT};
|
||||||
use image_similarity::descriptors::Descriptor;
|
|
||||||
use std::collections::HashMap;
|
use std::collections::HashMap;
|
||||||
use std::fs;
|
use std::fs;
|
||||||
|
|
||||||
fn main() {
|
fn main() {
|
||||||
//Init all descriptors:
|
//Init all descriptors:
|
||||||
let desc = descriptors::dct::DCT::new();
|
let desc = DCT::new();
|
||||||
|
|
||||||
//Initialize hashmap, empty or from cached file:
|
//Initialize hashmap, empty or from cached file:
|
||||||
let count = fs::read_dir("img").unwrap().count();
|
let count = fs::read_dir("img").unwrap().count();
|
||||||
|
|||||||
@@ -4,7 +4,7 @@ use crate::descriptors::{Descriptor, print_matrix, DCT};
|
|||||||
|
|
||||||
|
|
||||||
impl 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 {
|
pub fn new() -> DCT {
|
||||||
let base_quantization_matrix: [u8; 64] = [
|
let base_quantization_matrix: [u8; 64] = [
|
||||||
16, 11, 10, 16, 24, 40, 51, 61,
|
16, 11, 10, 16, 24, 40, 51, 61,
|
||||||
|
|||||||
Reference in New Issue
Block a user