diff --git a/doc/tutorials/videoio/intelperc.markdown b/doc/tutorials/videoio/intelperc.markdown index 932d78bd10..4822c4146f 100644 --- a/doc/tutorials/videoio/intelperc.markdown +++ b/doc/tutorials/videoio/intelperc.markdown @@ -78,5 +78,5 @@ there are two flags that should be used to set/get property of the needed genera flag value is assumed by default if neither of the two possible values of the property is set. For more information please refer to the example of usage -[intelperc_capture.cpp](https://github.com/opencv/opencv/tree/3.4/samples/cpp/intelperc_capture.cpp) +[videocapture_intelperc.cpp](https://github.com/opencv/opencv/tree/3.4/samples/cpp/videocapture_intelperc.cpp) in opencv/samples/cpp folder. diff --git a/doc/tutorials/videoio/kinect_openni.markdown b/doc/tutorials/videoio/kinect_openni.markdown index e8b7ad5b08..32cc99533b 100644 --- a/doc/tutorials/videoio/kinect_openni.markdown +++ b/doc/tutorials/videoio/kinect_openni.markdown @@ -134,5 +134,5 @@ property. The following properties of cameras available through OpenNI interface - CAP_OPENNI_DEPTH_GENERATOR_REGISTRATION = CAP_OPENNI_DEPTH_GENERATOR + CAP_PROP_OPENNI_REGISTRATION For more information please refer to the example of usage -[openni_capture.cpp](https://github.com/opencv/opencv/tree/3.4/samples/cpp/openni_capture.cpp) in +[videocapture_openni.cpp](https://github.com/opencv/opencv/tree/3.4/samples/cpp/videocapture_openni.cpp) in opencv/samples/cpp folder. diff --git a/samples/cpp/starter_imagelist.cpp b/samples/cpp/imagelist_reader.cpp similarity index 87% rename from samples/cpp/starter_imagelist.cpp rename to samples/cpp/imagelist_reader.cpp index 6f4f71466c..1d209b93a7 100644 --- a/samples/cpp/starter_imagelist.cpp +++ b/samples/cpp/imagelist_reader.cpp @@ -1,6 +1,4 @@ /* - * starter_imagelist.cpp - * * Created on: Nov 23, 2010 * Author: Ethan Rublee * @@ -16,10 +14,7 @@ using namespace cv; using namespace std; -//hide the local functions in an unnamed namespace -namespace -{ -void help(char** av) +static void help(char** av) { cout << "\nThis program gets you started being able to read images from a list in a file\n" "Usage:\n./" << av[0] << " image_list.yaml\n" @@ -30,7 +25,7 @@ void help(char** av) "Using OpenCV version %s\n" << CV_VERSION << "\n" << endl; } -bool readStringList(const string& filename, vector& l) +static bool readStringList(const string& filename, vector& l) { l.resize(0); FileStorage fs(filename, FileStorage::READ); @@ -45,7 +40,7 @@ bool readStringList(const string& filename, vector& l) return true; } -int process(vector images) +static int process(const vector& images) { namedWindow("image", WINDOW_KEEPRATIO); //resizable window; for (size_t i = 0; i < images.size(); i++) @@ -53,13 +48,11 @@ int process(vector images) Mat image = imread(images[i], IMREAD_GRAYSCALE); // do grayscale processing? imshow("image",image); cout << "Press a key to see the next image in the list." << endl; - waitKey(); // wait indefinitely for a key to be pressed + waitKey(); // wait infinitely for a key to be pressed } return 0; } -} - int main(int ac, char** av) { cv::CommandLineParser parser(ac, av, "{help h||}{@input||}"); diff --git a/samples/cpp/live_detect_qrcode.cpp b/samples/cpp/qrcode.cpp similarity index 100% rename from samples/cpp/live_detect_qrcode.cpp rename to samples/cpp/qrcode.cpp diff --git a/samples/cpp/autofocus.cpp b/samples/cpp/videocapture_gphoto2_autofocus.cpp similarity index 100% rename from samples/cpp/autofocus.cpp rename to samples/cpp/videocapture_gphoto2_autofocus.cpp diff --git a/samples/cpp/gstreamer_pipeline.cpp b/samples/cpp/videocapture_gstreamer_pipeline.cpp similarity index 100% rename from samples/cpp/gstreamer_pipeline.cpp rename to samples/cpp/videocapture_gstreamer_pipeline.cpp diff --git a/samples/cpp/image_sequence.cpp b/samples/cpp/videocapture_image_sequence.cpp similarity index 100% rename from samples/cpp/image_sequence.cpp rename to samples/cpp/videocapture_image_sequence.cpp diff --git a/samples/cpp/intelperc_capture.cpp b/samples/cpp/videocapture_intelperc.cpp similarity index 99% rename from samples/cpp/intelperc_capture.cpp rename to samples/cpp/videocapture_intelperc.cpp index b6e66745c4..7ac3a7c184 100644 --- a/samples/cpp/intelperc_capture.cpp +++ b/samples/cpp/videocapture_intelperc.cpp @@ -1,6 +1,3 @@ -// testOpenCVCam.cpp : Defines the entry point for the console application. -// - #include "opencv2/videoio.hpp" #include "opencv2/highgui.hpp" diff --git a/samples/cpp/openni_capture.cpp b/samples/cpp/videocapture_openni.cpp similarity index 100% rename from samples/cpp/openni_capture.cpp rename to samples/cpp/videocapture_openni.cpp