X-Git-Url: https://fleuret.org/cgi-bin/gitweb/gitweb.cgi?a=blobdiff_plain;f=error_rates.cc;h=f028f17c0fa76b1979649e0d1404d5012bd94d6c;hb=b8222ae1fb874f0783803f55e0bc4c4b9ffca8b2;hp=14d4d8c8a8184d42a7a8a73ca70149b2cf35aac0;hpb=d922ad61d35e9a6996730bec24b16f8bf7bc426c;p=folded-ctf.git
diff --git a/error_rates.cc b/error_rates.cc
index 14d4d8c..f028f17 100644
--- a/error_rates.cc
+++ b/error_rates.cc
@@ -12,7 +12,9 @@
// You should have received a copy of the GNU General Public License //
// along with this program. If not, see . //
// //
-// Written by Francois Fleuret, (C) IDIAP //
+// Written by Francois Fleuret //
+// (C) Idiap Research Institute //
+// //
// Contact for comments & bug reports //
///////////////////////////////////////////////////////////////////////////
@@ -21,7 +23,6 @@
#include "pose_cell_hierarchy.h"
#include "boosted_classifier.h"
#include "parsing_pool.h"
-#include "chrono.h"
#include "materials.h"
void compute_errors_on_one_image(int level,
@@ -106,32 +107,3 @@ void print_decimated_error_rate(int level, LabelledImagePool *pool, Detector *de
<< "INFO TOTAL_SURFACE " << total_surface << endl;
;
}
-
-void parse_scene(Detector *detector, const char *image_name) {
- RGBImage tmp;
- tmp.read_jpg(image_name);
- RichImage image(tmp.width(), tmp.height());
-
- for(int y = 0; y < tmp.height(); y++) {
- for(int x = 0; x < tmp.width(); x++) {
- image.set_value(x, y, int(scalar_t(tmp.pixel(x, y, 0)) * 0.2989 +
- scalar_t(tmp.pixel(x, y, 1)) * 0.5870 +
- scalar_t(tmp.pixel(x, y, 2)) * 0.1140));
- }
- }
-
- image.compute_rich_structure();
-
- PoseCellScoredSet cell_set;
- detector->parse(&image, &cell_set);
- cell_set.decimate_hit(detector->nb_levels() - 1);
-
- cout << "RESULT " << image_name << endl;
- for(int c = 0; c < cell_set.nb_cells(); c++) {
- cout << "ALARM " << c << endl;
- Pose alarm;
- cell_set.get_cell(c)->get_centroid(&alarm);
- alarm.print(&cout);
- }
- cout << "END_RESULT" << endl;
-}