faeeeb8d71
Code working until now Commented out other layers in solve.h Path now in header-file Small changes to full-puzzle-processing
37 lines
1.2 KiB
C++
37 lines
1.2 KiB
C++
#ifndef SOURCE_ABSTRACTIONLAYER_SURFFEATURES_H
|
|
#define SOURCE_ABSTRACTIONLAYER_SURFFEATURES_H
|
|
|
|
#include "../AbstraktionLayer_Base.h"
|
|
|
|
#ifdef _WIN32
|
|
#define PATH_FULL_PUZZLE "..\\..\\..\\puzzle_img\\puzzle1.jpg"
|
|
#elif defined __unix__
|
|
#define PATH_FULL_PUZZLE "..//..//..//puzzle_img//puzzle1.jpg"
|
|
#elif defined __APPLE__
|
|
#define PATH_FULL_PUZZLE "..//..//..//puzzle_img//puzzle1.jpg"
|
|
#endif
|
|
|
|
#ifdef _WIN32 //TODO: Code duplicate from AbstractionLayer_1.h
|
|
#define PATH "..\\..\\..\\pieces\\%04d.jpg"
|
|
#elif defined __unix__
|
|
#define PATH "..//..//..//pieces//%04d.jpg"
|
|
#elif defined __APPLE__
|
|
#define PATH "..//..//..//pieces//%04d.jpg"
|
|
#endif
|
|
|
|
|
|
using namespace std;
|
|
|
|
class AbstractionLayer_SURFFeatures : public AbstractionLayer_Base<AbstractionLayer_SURFFeatures_Properties>
|
|
{
|
|
public:
|
|
bool PreProcessing(coor mySize, const vector<Part*>* partArray) ;
|
|
bool EvaluateQuality (const coor constraintCoordinate, qualityVector& qVector);
|
|
bool SetConstraintOnPosition(const coor constraintCoordinate,const AbstractionLayer_SURFFeatures_Properties constraint);
|
|
bool RemoveConstraintOnPosition(const coor constraintCoordinate);
|
|
|
|
private:
|
|
};
|
|
|
|
#endif //SOURCE_ABSTRACTIONLAYER_SURFFEATURES_H
|