[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Toon-members] tag/tag ransac.h
From: |
Ethan Eade |
Subject: |
[Toon-members] tag/tag ransac.h |
Date: |
Tue, 13 Jun 2006 01:55:46 +0000 |
CVSROOT: /cvsroot/toon
Module name: tag
Changes by: Ethan Eade <ethaneade> 06/06/13 01:55:46
Modified files:
tag : ransac.h
Log message:
Small fix to find_RANSAC_inliers_guided_breadth_first.
CVSWeb URLs:
http://cvs.savannah.gnu.org/viewcvs/tag/tag/ransac.h?cvsroot=toon&r1=1.3&r2=1.4
Patches:
Index: ransac.h
===================================================================
RCS file: /cvsroot/toon/tag/tag/ransac.h,v
retrieving revision 1.3
retrieving revision 1.4
diff -u -b -r1.3 -r1.4
--- ransac.h 13 Jun 2006 01:50:44 -0000 1.3
+++ ransac.h 13 Jun 2006 01:55:46 -0000 1.4
@@ -130,10 +130,10 @@
std::vector<std::pair<int,size_t> > score(N);
std::vector<size_t> sample_index(sample_size);
std::vector<Obs> sample(sample_size);
- std::vector<double> cdf(matches.size());
+ std::vector<double> cdf(observations.size());
cdf[0] = prob(observations[0]);
- for (i=1; i<observations.size(); ++i)
- cdf[i] = cdf[i-1] + prob(matches[i]);
+ for (size_t i=1; i<observations.size(); ++i)
+ cdf[i] = cdf[i-1] + prob(observations[i]);
const double psum = cdf.back();
for (size_t i=0; i<hypotheses.size(); i++) {
- [Toon-members] tag/tag ransac.h,
Ethan Eade <=