|
@@ -82,8 +82,8 @@ void PHOGFeature::calculate_PHOG_Pyramide(const NICE::Image & gradient_orientati
|
|
|
if (verbose) cerr << "PHOGFeature::calculate_PHOG_Pyramide -- working on level "<< level << endl;
|
|
|
if (like_AnnaBosch)
|
|
|
{
|
|
|
- int step_x = (int) floor(gradient_orientations.width() / pow(2,level) );
|
|
|
- int step_y = (int) floor(gradient_orientations.height() / pow(2,level) );
|
|
|
+ int step_x = (int) floor(gradient_orientations.width() / pow(2.0f,level) );
|
|
|
+ int step_y = (int) floor(gradient_orientations.height() / pow(2.0f,level) );
|
|
|
|
|
|
vector<float> PHoG_level;
|
|
|
|
|
@@ -191,18 +191,18 @@ void PHOGFeature::calculate_PHOG_Pyramide(const NICE::Image & gradient_orientati
|
|
|
}
|
|
|
else //better than anna bosch
|
|
|
{
|
|
|
- int step_x = (int) ceil(gradient_orientations.width() / pow(2.0,level) );
|
|
|
- int step_y = (int) ceil(gradient_orientations.height() / pow(2.0,level) );
|
|
|
+ int step_x = (int) ceil(gradient_orientations.width() / pow(2.0f,level) );
|
|
|
+ int step_y = (int) ceil(gradient_orientations.height() / pow(2.0f,level) );
|
|
|
if (verbose) cerr << "step_x: " << step_x << " step_y: " << step_y << endl;
|
|
|
|
|
|
std::vector<float> PHoG_level;
|
|
|
|
|
|
int run_y = 0;
|
|
|
- for (int y_counter = 0; y_counter < pow(2,level) ; y_counter++)
|
|
|
+ for (int y_counter = 0; y_counter < pow(2.0f,level) ; y_counter++)
|
|
|
{
|
|
|
int run_x = 0;
|
|
|
if (verbose) cerr << "run_y: " << run_y << endl;
|
|
|
- for (int x_counter = 0; x_counter < pow(2,level) ; x_counter++)
|
|
|
+ for (int x_counter = 0; x_counter < pow(2.0f,level) ; x_counter++)
|
|
|
{
|
|
|
if (verbose) cerr << "run_x: " << run_x << endl;
|
|
|
float sum_of_hog(0.0);
|