libcvd-members
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[libcvd-members] libcvd/cvd_src nonmax_suppression.cxx


From: Georg Klein
Subject: [libcvd-members] libcvd/cvd_src nonmax_suppression.cxx
Date: Fri, 03 Aug 2007 15:02:03 +0000

CVSROOT:        /cvsroot/libcvd
Module name:    libcvd
Changes by:     Georg Klein <georgklein>        07/08/03 15:02:03

Modified files:
        cvd_src        : nonmax_suppression.cxx 

Log message:
        Fix crash in nonmax suppression

CVSWeb URLs:
http://cvs.savannah.gnu.org/viewcvs/libcvd/cvd_src/nonmax_suppression.cxx?cvsroot=libcvd&r1=1.2&r2=1.3

Patches:
Index: nonmax_suppression.cxx
===================================================================
RCS file: /cvsroot/libcvd/libcvd/cvd_src/nonmax_suppression.cxx,v
retrieving revision 1.2
retrieving revision 1.3
diff -u -b -r1.2 -r1.3
--- nonmax_suppression.cxx      23 Jul 2007 20:43:22 -0000      1.2
+++ nonmax_suppression.cxx      3 Aug 2007 15:02:03 -0000       1.3
@@ -28,7 +28,7 @@
        // (the corners are output in raster scan order). A beginning of -1 
signifies
        // that there are no corners on that row.
        int last_row = corners.back().y;
-       vector<int> row_start(last_row, -1);
+       vector<int> row_start(last_row + 1, -1);
 
        int prev_row = -1;
        for(unsigned int i=0; i< corners.size(); i++)




reply via email to

[Prev in Thread] Current Thread [Next in Thread]