bytefish/libfacerec — pull request #20 by berak (2013-11-30 18:50:40+00:00)
Title: small fix in the samples

if the prog is used like : prog csv_file ( so, argc==2 only ) , then :

string output_folder;
if (argc == 3) {
output_folder = string(argv[2]);
}

leaves output_folder uninitialized, so, later:

imwrite(format("%s/eigenface_%d.png", output_folder.c_str(), i), norm_0_255(cgrayscale));

will either crash, or write to root