From b4dea4ef4742a9f8fba30124f7559029351b0020 Mon Sep 17 00:00:00 2001 From: Pavel Rojtberg Date: Fri, 7 Dec 2018 13:50:41 +0100 Subject: [PATCH] linemod: add drawFeatures method --- modules/rgbd/include/opencv2/rgbd/linemod.hpp | 9 ++++++++ modules/rgbd/src/linemod.cpp | 23 +++++++++++++++++++ 2 files changed, 32 insertions(+) diff --git a/modules/rgbd/include/opencv2/rgbd/linemod.hpp b/modules/rgbd/include/opencv2/rgbd/linemod.hpp index c3ace1ea8..dc42f0634 100644 --- a/modules/rgbd/include/opencv2/rgbd/linemod.hpp +++ b/modules/rgbd/include/opencv2/rgbd/linemod.hpp @@ -239,6 +239,15 @@ protected: */ CV_EXPORTS_W void colormap(const Mat& quantized, CV_OUT Mat& dst); +/** + * \brief Debug function to draw linemod features + * @param img + * @param templates see @ref Detector::addTemplate + * @param tl template bbox top-left offset see @ref Detector::addTemplate + * @param size marker size see @ref cv::drawMarker + */ +CV_EXPORTS_W void drawFeatures(InputOutputArray img, const std::vector