davisking / dlib

A toolkit for making real world machine learning and data analysis applications in C++
http://dlib.net
Boost Software License 1.0
13.59k stars 3.38k forks source link

question about pyramid #1520

Closed lulu1315 closed 6 years ago

lulu1315 commented 6 years ago

hello. I'm just starting with dlib , playing with the face detection examples but there is something I'm struggling with. usually the picture is upsampled with pyramid_up(img) I'm drawing the landmarks on the picture but I would like to revert the picture to his original size before writing it to disk. I tried (naively) with pyramid_down(img) but I'm getting some errors. if you could point me to some examples showing the pyramid mechanism it would help. thanks in advance luc

davisking commented 6 years ago

The pyramid_down class has methods in it like point_up, point_down, and so forth that map between pyramid levels.