 }
 
 __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);

    grid.x  = grid_divide( width,   HYST_W * 4 );
    grid.y  = grid_divide( height,  HYST_H );

    printf( "Starting (%d,%d,%d)-grid of (%d,%d,%d) threads\n",
            grid.x, grid.y, grid.z, block.x, block.y, block.z );

    bool first_time = true;
    int debug_roundcount = 0;
    do
    {
        *block_counter = 0;

    cudaEventCreate( &before_hyst );
    cudaEventCreate( &after_hyst );
    cudaEventRecord( before_hyst, _stream );
    hyst_outer_loop
        <<<1,1,0,_stream>>>
        ( getWidth(), getHeight(), _d_hysteresis_block_counter, _d_hyst_edges, _d_map );
    cudaEventRecord( after_hyst, _stream );
    cudaEventSynchronize( after_hyst );
    cudaEventElapsedTime( &ms, before_hyst, after_hyst );
    cudaEventDestroy( before_hyst );
    cudaEventDestroy( after_hyst );
