From 20f932bd462e42be539087d0579b1054d2fc8715 Mon Sep 17 00:00:00 2001 From: dbloisi Date: Sun, 1 Sep 2013 22:13:49 +0200 Subject: [PATCH] fixing trailing whitespaces --- .../background_subtraction.rst | 18 +++++++++--------- .../table_of_content_video.rst | 4 ++-- samples/cpp/tutorial_code/video/bg_sub.cpp | 2 +- 3 files changed, 12 insertions(+), 12 deletions(-) diff --git a/doc/tutorials/video/background_subtraction/background_subtraction.rst b/doc/tutorials/video/background_subtraction/background_subtraction.rst index b37e97f38..3b53a26a6 100644 --- a/doc/tutorials/video/background_subtraction/background_subtraction.rst +++ b/doc/tutorials/video/background_subtraction/background_subtraction.rst @@ -326,18 +326,18 @@ We discuss the main parts of the above code: } //update the path of the current frame fn.assign(nextFrameFilename); - + * Note that this example works only on image sequences in which the filename format is .png, where n is the frame number (e.g., 7.png). - + Results ======= * Given the following input parameters: .. code-block:: cpp - + -vid Video_001.avi - + The output of the program will look as the following: .. image:: images/Background_Subtraction_Tutorial_Result_1.png @@ -349,9 +349,9 @@ Results * If you want to process a sequence of images, then the '-img' option has to be chosen: .. code-block:: cpp - + -img 111_png/input/1.png - + The output of the program will look as the following: .. image:: images/Background_Subtraction_Tutorial_Result_2.png @@ -361,8 +361,8 @@ Results * The sequence of images used in this example is part of the `Background Models Challenge (BMC) `_ dataset and it can be downloaded from the following link `sequence 111 `_ (about 708 MB). Please, note that this example works only on sequences in which the filename format is .png, where n is the frame number (e.g., 7.png). Evaluation -========== - +========== + To quantitatively evaluate the results obtained, we need to: * Save the output images; @@ -377,7 +377,7 @@ In order to save the output images, we can use :imwrite:`imwrite <>`. Adding the if(!saved) { cerr << "Unable to save " << imageToSave << endl; } - + Once we have collected the result images, we can compare them with the ground truth data. There exist several publicly available sequences for background subtraction that come with ground truth data. If you decide to use the `Background Models Challenge (BMC) `_, then the result images can be used as input for the `BMC Wizard `_. The wizard can compute different measures about the accuracy of the results. References diff --git a/doc/tutorials/video/table_of_content_video/table_of_content_video.rst b/doc/tutorials/video/table_of_content_video/table_of_content_video.rst index 86dd53c32..dcebcd7e2 100644 --- a/doc/tutorials/video/table_of_content_video/table_of_content_video.rst +++ b/doc/tutorials/video/table_of_content_video/table_of_content_video.rst @@ -3,11 +3,11 @@ *video* module. Video analysis ----------------------------------------------------------- -Look here in order to find use on your video stream algoritms like: motion extraction, feature tracking and foreground extractions. +Look here in order to find use on your video stream algoritms like: motion extraction, feature tracking and foreground extractions. .. include:: ../../definitions/tocDefinitions.rst -+ ++ .. tabularcolumns:: m{100pt} m{300pt} .. cssclass:: toctableopencv diff --git a/samples/cpp/tutorial_code/video/bg_sub.cpp b/samples/cpp/tutorial_code/video/bg_sub.cpp index 70e39efe3..24805a1ed 100644 --- a/samples/cpp/tutorial_code/video/bg_sub.cpp +++ b/samples/cpp/tutorial_code/video/bg_sub.cpp @@ -63,7 +63,7 @@ int main(int argc, char* argv[]) namedWindow("Frame"); namedWindow("FG Mask MOG"); namedWindow("FG Mask MOG 2"); - + //create Background Subtractor objects pMOG = createBackgroundSubtractorMOG(); //MOG approach pMOG2 = createBackgroundSubtractorMOG2(); //MOG2 approach