2018-01-25 22:14:00 +01:00
|
|
|
#ifndef SOURCE_ABSTRACTIONLAYER_SURFFEATURES_H
|
|
|
|
#define SOURCE_ABSTRACTIONLAYER_SURFFEATURES_H
|
|
|
|
|
|
|
|
#include "../AbstraktionLayer_Base.h"
|
2018-01-26 22:27:46 +01:00
|
|
|
#include "opencv2/highgui/highgui.hpp"
|
|
|
|
#include "opencv2/imgproc/imgproc.hpp"
|
2018-01-25 22:14:00 +01:00
|
|
|
|
2018-01-26 18:47:41 +01:00
|
|
|
#ifdef _WIN32
|
2018-01-27 13:24:44 +01:00
|
|
|
#define PATH_FULL_PUZZLE "..\\..\\..\\puzzle_img\\puzzle1.jpg"
|
2018-01-26 18:47:41 +01:00
|
|
|
#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
|
2018-01-26 22:26:19 +01:00
|
|
|
#define PATH1 "..\\..\\..\\pieces\\%04d.jpg"
|
2018-01-26 18:47:41 +01:00
|
|
|
#elif defined __unix__
|
2018-01-26 22:26:19 +01:00
|
|
|
#define PATH1 "..//..//..//pieces//%04d.jpg"
|
2018-01-26 18:47:41 +01:00
|
|
|
#elif defined __APPLE__
|
2018-01-26 22:26:19 +01:00
|
|
|
#define PATH1 "..//..//..//pieces//%04d.jpg"
|
2018-01-26 18:47:41 +01:00
|
|
|
#endif
|
|
|
|
|
|
|
|
|
2018-01-25 22:14:00 +01:00
|
|
|
using namespace std;
|
|
|
|
|
|
|
|
class AbstractionLayer_SURFFeatures : public AbstractionLayer_Base<AbstractionLayer_SURFFeatures_Properties>
|
|
|
|
{
|
|
|
|
public:
|
|
|
|
bool PreProcessing(coor mySize, const vector<Part*>* partArray) ;
|
2018-01-26 19:59:12 +01:00
|
|
|
bool PreProcessingFullImg(coor mySize) ;
|
|
|
|
bool PreProcessingPieces(coor mySize, const vector<Part*>* partArray) ;
|
2018-01-25 22:14:00 +01:00
|
|
|
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
|