Skip to content

Commit

Permalink
debug: drawMaxCliqueNeighbours
Browse files Browse the repository at this point in the history
  • Loading branch information
flow79 committed Aug 22, 2017
1 parent 3c546c8 commit 45ce37a
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion Modules/Forms/src/Forms.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -374,6 +374,7 @@ QSharedPointer<nmc::DkImageContainer> FormsAnalysis::runPlugin(
qDebug() << "Match template...";
formF.matchTemplate();



resultImg = formF.drawLinesNotUsedForm(drawImg);
cv::cvtColor(resultImg, resultImg, CV_BGR2RGBA);
Expand All @@ -385,9 +386,15 @@ QSharedPointer<nmc::DkImageContainer> FormsAnalysis::runPlugin(
result = rdf::Image::mat2QImage(resultImg);
imgC->setImage(result, "all detected lines");

resultImg = formF.drawMaxCliqueNeighbours(7, rdf::AssociationGraphNode::LinePosition::pos_right, 2, drawImg);
cv::cvtColor(resultImg, resultImg, CV_BGR2RGBA);
result = rdf::Image::mat2QImage(resultImg);
imgC->setImage(result, "draw neighbours");


//resultImg = formF.drawMaxClique(drawImg,10, 2);
//cv::cvtColor(resultImg, resultImg, CV_BGR2RGBA);
//result = rdf::Image::mat2QImage(resultImg);
//result = rdf::Image::mat2QImage(resultImg);
//imgC->setImage(result, "maxClique 2");

//resultImg = formF.drawMaxClique(drawImg, 10, 1);
Expand Down

0 comments on commit 45ce37a

Please sign in to comment.