 
 		// Phase 2
 		// Collega tra loro gli alberi union-find dei diversi blocchi
-		GlobalMerge << <grid_size_, block_size_ >> > (d_img_, d_labels_);
+		GlobalMerge << <grid_size_, block_size_ >> > (d_img_, d_img_labels_);
 
 		// Immagine di debug della seconda fase
 		//cuda::GpuMat d_global_labels;


			else {
				if (local_row > 0 && s_img[local_index - BLOCK_COLS]) {
					//s_buf[local_index] = -1;
					//unsigned char upper = s_img[local_index - BLOCK_COLS];

					if (local_col > 0 && s_img[local_index - 1]) {
						Union(s_buf, local_index - 1, local_index - BLOCK_COLS);

		perf_.stop();
		perf_.store(Step(StepType::SECOND_SCAN), perf_.last());

		double dealloc_timing = Dealloc();

		perf_.store(Step(StepType::ALLOC_DEALLOC), alloc_timing + dealloc_timing);

	}

