Skip to content

Commit d5b8115

Browse files
committed
Merge pull request #2400 from berak:tutorial_customizing_cn_tracker
2 parents 91b39aa + 162647c commit d5b8115

File tree

2 files changed

+1
-2
lines changed

2 files changed

+1
-2
lines changed

modules/tracking/samples/tutorial_customizing_cn_tracker.cpp

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -123,7 +123,6 @@ void sobelExtractor(const Mat img, const Rect roi, Mat& feat){
123123
//! [sobel]
124124

125125
//! [postprocess]
126-
feat.convertTo(feat,CV_64F);
127126
feat=feat/255.0-0.5; // normalize to range -0.5 .. 0.5
128127
//! [postprocess]
129128
}

modules/tracking/tutorials/tutorial_customizing_cn_tracker.markdown

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -68,6 +68,6 @@ If you need a more detailed information to use @ref cv::Tracker, please refer to
6868

6969
-# **Post processing**
7070

71-
Make sure to convert the feature into @ref cv::CV_64F data format and normalize its value with range -0.5 to 0.5
71+
Make sure to normalize the feature with range -0.5 to 0.5
7272

7373
@snippet tracking/samples/tutorial_customizing_cn_tracker.cpp postprocess

0 commit comments

Comments
 (0)