stash
This commit is contained in:
parent
79109e1d34
commit
5029044157
@ -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;
|
||||
|
@ -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__
|
||||
|
@ -127,6 +127,7 @@ void setsolution(vector<LogEntry>& log, Puzzle& puzzleMat)
|
||||
|
||||
bool backtrack(vector<LogEntry>& log, Puzzle& puzzleMat)
|
||||
{
|
||||
puzzleMat.resultImage(log);
|
||||
cout << "backtrack" << endl;
|
||||
if(log.empty())
|
||||
{
|
||||
@ -209,6 +210,7 @@ float capLogElements(vector<LogEntry>& log)
|
||||
}
|
||||
cut(log,id);//for debugging
|
||||
return 0;//for debugging
|
||||
|
||||
int newid=0;
|
||||
//check if all over
|
||||
if(id==log.back().PieceCollector.size())
|
||||
|
Loading…
Reference in New Issue
Block a user