// Random shuffle | // Random shuffle | ||||
std::random_shuffle(filenames.begin(), filenames.end()); | std::random_shuffle(filenames.begin(), filenames.end()); | ||||
Mat image = imread(filenames[0], IMREAD_COLOR); | |||||
Mat image = imread(filePath, IMREAD_COLOR); | |||||
if(image.empty()) | if(image.empty()) | ||||
{ | { |