From 5a385a3c026277010ea32d3dbfae48590093c849 Mon Sep 17 00:00:00 2001 From: Davis King Date: Sun, 9 Feb 2014 10:25:59 -0500 Subject: [PATCH] A minor change to ensure the load() function can load objects like the cv_image. --- dlib/image_processing/scan_fhog_pyramid.h | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/dlib/image_processing/scan_fhog_pyramid.h b/dlib/image_processing/scan_fhog_pyramid.h index e6546220a..3f4000511 100644 --- a/dlib/image_processing/scan_fhog_pyramid.h +++ b/dlib/image_processing/scan_fhog_pyramid.h @@ -510,11 +510,14 @@ namespace dlib unsigned long width, height; compute_fhog_window_size(width,height); + typedef typename image_type::type pixel_type; + typedef typename image_type::mem_manager_type mem_manager_type; + // build our feature pyramid extract_fhog_features(img, feats[0], cell_size,height,width); if (feats.size() > 1) { - image_type temp1, temp2; + array2d temp1, temp2; pyr(img, temp1); extract_fhog_features(temp1, feats[1], cell_size,height,width); swap(temp1,temp2);