 }
 
 __global__
-void edge_second( cv::cuda::PtrStepSzb img, int* block_counter, int debug_roundcount )
+void edge_second( cv::cuda::PtrStepSzb img, int* block_counter )
 {
     cv::cuda::PtrStepSz32u input;
     input.data = reinterpret_cast<uint32_t*>(img.data);

                                         &block_counter,
                                         sizeof(int), _stream );
        if( first_time ) {
            cerr << "1" << endl;
            hysteresis::edge_first
                <<<grid,block,0,_stream>>>
                ( _d_hyst_edges,

                  _d_map );
            first_time = false;
        } else {
            hysteresis::edge_second
                <<<grid,block,0,_stream>>>
                ( _d_hyst_edges,
