Fixed some build warnings; slightly improved python search

This commit is contained in:
Andrey Kamaev
2012-03-02 08:34:54 +00:00
parent 30d5cdef94
commit 2f4bb580fc
6 changed files with 81 additions and 67 deletions

View File

@@ -117,7 +117,7 @@ int main(int argc, const char ** argv)
Mat outimg;
drawMatches(im2, kpts_2, im1, kpts_1, matches_popcount, outimg, Scalar::all(-1), Scalar::all(-1),
reinterpret_cast<const vector<char>&> (outlier_mask));
*(const vector<char>*)(void*)(&outlier_mask));
imshow("matches - popcount - outliers removed", outimg);
Mat warped;

View File

@@ -55,8 +55,6 @@ static void locate_point( Mat& img, Subdiv2D& subdiv, Point2f fp, Scalar active_
{
int e0=0, vertex=0;
CvSubdiv2DEdge e00;
subdiv.locate(fp, e0, vertex);
if( e0 > 0 )

View File

@@ -73,10 +73,9 @@ int main(int argc, char** argv)
return 1;
}
FILE* f;
FILE* f = 0;
VideoCapture cap;
char test_file[20] = "";
char dir[20] = "";
if (strcmp(argv[1], "live") != 0)
{