 #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[threadIdx.x  ] = 0.25f * prev1 + 0.5f * tmp1_curr + 0.25f * tmp1_next;
        hist[threadIdx.x*2] = 0.25f * prev2 + 0.5f * tmp2_curr + 0.25f * tmp2_next;

        printf("bin %d: %f\n", threadIdx.x, hist[threadIdx.x]);
        printf("bin %d: %f\n", threadIdx.x*2, hist[threadIdx.x*2]);

        //0->31 done
        //missing 32->35 (4 bins)
        if(threadIdx.x < 4){
            //bin 32->34
            float prev = hist[(threadIdx.x+32 - 1 + ORI_V1_NUM_THREADS) % ORI_V1_NUM_THREADS];
            float curr = hist[threadIdx.x]+32; //32->34
            float next = hist[threadIdx.x+33]; //33->35
            hist[threadIdx.x +32] = 0.25f * prev + 0.5f * curr + 0.25f * next;
            printf("bin %d: %f\n", threadIdx.x+32, hist[threadIdx.x+32]);
        }else if(threadIdx.x == 5){
            //bin 35
            hist[threadIdx.x +32] = 0.25f * hist[threadIdx.x +32 -1]
                                   + 0.5f * hist[threadIdx.x +32] + 0.25f * first;
            printf("bin %d: %f\n", threadIdx.x+32, hist[threadIdx.x+32]);
        }
    }
#else

            }
        }
    }
*/
    _keep_time_orient_v1.stop();

    cerr << "Leave " << __FUNCTION__ << endl;
