From 074f9e33cb30199641e4365cdaaffa999fc6a744 Mon Sep 17 00:00:00 2001
From: perping <erping@multicorewareinc.com>
Date: Thu, 26 Sep 2013 15:30:44 +0800
Subject: [PATCH] fix three warning about mog, mog2 and KNearestNeighbour.

---
 modules/ocl/doc/ml_machine_learning.rst | 2 +-
 modules/ocl/doc/video_analysis.rst      | 4 ++--
 2 files changed, 3 insertions(+), 3 deletions(-)

diff --git a/modules/ocl/doc/ml_machine_learning.rst b/modules/ocl/doc/ml_machine_learning.rst
index b09d7f2c4d..321cec9dba 100644
--- a/modules/ocl/doc/ml_machine_learning.rst
+++ b/modules/ocl/doc/ml_machine_learning.rst
@@ -5,7 +5,7 @@ ml.Machine Learning
 
 ocl::KNearestNeighbour
 --------------------------
-.. ocv:class:: ocl::KNearestNeighbour
+.. ocv:class:: ocl::KNearestNeighbour : public ocl::CvKNearest
 
 The class implements K-Nearest Neighbors model as described in the beginning of this section.
 
diff --git a/modules/ocl/doc/video_analysis.rst b/modules/ocl/doc/video_analysis.rst
index c631491f5a..599c0f9b63 100644
--- a/modules/ocl/doc/video_analysis.rst
+++ b/modules/ocl/doc/video_analysis.rst
@@ -361,7 +361,7 @@ Computes a background image.
 
 ocl::MOG
 ------------
-.. ocv:class:: ocl::MOG
+.. ocv:class:: ocl::MOG : public ocl::BackgroundSubtractor
 
 Gaussian Mixture-based Backbround/Foreground Segmentation Algorithm. ::
 
@@ -441,7 +441,7 @@ Releases all inner buffer's memory.
 
 ocl::MOG2
 -------------
-.. ocv:class:: ocl::MOG2
+.. ocv:class:: ocl::MOG2 : public ocl::BackgroundSubtractor
 
 Gaussian Mixture-based Background/Foreground Segmentation Algorithm. ::