Demo entry 6663247

a

   

Submitted by anonymous on Nov 29, 2017 at 16:14
Language: C. Code size: 310 Bytes.

1 // input: image  原始图像
2 // output: laplacian   Laplacian边缘检测以后的图像
3 for row := 2 to image.height-1
4   for col := 2 to image.width-1
5 	  do 
6 	    laplacian[row, col] := 4*image[row, col] - image[row-1, col] 
7 			-image[row+1, col] - image[row, col-1] -image[row, col+1]
8      end
9  end
10end

This snippet took 0.00 seconds to highlight.

Back to the Entry List or Home.

Delete this entry (admin only).