diff --git a/dlib/image_transforms/interpolation.h b/dlib/image_transforms/interpolation.h index 068e2334b..083d1daac 100644 --- a/dlib/image_transforms/interpolation.h +++ b/dlib/image_transforms/interpolation.h @@ -1621,7 +1621,7 @@ namespace dlib } // now make an image pyramid - dlib::array levels(max_depth); + dlib::array::pixel_type> > levels(max_depth); if (levels.size() != 0) pyr(img,levels[0]); for (unsigned long i = 1; i < levels.size(); ++i)