 #include "s_ori.v1.h"
 #include "debug_macros.h"
 #include "s_gradiant.h"
-
+#include <stdio.h>
 #define ORI_V1_NUM_THREADS 16
 #define NBINS_V1           36
 #define WINFACTOR_V1       1.5F

            hist[bin] = 0.25f * prev + 0.5f * hist[bin] + 0.25f * first;
            //z vprintf("val: %f, indx: %d\n", hist[bin], bin);
        }

        /* find histogram maximum */
        float maxh = NINF;
        int binh = 0;

    cerr << "Enter " << __FUNCTION__ << endl;

    _keep_time_orient_v1.start();
compute_keypoint_orientations_v1
                    <<<dim3(16),dim3(1)>>>
                    ( _octaves[octave].getExtrema( level ),
                      _octaves[octave].getExtremaMgmtD( ),
                      level,
                      _octaves[octave].getData( level ) );
/*
    for( int octave=0; octave<_num_octaves; octave++ ) {
        _octaves[octave].readExtremaCount( );
        cudaDeviceSynchronize( );
