/* * This file is part of robotreality * * Copyright(c) sschulz techfak.uni-bielefeld.de * http://opensource.cit-ec.de/projects/robotreality * * This file may be licensed under the terms of the * GNU General Public License Version 3 (the ``GPL''), * or (at your option) any later version. * * Software distributed under the License is distributed * on an ``AS IS'' basis, WITHOUT WARRANTY OF ANY KIND, either * express or implied. See the GPL for the specific language * governing rights and limitations. * * You should have received a copy of the GPL along with this * program. If not, go to http://www.gnu.org/licenses/gpl.html * or write to the Free Software Foundation, Inc., * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. * * The development of this software was supported by the * Excellence Cluster EXC 277 Cognitive Interaction Technology. * The Excellence Cluster EXC 277 is a grant of the Deutsche * Forschungsgemeinschaft (DFG) in the context of the German * Excellence Initiative. * */ #ifndef OutputVisualizer_H #define OutputVisualizer_H #include #include #include #include "ConfigOptions.h" #include "EyeFinder.h" #include "MarkerModel.h" #include "HeadTracker.h" #include using namespace std; class OutputVisualizer{ public: OutputVisualizer(ConfigOptions *c, MarkerModel *m, EyeFinder *e, HeadTracker *h); void overlay_blobs_on_image(Mat *image); private: void render_angle(Mat *image, Point2d center, double angle, int r, int g, int b); void render_eye(Mat *image, int e); void render_eyelid(Mat *image, int e, double angle); void render_mouth_single(Mat *image, int index); void render_mouth(Mat *image); ConfigOptions *cfg; MarkerModel *marker_model; EyeFinder *eye_finder; HeadTracker *head_tracker; }; #endif