From 059bf1d9e501a0a78c2ae412d855ed9a61cd732e Mon Sep 17 00:00:00 2001 From: berak Date: Sat, 30 Nov 2013 13:09:42 +0100 Subject: [PATCH] corrected initialization of output_folder in facereco examples --- modules/contrib/doc/facerec/src/facerec_eigenfaces.cpp | 2 +- modules/contrib/doc/facerec/src/facerec_fisherfaces.cpp | 2 +- modules/contrib/doc/facerec/src/facerec_save_load.cpp | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/modules/contrib/doc/facerec/src/facerec_eigenfaces.cpp b/modules/contrib/doc/facerec/src/facerec_eigenfaces.cpp index b3d5f4dad7..66e333a090 100644 --- a/modules/contrib/doc/facerec/src/facerec_eigenfaces.cpp +++ b/modules/contrib/doc/facerec/src/facerec_eigenfaces.cpp @@ -70,7 +70,7 @@ int main(int argc, const char *argv[]) { cout << "usage: " << argv[0] << " " << endl; exit(1); } - string output_folder; + string output_folder = "."; if (argc == 3) { output_folder = string(argv[2]); } diff --git a/modules/contrib/doc/facerec/src/facerec_fisherfaces.cpp b/modules/contrib/doc/facerec/src/facerec_fisherfaces.cpp index b88d90e50d..b6a64c80de 100644 --- a/modules/contrib/doc/facerec/src/facerec_fisherfaces.cpp +++ b/modules/contrib/doc/facerec/src/facerec_fisherfaces.cpp @@ -70,7 +70,7 @@ int main(int argc, const char *argv[]) { cout << "usage: " << argv[0] << " " << endl; exit(1); } - string output_folder; + string output_folder = "."; if (argc == 3) { output_folder = string(argv[2]); } diff --git a/modules/contrib/doc/facerec/src/facerec_save_load.cpp b/modules/contrib/doc/facerec/src/facerec_save_load.cpp index d8e3104785..8bfbbdc409 100644 --- a/modules/contrib/doc/facerec/src/facerec_save_load.cpp +++ b/modules/contrib/doc/facerec/src/facerec_save_load.cpp @@ -70,7 +70,7 @@ int main(int argc, const char *argv[]) { cout << "usage: " << argv[0] << " " << endl; exit(1); } - string output_folder; + string output_folder = "."; if (argc == 3) { output_folder = string(argv[2]); }