 
 
 
-
-
-
-
-
-/*
-int main(int argc, char* argv[])
-{
-
-	Mat src_host;
-	src_host = imread("/home/nvidia/Lane_Detection/Test_Images/IPM_test_image_0.png", CV_LOAD_IMAGE_COLOR);
-	
-	//float* test;
-	//cudaMalloc((void**)&test, NUMPIX*sizeof(float));
-	//CudaCheckError();
-
-	unsigned char* h_rgb_img = src_host.data;
-	unsigned char* h_gray_img = (unsigned char*)malloc(NUMPIX*sizeof(unsigned char));
-	float* h_grayImage_32f = (float*)malloc(NUMPIX*sizeof(float));
-
-	cudaEventCreate(&start);
-	cudaEventCreate(&stop);
-
-	
-	convert2Gray(h_rgb_img, h_gray_img, h_grayImage_32f);
-	
-
-}
-*/

		for(int j =0;j<ncol_kernel_x;j++)
		{		
				*(kernel + i*ncol_kernel_x + j) -= mean;
				//cout<<*(kernel + i*ncol_kernel_x + j)<<"\t";
		}	
		//cout<<endl;
	}

	float* h_filter_Image = (float*)malloc(NUMPIX*sizeof(float));	

	cudaMalloc((void**)&d_kernel,nrow_kernel_y*ncol_kernel_x*sizeof(float));
	CudaCheckError();

	cudaMemcpy(d_kernel,kernel,nrow_kernel_y*ncol_kernel_x*sizeof(float),cudaMemcpyHostToDevice);
	CudaCheckError();

	const int filterWidth = CU_FILTER_WIDTH;

	cudaMalloc((void**)&d_filter_Image, NUMPIX*sizeof(float));
	CudaCheckError();

	const dim3 blockSize(THREAD_X, THREAD_Y);	
	const dim3 gridSize((IMAGE_WIDTH + blockSize.x -1)/blockSize.x, (IMAGE_HEIGHT + blockSize.y -1)/blockSize.y);
