From f0910466f924544314adba3214c35ba4e4eec27d Mon Sep 17 00:00:00 2001 From: dbloisi Date: Sun, 1 Sep 2013 20:59:27 +0200 Subject: [PATCH] fixing trailing whitespaces --- .../background_subtraction.rst | 44 ++--- .../table_of_content_video.rst | 11 +- samples/cpp/tutorial_code/video/bg_sub.cpp | 186 +++++++++--------- 3 files changed, 117 insertions(+), 124 deletions(-) diff --git a/doc/tutorials/video/background_subtraction/background_subtraction.rst b/doc/tutorials/video/background_subtraction/background_subtraction.rst index 94df3bbed..b37e97f38 100644 --- a/doc/tutorials/video/background_subtraction/background_subtraction.rst +++ b/doc/tutorials/video/background_subtraction/background_subtraction.rst @@ -6,11 +6,11 @@ How to Use Background Subtraction Methods * Background subtraction (BS) is a common and widely used technique for generating a foreground mask (namely, a binary image containing the pixels belonging to moving objects in the scene) by using static cameras. * As the name suggests, BS calculates the foreground mask performing a subtraction between the current frame and a background model, containing the static part of the scene or, more in general, everything that can be considered as background given the characteristics of the observed scene. - + .. image:: images/Background_Subtraction_Tutorial_Scheme.png :alt: Background Subtraction - General Scheme - :align: center - + :align: center + * Background modeling consists of two main steps: #. Background Initialization; @@ -62,7 +62,7 @@ The results as well as the input data are shown on the screen. Ptr pMOG; //MOG Background subtractor Ptr pMOG2; //MOG2 Background subtractor int keyboard; - + //function declarations void help(); void processVideo(char* videoFilename); @@ -74,7 +74,7 @@ The results as well as the input data are shown on the screen. << "--------------------------------------------------------------------------" << endl << "This program shows how to use background subtraction methods provided by " << endl << " OpenCV. You can process both videos (-vid) and images (-img)." << endl - << endl + << endl << "Usage:" << endl << "./bs {-vid