A minor change to allow a wider variety of output image types to be used. In

particular, this change allows complex valued images to be the output of
extract_image_chips().
This commit is contained in:
Davis King 2015-01-03 23:39:38 -05:00
parent 5b1fc42a82
commit 7f7a93a21d
1 changed files with 1 additions and 1 deletions

View File

@ -1621,7 +1621,7 @@ namespace dlib
}
// now make an image pyramid
dlib::array<image_type2> levels(max_depth);
dlib::array<array2d<typename image_traits<image_type1>::pixel_type> > levels(max_depth);
if (levels.size() != 0)
pyr(img,levels[0]);
for (unsigned long i = 1; i < levels.size(); ++i)