A minor change to ensure the load() function can load objects

like the cv_image.
This commit is contained in:
Davis King 2014-02-09 10:25:59 -05:00
parent 944748b330
commit 5a385a3c02
1 changed files with 4 additions and 1 deletions

View File

@ -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<pixel_type,mem_manager_type> temp1, temp2;
pyr(img, temp1);
extract_fhog_features(temp1, feats[1], cell_size,height,width);
swap(temp1,temp2);