This commit is contained in:
Raphael Maenle
2018-01-29 13:41:19 +01:00
parent 79109e1d34
commit 5029044157
3 changed files with 4 additions and 2 deletions

View File

@ -8,7 +8,7 @@ bool AbstractionLayer_ColorMatching::PreProcessing(coor mySize, const vector<Par
InitialiseConstraintMatrixSize(mySize.col, mySize.row); //col row switched in this function
//**Get color for constraint matrix**//
Mat puzzle = imread("puzzle1.jpg", IMREAD_COLOR); // Read the picture of the puzzle
Mat puzzle = imread(PATH_FULL_PUZZLE, IMREAD_COLOR); // Read the picture of the puzzle
if (puzzle.empty()) // Check for invalid input
{
cout << "Could not open or find the image" << std::endl;

View File

@ -16,7 +16,7 @@
//#include <cstdlib>
#include <cmath>
#define PATH_FULL_PUZZLE "..\\..\\..\\puzzle_img_bb\\puzzle2.jpg"
#ifdef _WIN32
//#define PATH "..\\..\\..\\pieces\\%04d.jpg"
#elif defined __unix__