Offline and online adaboost for detecting anatomic structures