read certain file instead of random one

This commit is contained in:
Tim Zeuner 2022-11-23 17:09:27 +01:00
parent eb64c8eded
commit 55dc2a9b9a

View File

@ -22,7 +22,7 @@ Mat Input::readFile(String filePath)
// 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())
{ {