added firstdraft code

This commit is contained in:
niko-fhtw
2018-01-19 16:53:53 +01:00
parent 490db896bf
commit dc71f6fa63
9 changed files with 289 additions and 5 deletions

View File

@ -4,7 +4,6 @@
#include "AbstractionLayer_1.h"
#include "../../../header.h"
#include <iostream>
#include <bitset>
@ -47,6 +46,7 @@ bool AbstractionLayer_1::PreProcessing(coor mySize, const vector<Part*>* partAr
//it through qualityVector and removes all that do not trigger PlaceOfPartGood
bool AbstractionLayer_1::EvaluateQuality (const coor constraintCoordinate, qualityVector& qVector)
{
//evaluateQuality = evaluateProbabilaty
for(int i = 0;i<qVector.size();i++)
{
if(PlaceOfPartGood(constraintCoordinate, qVector[i].second->m_a1.m_connections))
@ -120,8 +120,6 @@ void AbstractionLayer_1::CreateRandomPuzzle()
}
//puts all pieces of the current constraint matrix into a puzzlebox
qualityVector AbstractionLayer_1::returnInBox(vector<Part>& PuzzleBox)
{
@ -407,7 +405,6 @@ Point analyseParts::findCenter(Mat img){
return center;
}
vector<Point> analyseParts::findCorners(vector<Point> contour, Point center){
int minContourPoint = 5;
vector<vector<Point>> quad_contour;