X-Git-Url: https://www.fleuret.org/cgi-bin/gitweb/gitweb.cgi?p=folded-ctf.git;a=blobdiff_plain;f=pi_feature.cc;h=1dba18ebd28d72da2685fd1624bd284c1a1fe30e;hp=300ccee32bcb6b028ea68c92d5d71da7a26fd16c;hb=HEAD;hpb=d922ad61d35e9a6996730bec24b16f8bf7bc426c diff --git a/pi_feature.cc b/pi_feature.cc index 300ccee..1dba18e 100644 --- a/pi_feature.cc +++ b/pi_feature.cc @@ -1,20 +1,26 @@ - -/////////////////////////////////////////////////////////////////////////// -// This program is free software: you can redistribute it and/or modify // -// it under the terms of the version 3 of the GNU General Public License // -// as published by the Free Software Foundation. // -// // -// This program is distributed in the hope that it will be useful, but // -// WITHOUT ANY WARRANTY; without even the implied warranty of // -// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU // -// General Public License for more details. // -// // -// 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 // -// Contact for comments & bug reports // -/////////////////////////////////////////////////////////////////////////// +/* + * folded-ctf is an implementation of the folded hierarchy of + * classifiers for object detection, developed by Francois Fleuret + * and Donald Geman. + * + * Copyright (c) 2008 Idiap Research Institute, http://www.idiap.ch/ + * Written by Francois Fleuret + * + * This file is part of folded-ctf. + * + * folded-ctf is free software: you can redistribute it and/or modify + * it under the terms of the GNU General Public License version 3 as + * published by the Free Software Foundation. + * + * folded-ctf is distributed in the hope that it will be useful, but + * WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + * General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with folded-ctf. If not, see . + * + */ #include "pi_feature.h" @@ -45,13 +51,7 @@ int PiFeature::random_registration_mode(int level) { break; case 4: - if(level >= 2) - return PiReferential::RM_BODY; - break; - case 5: - if(level >= 2) - return PiReferential::RM_BODY_EDGES; break; default: @@ -144,13 +144,6 @@ void PiFeature::draw_edge_thresholding(RGBImage *image, ®istered_window_a); referential->draw_window(image, _registration_a, ®istered_window_a, 0); - -// if(!global.pictures_for_article) { -// int tag = referential->register_edge(_registration_a, _tag); - -// referential->draw_edge_and_scale(image, _registration_a, ®istered_window_a, -// tag, _edge_scale); -// } } void PiFeature::print_edge_thresholding(ostream *os) {