From f8c82fc214914756bae23b41de75943689be0801 Mon Sep 17 00:00:00 2001 From: Dikay900 Date: Fri, 24 Apr 2015 18:15:50 +0200 Subject: [PATCH 01/13] update openni sample comments referring #81 --- samples/cpp/openni_capture.cpp | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/samples/cpp/openni_capture.cpp b/samples/cpp/openni_capture.cpp index ba4cb73843..549f16e6f0 100644 --- a/samples/cpp/openni_capture.cpp +++ b/samples/cpp/openni_capture.cpp @@ -12,14 +12,14 @@ static void help() "The user gets some of the supported output images.\n" "\nAll supported output map types:\n" "1.) Data given from depth generator\n" - " OPENNI_DEPTH_MAP - depth values in mm (CV_16UC1)\n" - " OPENNI_POINT_CLOUD_MAP - XYZ in meters (CV_32FC3)\n" - " OPENNI_DISPARITY_MAP - disparity in pixels (CV_8UC1)\n" - " OPENNI_DISPARITY_MAP_32F - disparity in pixels (CV_32FC1)\n" - " OPENNI_VALID_DEPTH_MASK - mask of valid pixels (not ocluded, not shaded etc.) (CV_8UC1)\n" + " CV_CAP_OPENNI_DEPTH_MAP - depth values in mm (CV_16UC1)\n" + " CV_CAP_OPENNI_POINT_CLOUD_MAP - XYZ in meters (CV_32FC3)\n" + " CV_CAP_OPENNI_DISPARITY_MAP - disparity in pixels (CV_8UC1)\n" + " CV_CAP_OPENNI_DISPARITY_MAP_32F - disparity in pixels (CV_32FC1)\n" + " CV_CAP_OPENNI_VALID_DEPTH_MASK - mask of valid pixels (not ocluded, not shaded etc.) (CV_8UC1)\n" "2.) Data given from RGB image generator\n" - " OPENNI_BGR_IMAGE - color image (CV_8UC3)\n" - " OPENNI_GRAY_IMAGE - gray image (CV_8UC1)\n" + " CV_CAP_OPENNI_BGR_IMAGE - color image (CV_8UC3)\n" + " CV_CAP_OPENNI_GRAY_IMAGE - gray image (CV_8UC1)\n" << endl; } From 5c6c53704440c0b7ccad4956a24bbadf21febd7a Mon Sep 17 00:00:00 2001 From: Maximilien Cuony Date: Wed, 17 Sep 2014 09:32:19 +0200 Subject: [PATCH 02/13] Fix typo in error for extrinsic parameters --- samples/cpp/stereo_calib.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/samples/cpp/stereo_calib.cpp b/samples/cpp/stereo_calib.cpp index 809f23bbda..0ff3929618 100644 --- a/samples/cpp/stereo_calib.cpp +++ b/samples/cpp/stereo_calib.cpp @@ -236,7 +236,7 @@ StereoCalib(const vector& imagelist, Size boardSize, bool useCalibrated= fs.release(); } else - cout << "Error: can not save the intrinsic parameters\n"; + cout << "Error: can not save the extrinsic parameters\n"; // OpenCV can handle left-right // or up-down camera arrangements From ac3ec0d96d140ba71b2b5524c00bd7e38156a5f8 Mon Sep 17 00:00:00 2001 From: Kevin Hughes Date: Wed, 17 Apr 2013 13:20:32 -0400 Subject: [PATCH 03/13] squashed #823 removed separate example for reading image sequences and modified starter_video.cpp to better explain the functionality of VideoCapture. I also added a bit more explanation in the documentation of the VideoCapture interface Conflicts: modules/highgui/doc/reading_and_writing_images_and_video.rst samples/cpp/starter_video.cpp starter_video.cpp changed CV WINDOW KEEPRATIO to just WINDOW KEEPTATIO to fix build error starter_video.cpp hid local functions --- .../reading_and_writing_images_and_video.rst | 4 +- samples/cpp/starter_video.cpp | 65 ++++++++++--------- 2 files changed, 37 insertions(+), 32 deletions(-) diff --git a/modules/highgui/doc/reading_and_writing_images_and_video.rst b/modules/highgui/doc/reading_and_writing_images_and_video.rst index 316012a279..a17ad90ebd 100644 --- a/modules/highgui/doc/reading_and_writing_images_and_video.rst +++ b/modules/highgui/doc/reading_and_writing_images_and_video.rst @@ -193,8 +193,8 @@ VideoCapture ------------ .. ocv:class:: VideoCapture -Class for video capturing from video files or cameras. -The class provides C++ API for capturing video from cameras or for reading video files. Here is how the class can be used: :: +Class for video capturing from video files, image sequences or cameras. +The class provides C++ API for capturing video from cameras or for reading video files and image sequences. Here is how the class can be used: :: #include "opencv2/opencv.hpp" diff --git a/samples/cpp/starter_video.cpp b/samples/cpp/starter_video.cpp index b8f4086c45..7f9dafd6bc 100644 --- a/samples/cpp/starter_video.cpp +++ b/samples/cpp/starter_video.cpp @@ -4,31 +4,34 @@ * Created on: Nov 23, 2010 * Author: Ethan Rublee * -* A starter sample for using opencv, get a video stream and display the images +* Modified on: April 17, 2013 +* Author: Kevin Hughes +* +* A starter sample for using OpenCV VideoCapture with capture devices, video files or image sequences * easy as CV_PI right? */ -#include "opencv2/highgui/highgui.hpp" + +#include + #include -#include #include using namespace cv; using namespace std; - - //hide the local functions in an anon namespace namespace { void help(char** av) { - cout << "\nThis program justs gets you started reading images from video\n" - "Usage:\n./" << av[0] << "