From be7eb72051cb93b4fd9482e8fb1168d137d4731f Mon Sep 17 00:00:00 2001
From: "U-WBI\\nlv20442" <nlv20442@NXL01336.wbi.nxp.com>
Date: Thu, 30 Jan 2014 14:50:35 +0100
Subject: [PATCH] some fixes

---
 .../doc/motion_analysis_and_object_tracking.rst     | 12 ++++++------
 modules/video/src/bgfg_KNN.cpp                      | 13 ++++++++-----
 2 files changed, 14 insertions(+), 11 deletions(-)

diff --git a/modules/video/doc/motion_analysis_and_object_tracking.rst b/modules/video/doc/motion_analysis_and_object_tracking.rst
index 59379acc58..e8ec3b3923 100644
--- a/modules/video/doc/motion_analysis_and_object_tracking.rst
+++ b/modules/video/doc/motion_analysis_and_object_tracking.rst
@@ -761,7 +761,7 @@ BackgroundSubtractorKNN::setNSamples
 --------------------------------------
 Sets the number of data samples in the background model. The model needs to be reinitalized to reserve memory.
 
-.. ocv:function:: void BackgroundSubtractorKNN::setNSamples(int nN)
+.. ocv:function:: void BackgroundSubtractorKNN::setNSamples(int _nN)
 
 
 BackgroundSubtractorKNN::getDist2Threshold
@@ -776,7 +776,7 @@ BackgroundSubtractorKNN::setDist2Threshold
 ---------------------------------------------
 Sets the threshold on the squared distance
 
-.. ocv:function:: void BackgroundSubtractorKNN::setDist2Threshold(double dist2Threshold)
+.. ocv:function:: void BackgroundSubtractorKNN::setDist2Threshold(double _dist2Threshold)
 
 BackgroundSubtractorKNN::getkNNSamples
 ---------------------------------------------
@@ -788,7 +788,7 @@ BackgroundSubtractorKNN::setkNNSamples
 ---------------------------------------------
 Sets the k in the kNN. How many nearest neigbours need to match.
 
-.. ocv:function:: void BackgroundSubtractorKNN::setkNNSamples(int nKNN)
+.. ocv:function:: void BackgroundSubtractorKNN::setkNNSamples(int _nkNN)
 
 
 BackgroundSubtractorKNN::getDetectShadows
@@ -1108,9 +1108,9 @@ Releases all inner buffers.
 
 .. [Bradski98] Bradski, G.R. "Computer Vision Face Tracking for Use in a Perceptual User Interface", Intel, 1998
 
-.. [Bradski00] Davis, J.W. and Bradski, G.R. “Motion Segmentation and Pose Recognition with Motion History Gradients”, WACV00, 2000
+.. [Bradski00] Davis, J.W. and Bradski, G.R. “Motion Segmentation and Pose Recognition with Motion History Gradients�?, WACV00, 2000
 
-.. [Davis97] Davis, J.W. and Bobick, A.F. “The Representation and Recognition of Action Using Temporal Templates”, CVPR97, 1997
+.. [Davis97] Davis, J.W. and Bobick, A.F. “The Representation and Recognition of Action Using Temporal Templates�?, CVPR97, 1997
 
 .. [EP08] Evangelidis, G.D. and Psarakis E.Z. "Parametric Image Alignment using Enhanced Correlation Coefficient Maximization", IEEE Transactions on PAMI, vol. 32, no. 10, 2008
 
@@ -1124,7 +1124,7 @@ Releases all inner buffers.
 
 .. [Lucas81] Lucas, B., and Kanade, T. An Iterative Image Registration Technique with an Application to Stereo Vision, Proc. of 7th International Joint Conference on Artificial Intelligence (IJCAI), pp. 674-679.
 
-.. [Welch95] Greg Welch and Gary Bishop “An Introduction to the Kalman Filter”, 1995
+.. [Welch95] Greg Welch and Gary Bishop “An Introduction to the Kalman Filter�?, 1995
 
 .. [Tao2012] Michael Tao, Jiamin Bai, Pushmeet Kohli and Sylvain Paris. SimpleFlow: A Non-iterative, Sublinear Optical Flow Algorithm. Computer Graphics Forum (Eurographics 2012)
 
diff --git a/modules/video/src/bgfg_KNN.cpp b/modules/video/src/bgfg_KNN.cpp
index 9721e26b87..63ef300e04 100755
--- a/modules/video/src/bgfg_KNN.cpp
+++ b/modules/video/src/bgfg_KNN.cpp
@@ -594,7 +594,7 @@ void BackgroundSubtractorKNNImpl::apply(InputArray _image, OutputArray _fgmask,
             bShadowDetection,
             nShadowDetection
             );
-};
+}
 
 void BackgroundSubtractorKNNImpl::getBackgroundImage(OutputArray backgroundImage) const
 {
@@ -640,12 +640,15 @@ void BackgroundSubtractorKNNImpl::getBackgroundImage(OutputArray backgroundImage
         default:
             CV_Error(Error::StsUnsupportedFormat, "");
     }
-};
+}
 
 
-Ptr<BackgroundSubtractorKNN> createBackgroundSubtractorKNN(int _history, double _threshold2,bool _bShadowDetection)
+Ptr<BackgroundSubtractorKNN> createBackgroundSubtractorKNN(int _history, double _threshold2,
+                                                           bool _bShadowDetection)
 {
     return makePtr<BackgroundSubtractorKNNImpl>(_history, (float)_threshold2, _bShadowDetection);
-};
+}
+
+}
 
-};//namespace cv
+/* End of file. */