From 835cba33dd80d62c4fe64a87fbd7e861f82f65f9 Mon Sep 17 00:00:00 2001 From: Raphael Maenle <17550607+g-spacewhale@users.noreply.github.com> Date: Thu, 18 Jan 2018 21:36:38 +0100 Subject: [PATCH] added differenct mat read --- Source/functions/solve/puzzleExtension.cpp | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/Source/functions/solve/puzzleExtension.cpp b/Source/functions/solve/puzzleExtension.cpp index c7e9a00..d3ced5c 100644 --- a/Source/functions/solve/puzzleExtension.cpp +++ b/Source/functions/solve/puzzleExtension.cpp @@ -146,6 +146,7 @@ Mat Puzzle::resultImage( vector& log){ cout<<"partW "<& log){ int imageNumber = it.PieceCollector[0].second->GetPartID(); //cout<<"imageIndex: "<< imageNumber << endl; - Mat img = readImage(imageNumber,PATH); + sprintf(name, PATH, imageNumber); + Mat img = imread(name, 1); + int angle = it.PieceCollector[0].second->GetNumOfRotations()*90; Point2f center; center.x = img.cols/2;