summaryrefslogtreecommitdiff
path: root/macros/morphologyEx.sci
blob: ef1a93b55d648016b7cf9def50eaf1751cc76c55 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
function new_image = morphologyEx(image, operation, kernel, anchorX, anchorY, iterations, borderType)
	
		
		image_list = mattolist(image)
		
		
		out = opencv_morphologyEx(image_list, operation, kernel, anchorX, anchorY, iterations, borderType)
		
		sz = size(out)
		
		for i=1:sz
			new_image(:, :, i) = out(i)
		end

endfunction