Commit 8b8bd9b1 authored by Davis King's avatar Davis King

Made get_surf_points() set the integral image pixel type automatically

based on the input pixel type rather than always using long.
parent a3b6df3e
......@@ -246,8 +246,12 @@ namespace dlib
<< "\n\t max_points: " << max_points
);
// Figure out the proper scalar type we should use to work with these pixels.
typedef typename pixel_traits<typename image_type::type>::basic_pixel_type bp_type;
typedef typename promote<bp_type>::type working_pixel_type;
// make an integral image first
integral_image int_img;
integral_image_generic<working_pixel_type> int_img;
int_img.load(img);
// now make a hessian pyramid
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment