summaryrefslogtreecommitdiff
path: root/macros/sobel.sci
blob: 17af9097518aeda03715e30de4287ffbe87a876c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
function new_image = sobel(image, ddepth, dx, dy, ksize, scale, delta)
	
	image_list = mattolist(image)
	
	out = opencv_sobel(image_list, ddepth, dx, dy, ksize, scale, delta)
	
	sz = size(out)
	
	for i=1:sz
		new_image(:, :, i) = out(i)
	end
	
endfunction