 		//Mat1i init_labels;
 		//d_block_labels_.download(init_labels);
 
-		Merge << <grid_size_, block_size_ >> >(d_img_, d_img_labels_);
+		Merge << <grid_size_, block_size_ >> > (d_img_, d_img_labels_);
 
 		//Mat1i block_info_final;
 		//d_img_labels_.download(block_info_final);		
 
-		Compression << <grid_size_, block_size_ >> >(d_img_labels_);
-
-		FinalLabeling << <grid_size_, block_size_ >> >(d_img_, d_img_labels_);
+		Compression << <grid_size_, block_size_ >> > (d_img_labels_);
+
+		FinalLabeling << <grid_size_, block_size_ >> > (d_img_, d_img_labels_);
 
 		cudaDeviceSynchronize();
 	}

		//Mat1i init_labels;
		//d_block_labels_.download(init_labels);

		Merge << <grid_size_, block_size_ >> >(d_img_, d_img_labels_);

		//Mat1i block_info_final;
		//d_img_labels_.download(block_info_final);		

		Compression << <grid_size_, block_size_ >> >(d_img_labels_);

		FinalLabeling << <grid_size_, block_size_ >> >(d_img_, d_img_labels_);

		// d_img_labels_.download(img_labels_);
		cudaDeviceSynchronize();

		grid_size_ = dim3((((d_img_.cols + 1) / 2) + BLOCK_COLS - 1) / BLOCK_COLS, (((d_img_.rows + 1) / 2) + BLOCK_ROWS - 1) / BLOCK_ROWS, 1);
		block_size_ = dim3(BLOCK_COLS, BLOCK_ROWS, 1);

		InitLabeling << <grid_size_, block_size_ >> > (d_img_labels_);

		//cuda::GpuMat d_expanded_connections;
		//d_expanded_connections.create(d_connections_.rows * 3, d_connections_.cols * 3, CV_8UC1);
