From 162647c023253f45a82316036f3bb6cf962ec206 Mon Sep 17 00:00:00 2001 From: berak Date: Tue, 31 Dec 2019 10:11:20 +0100 Subject: [PATCH] remove CV_64F conversion in tracking sample --- modules/tracking/samples/tutorial_customizing_cn_tracker.cpp | 1 - .../tracking/tutorials/tutorial_customizing_cn_tracker.markdown | 2 +- 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a/modules/tracking/samples/tutorial_customizing_cn_tracker.cpp b/modules/tracking/samples/tutorial_customizing_cn_tracker.cpp index 31d3b3c4c..cd4418b2d 100644 --- a/modules/tracking/samples/tutorial_customizing_cn_tracker.cpp +++ b/modules/tracking/samples/tutorial_customizing_cn_tracker.cpp @@ -123,7 +123,6 @@ void sobelExtractor(const Mat img, const Rect roi, Mat& feat){ //! [sobel] //! [postprocess] - feat.convertTo(feat,CV_64F); feat=feat/255.0-0.5; // normalize to range -0.5 .. 0.5 //! [postprocess] } diff --git a/modules/tracking/tutorials/tutorial_customizing_cn_tracker.markdown b/modules/tracking/tutorials/tutorial_customizing_cn_tracker.markdown index 4d52e2d73..c79ab51e8 100644 --- a/modules/tracking/tutorials/tutorial_customizing_cn_tracker.markdown +++ b/modules/tracking/tutorials/tutorial_customizing_cn_tracker.markdown @@ -68,6 +68,6 @@ If you need a more detailed information to use @ref cv::Tracker, please refer to -# **Post processing** - Make sure to convert the feature into @ref cv::CV_64F data format and normalize its value with range -0.5 to 0.5 + Make sure to normalize the feature with range -0.5 to 0.5 @snippet tracking/samples/tutorial_customizing_cn_tracker.cpp postprocess