 		
 		countlines = min(countlines, maxLines);
 	
-		/*
-		float2* lines = (float2*)malloc(maxLines*sizeof(float2)); 
-		int* votes = (int*)malloc(maxLines*sizeof(int));
-
-		c_err = cudaMemcpy(&lines, d_lines, maxLines*sizeof(float2),
+		float2* lines = (float2*)malloc(countlines*sizeof(float2)); 
+		int* votes = (int*)malloc(countlines*sizeof(int));
+
+		c_err = cudaMemcpy(lines, d_lines, countlines*sizeof(float2),
 				cudaMemcpyDeviceToHost);
 
 		if(c_err != cudaSuccess)

		}
	
		
		c_err = cudaMemcpy(&votes, d_votes, maxLines*sizeof(int),
				cudaMemcpyDeviceToHost);
		if(c_err != cudaSuccess)
		{

int main(int argc, char* argv[])
{

	Mat src_host = imread("/home/nvidia/Binary_test_image_for_cuda_ht_1.png",
			CV_8UC1);

	if(debug)
	{
