hugely optimized by scaling the bw image for each window size, and more timers

This commit is contained in:
Ruben van de Ven 2020-10-02 13:33:37 +02:00
parent 64bf56015c
commit 8262d3284f
1 changed files with 1 additions and 1 deletions

View File

@ -386,7 +386,7 @@ impl HaarClassifier {
&img_bw,
(img_bw.width() as f64 / scale + 1.) as u32,
(img_bw.height() as f64 / scale + 1.) as u32,
image::imageops::FilterType::Nearest
image::imageops::FilterType::CatmullRom
);
let integral = Self::integral_image(&img_bw_scaled);