Changed color of the outliers to red, inliers=green

git-svn-id: http://find-object.googlecode.com/svn/trunk/find_object@25 620bd6b2-0a58-f614-fd9a-1bd335dccda9
This commit is contained in:
matlabbe 2011-11-17 20:45:08 +00:00
parent 495da944ca
commit c7d285ae2e

View File

@ -169,7 +169,7 @@ int main(int argc, char * argv[])
H.at<double>(0,2), H.at<double>(1,2), H.at<double>(2,2)); H.at<double>(0,2), H.at<double>(1,2), H.at<double>(2,2));
// GUI : Change color and add homography rectangle // GUI : Change color and add homography rectangle
QColor color(Qt::red); QColor color(Qt::green);
int alpha = 130; int alpha = 130;
color.setAlpha(alpha); color.setAlpha(alpha);
for(int k=0; k<mpts_1.size();++k) for(int k=0; k<mpts_1.size();++k)
@ -181,8 +181,8 @@ int main(int argc, char * argv[])
} }
else else
{ {
objWidget.setKptColor(indexes_1.at(k), QColor(0,0,0,alpha)); objWidget.setKptColor(indexes_1.at(k), QColor(255,0,0,alpha));
sceneWidget.setKptColor(indexes_2.at(k), QColor(0,0,0,alpha)); sceneWidget.setKptColor(indexes_2.at(k), QColor(255,0,0,alpha));
} }
} }
QPen rectPen(color); QPen rectPen(color);